79 lines
4.1 KiB
PHP
79 lines
4.1 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
|
|
<div class="max-w-md w-full space-y-8">
|
|
<div>
|
|
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">
|
|
{{ __('Login') }}
|
|
</h2>
|
|
</div>
|
|
<div class="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
|
|
<form method="POST" action="{{ route('login') }}" class="space-y-6">
|
|
@csrf
|
|
|
|
<div>
|
|
<label for="email" class="block text-sm font-medium text-gray-700">
|
|
{{ __('Email Address') }}
|
|
</label>
|
|
<div class="mt-1">
|
|
<input id="email" type="email" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus
|
|
class="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm @error('email') border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500 @enderror">
|
|
@error('email')
|
|
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password" class="block text-sm font-medium text-gray-700">
|
|
{{ __('Password') }}
|
|
</label>
|
|
<div class="mt-1">
|
|
<input id="password" type="password" name="password" required autocomplete="current-password"
|
|
class="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm @error('password') border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500 @enderror">
|
|
@error('password')
|
|
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center">
|
|
<input id="remember" name="remember" type="checkbox" {{ old('remember') ? 'checked' : '' }}
|
|
class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">
|
|
<label for="remember" class="ml-2 block text-sm text-gray-900">
|
|
{{ __('Remember Me') }}
|
|
</label>
|
|
</div>
|
|
|
|
@if (Route::has('password.request'))
|
|
<div class="text-sm">
|
|
<a href="{{ route('password.request') }}" class="font-medium text-primary-600 hover:text-primary-500">
|
|
{{ __('Forgot Your Password?') }}
|
|
</a>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div>
|
|
<button type="submit"
|
|
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
|
{{ __('Login') }}
|
|
</button>
|
|
</div>
|
|
|
|
@if (Route::has('register'))
|
|
<div class="text-sm text-center">
|
|
<span class="text-gray-600">{{ __("Don't have an account?") }}</span>
|
|
<a href="{{ route('register') }}" class="font-medium text-primary-600 hover:text-primary-500">
|
|
{{ __('Register') }}
|
|
</a>
|
|
</div>
|
|
@endif
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|