|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
<div class="max-w-md w-full bg-white shadow-xl rounded-lg p-8"> |
|
|
|
|
<div class="max-w-md w-full bg-white shadow-xl rounded-lg p-8 relative z-10"> |
|
|
|
|
<div class="flex justify-center mb-4"> |
|
|
|
|
<img src="{{ asset('images/logo.png') }}" alt="Logo" class="h-16 w-auto"> |
|
|
|
|
</div> |
|
|
|
@ -6,30 +6,39 @@ |
|
|
|
|
<h2 class="text-2xl font-semibold text-center text-gray-900 mb-6">Đăng nhập hệ thống</h2> |
|
|
|
|
|
|
|
|
|
<form wire:submit.prevent="login" class="space-y-4"> |
|
|
|
|
<!-- Email --> |
|
|
|
|
<div> |
|
|
|
|
<label class="block text-sm font-medium text-gray-700">Email:</label> |
|
|
|
|
<input type="email" wire:model="email" required |
|
|
|
|
class="mt-1 block w-full rounded-md border border-gray-300 shadow-sm py-2 px-3 focus:ring-indigo-500 focus:border-indigo-500"> |
|
|
|
|
class="mt-1 block w-full rounded-md border border-gray-300 shadow-sm py-2 px-3 |
|
|
|
|
focus:ring-indigo-500 focus:border-indigo-500"> |
|
|
|
|
@error('email') |
|
|
|
|
<div class="text-red-500 text-sm">{{ $message }}</div> |
|
|
|
|
@enderror |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- Password --> |
|
|
|
|
<div> |
|
|
|
|
<label class="block text-sm font-medium text-gray-700">Mật khẩu:</label> |
|
|
|
|
<input type="password" wire:model="password" required |
|
|
|
|
class="mt-1 block w-full rounded-md border border-gray-300 shadow-sm py-2 px-3 focus:ring-indigo-500 focus:border-indigo-500"> |
|
|
|
|
class="mt-1 block w-full rounded-md border border-gray-300 shadow-sm py-2 px-3 |
|
|
|
|
focus:ring-indigo-500 focus:border-indigo-500"> |
|
|
|
|
@error('password') |
|
|
|
|
<div class="text-red-500 text-sm">{{ $message }}</div> |
|
|
|
|
@enderror |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- Remember --> |
|
|
|
|
<div class="flex items-center"> |
|
|
|
|
<input type="checkbox" wire:model="remember" id="remember" class="h-4 w-4 text-indigo-600 border-gray-300 rounded"> |
|
|
|
|
<input type="checkbox" wire:model="remember" id="remember" |
|
|
|
|
class="h-4 w-4 bg-red-500 border-gray-300 rounded"> |
|
|
|
|
<label for="remember" class="ml-2 text-sm text-gray-900">Ghi nhớ đăng nhập</label> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<button type="submit" class="w-full py-2 px-4 bg-indigo-600 text-white rounded hover:bg-indigo-700 transition duration-200"> |
|
|
|
|
<!-- Button --> |
|
|
|
|
<button type="submit" |
|
|
|
|
class="block w-full py-3 bg-indigo-600 text-white font-medium rounded hover:bg-indigo-700 |
|
|
|
|
transition duration-200"> |
|
|
|
|
Đăng nhập |
|
|
|
|
</button> |
|
|
|
|
</form> |
|
|
|
|