37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
@extends('layouts.layout')
|
|
|
|
@section('content')
|
|
<h1>Inscription</h1>
|
|
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
@if (session('success'))
|
|
<h1>{{ session('success') }}</h1>
|
|
@else
|
|
<form action="{{ route('auth.register.post') }}" method="POST">
|
|
@csrf
|
|
<input name="lastname" type="text" placeholder="Nom" required>
|
|
<input name="firstname" type="text" placeholder="Prénom" required>
|
|
<br>
|
|
<label>+18 ans</label><br>
|
|
<input name="date_of_birth" type="date" required>
|
|
<br>
|
|
<input name="email" type="email" placeholder="Votre adresse email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" required>
|
|
<br>
|
|
<input name="email_confirmation" type="email" placeholder="Confirmez votre adresse email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" required>
|
|
<br>
|
|
<input name="password" type="password" placeholder="Votre mot de passe" required>
|
|
<br>
|
|
<input type="submit" value="Valider">
|
|
</form>
|
|
@endif
|
|
|
|
@endsection
|