-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added register functionality and updated landing page.
- Loading branch information
1 parent
ec2d9f3
commit d37fadc
Showing
3 changed files
with
166 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,139 @@ | ||
@extends('layouts.app') | ||
@extends('adminr.layouts.auth') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-8"> | ||
<div class="card"> | ||
<div class="card-header">{{ __('Register') }}</div> | ||
<div class="container"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-7"> | ||
<div class="card-group"> | ||
<div class="card p-4"> | ||
<div class="card-body"> | ||
<h1>Register</h1> | ||
<p class="text-muted">Create a new account</p> | ||
<form method="POST" action="{{ route('register') }}"> | ||
@csrf | ||
<div class="row"> | ||
<div class="col-lg-6"> | ||
<label for="name">Name <span class="text-danger">*</span></label> | ||
<div class="input-group mb-3"> | ||
<div class="input-group-prepend"> | ||
<span class="input-group-text"> | ||
<svg class="c-icon"> | ||
<use xlink:href="{{ coreUiIcon('cil-user') }}"></use> | ||
</svg> | ||
</span> | ||
</div> | ||
<input id="name" type="text" | ||
class="form-control @error('name') is-invalid @enderror" name="name" | ||
value="{{ old('name') }}" required autocomplete="off" | ||
placeholder="Name" autofocus> | ||
@error('name') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
<div class="col-lg-6"> | ||
<label for="username">Username <span class="text-danger">*</span></label> | ||
<div class="input-group mb-3"> | ||
<div class="input-group-prepend"> | ||
<span class="input-group-text"> | ||
<svg class="c-icon"> | ||
<use xlink:href="{{ coreUiIcon('cil-user') }}"></use> | ||
</svg> | ||
</span> | ||
</div> | ||
<input id="username" type="text" | ||
class="form-control @error('username') is-invalid @enderror" | ||
name="username" value="{{ old('username') }}" required | ||
autocomplete="off" placeholder="Username" autofocus> | ||
@error('username') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
<div class="col-lg-6"> | ||
<label for="email">Email <span class="text-danger">*</span></label> | ||
<div class="input-group mb-3"> | ||
<div class="input-group-prepend"> | ||
<span class="input-group-text"> | ||
<svg class="c-icon"> | ||
<use xlink:href="{{ coreUiIcon('cil-send') }}"></use> | ||
</svg> | ||
</span> | ||
</div> | ||
<input id="email" type="text" | ||
class="form-control @error('email') is-invalid @enderror" | ||
name="email" value="{{ old('email') }}" required autocomplete="off" | ||
placeholder="Email" autofocus> | ||
@error('email') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
<div class="col-lg-6"> | ||
<label for="phone">Phone <span class="text-danger">*</span></label> | ||
<div class="input-group mb-3"> | ||
<div class="input-group-prepend"> | ||
<span class="input-group-text"> | ||
<svg class="c-icon"> | ||
<use xlink:href="{{ coreUiIcon('cil-phone') }}"></use> | ||
</svg> | ||
</span> | ||
</div> | ||
<input id="phone" type="text" | ||
class="form-control @error('phone') is-invalid @enderror" | ||
name="phone" value="{{ old('phone') }}" required autocomplete="off" | ||
placeholder="Phone" autofocus> | ||
@error('phone') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
<div class="col-lg-12"> | ||
<label for="password">Password*</label> | ||
<div class="input-group mb-4"> | ||
<div class="input-group-prepend"> | ||
<span class="input-group-text"> | ||
<svg class="c-icon"> | ||
<use xlink:href="{{ coreUiIcon('cil-lock-locked') }}"></use> | ||
</svg> | ||
</span> | ||
</div> | ||
<input id="password" type="password" | ||
class="form-control @error('password') is-invalid @enderror" | ||
name="password" placeholder="Password" required | ||
autocomplete="current-password"> | ||
@error('password') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="card-body"> | ||
<form method="POST" action="{{ route('register') }}"> | ||
@csrf | ||
|
||
<div class="form-group row"> | ||
<label for="name" class="col-md-4 col-form-label text-md-right">{{ __('Name') }}</label> | ||
<div class="row"> | ||
<div class="col-6"> | ||
<button class="btn btn-block btn-primary px-4" type="submit">Register</button> | ||
</div> | ||
<div class="col-6"> | ||
<a href="{{ route('login') }}" class="btn btn-block btn-light px-4">Login here</a> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-6"> | ||
<input id="name" type="text" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus> | ||
|
||
@error('name') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email"> | ||
|
||
@error('email') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password"> | ||
|
||
@error('password') | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password"> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row mb-0"> | ||
<div class="col-md-6 offset-md-4"> | ||
<button type="submit" class="btn btn-primary"> | ||
{{ __('Register') }} | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |