|
|
@@ -1,19 +1,38 @@
|
|
|
+@extends('shared.layout.layout')
|
|
|
+@section('content')
|
|
|
<div class="container">
|
|
|
<div class="row justify-content-center">
|
|
|
<div class="col-12 col-sm-8 col-md-6">
|
|
|
- <form class="form mt-5" action="" method="post">
|
|
|
+ <form class="form mt-5" action="{{route('register')}}" method="post">
|
|
|
+ @csrf
|
|
|
<h3 class="text-center text-dark">Register</h3>
|
|
|
<div class="form-group">
|
|
|
+ <label for="name" class="text-dark">Name:</label><br>
|
|
|
+ <input type="text" name="name" id="name" class="form-control" value="{{request('name')}}">
|
|
|
+ @error('name')
|
|
|
+ <span class="d-block fs-2 text-danger mt-2">{{$message}}</span>
|
|
|
+ @enderror
|
|
|
+ </div>
|
|
|
+ <div class="form-group mt-3">
|
|
|
<label for="email" class="text-dark">Email:</label><br>
|
|
|
- <input type="email" name="email" id="email" class="form-control">
|
|
|
+ <input type="email" name="email" id="email" class="form-control" value="{{request('email')}}">
|
|
|
+ @error('email')
|
|
|
+ <span class="d-block fs-2 text-danger mt-2">{{$message}}</span>
|
|
|
+ @enderror
|
|
|
</div>
|
|
|
<div class="form-group mt-3">
|
|
|
<label for="password" class="text-dark">Password:</label><br>
|
|
|
- <input type="text" name="password" id="password" class="form-control">
|
|
|
+ <input type="password" name="password" id="password" class="form-control">
|
|
|
+ @error('password')
|
|
|
+ <span class="d-block fs-2 text-danger mt-2">{{$message}}</span>
|
|
|
+ @enderror
|
|
|
</div>
|
|
|
<div class="form-group mt-3">
|
|
|
<label for="confirm-password" class="text-dark">Confirm Password:</label><br>
|
|
|
- <input type="text" name="confirm-password" id="confirm-password" class="form-control">
|
|
|
+ <input type="password" name="password_confirmation" id="password_confirmation" class="form-control">
|
|
|
+ @error('password_confirmation')
|
|
|
+ <span class="d-block fs-2 text-danger mt-2">{{$message}}</span>
|
|
|
+ @enderror
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label for="remember-me" class="text-dark"></label><br>
|
|
|
@@ -26,3 +45,4 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+@endsection
|