2025-12-29 02:57:25 +01:00
|
|
|
@extends('components.layouts.guest')
|
|
|
|
|
|
|
|
|
|
@section('content')
|
2025-12-26 13:37:23 +01:00
|
|
|
<h2 class="text-2xl text-center text-accent-blue mb-6">Register</h2>
|
|
|
|
|
|
2025-12-29 02:57:25 +01:00
|
|
|
<form method="POST" action="{{ route('register') }}">
|
|
|
|
|
@csrf
|
|
|
|
|
|
2025-12-26 13:37:23 +01:00
|
|
|
<div>
|
|
|
|
|
<label for="name" class="block text-sm font-medium mb-2">Name</label>
|
2025-12-29 02:57:25 +01:00
|
|
|
<input type="text"
|
2025-12-26 13:37:23 +01:00
|
|
|
id="name"
|
2025-12-29 02:57:25 +01:00
|
|
|
name="name"
|
|
|
|
|
value="{{ old('name') }}"
|
|
|
|
|
class="w-full p-2 mb-4 border rounded bg-gray-600 border-secondary text-gray-100 focus:bg-gray-900 focus:outline-none focus:border-accent-blue @error('name') border-red-500 @enderror"
|
2025-12-26 13:37:23 +01:00
|
|
|
placeholder="Enter your name"
|
2025-12-29 02:57:25 +01:00
|
|
|
required
|
2025-12-26 13:37:23 +01:00
|
|
|
autofocus>
|
2025-12-29 02:57:25 +01:00
|
|
|
@error('name')
|
|
|
|
|
<span class="text-red-500 text-xs block -mt-2 mb-2">{{ $message }}</span>
|
|
|
|
|
@enderror
|
2025-12-26 13:37:23 +01:00
|
|
|
</div>
|
2025-12-29 02:57:25 +01:00
|
|
|
|
2025-12-26 13:37:23 +01:00
|
|
|
<div>
|
|
|
|
|
<label for="email" class="block text-sm font-medium mb-2">Email</label>
|
2025-12-29 02:57:25 +01:00
|
|
|
<input type="email"
|
2025-12-26 13:37:23 +01:00
|
|
|
id="email"
|
2025-12-29 02:57:25 +01:00
|
|
|
name="email"
|
|
|
|
|
value="{{ old('email') }}"
|
|
|
|
|
class="w-full p-2 mb-4 border rounded bg-gray-600 border-secondary text-gray-100 focus:bg-gray-900 focus:outline-none focus:border-accent-blue @error('email') border-red-500 @enderror"
|
|
|
|
|
placeholder="Enter your email"
|
|
|
|
|
required>
|
|
|
|
|
@error('email')
|
|
|
|
|
<span class="text-red-500 text-xs block -mt-2 mb-2">{{ $message }}</span>
|
|
|
|
|
@enderror
|
2025-12-26 13:37:23 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<label for="password" class="block text-sm font-medium mb-2">Password</label>
|
2025-12-29 02:57:25 +01:00
|
|
|
<input type="password"
|
2025-12-26 13:37:23 +01:00
|
|
|
id="password"
|
2025-12-29 02:57:25 +01:00
|
|
|
name="password"
|
|
|
|
|
class="w-full p-2 mb-4 border rounded bg-gray-600 border-secondary text-gray-100 focus:bg-gray-900 focus:outline-none focus:border-accent-blue @error('password') border-red-500 @enderror"
|
|
|
|
|
placeholder="Enter your password"
|
|
|
|
|
required>
|
|
|
|
|
@error('password')
|
|
|
|
|
<span class="text-red-500 text-xs block -mt-2 mb-2">{{ $message }}</span>
|
|
|
|
|
@enderror
|
2025-12-26 13:37:23 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<label for="password_confirmation" class="block text-sm font-medium mb-2">Confirm Password</label>
|
2025-12-29 02:57:25 +01:00
|
|
|
<input type="password"
|
2025-12-26 13:37:23 +01:00
|
|
|
id="password_confirmation"
|
2025-12-29 02:57:25 +01:00
|
|
|
name="password_confirmation"
|
2025-12-26 13:37:23 +01:00
|
|
|
class="w-full p-2 mb-4 border rounded bg-gray-600 border-secondary text-gray-100 focus:bg-gray-900 focus:outline-none focus:border-accent-blue"
|
2025-12-29 02:57:25 +01:00
|
|
|
placeholder="Confirm your password"
|
|
|
|
|
required>
|
2025-12-26 13:37:23 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button type="submit" class="w-full py-2 px-4 bg-primary text-white text-xl rounded hover:bg-secondary transition-colors duration-200 mb-4">
|
|
|
|
|
Register
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<a href="{{ route('login') }}" class="text-accent-blue hover:underline text-sm">
|
|
|
|
|
Already have an account? Login here
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2025-12-29 02:57:25 +01:00
|
|
|
@endsection
|