@extends('layouts.open')
@section('title', 'Login')
@section('content')
<form class="form-signin" method="POST" action="{{ route('login') }}">
        @csrf

        <img class="mb-4" src="{{ asset('assets/images/logo.png') }}" alt="" width="72" height="57">

        <h1 class="h3 mb-3 fw-normal">Please sign in</h1>
        <div class="form-floating">
                <input type="email" name="email" class="form-control @error('email')is-invalid @enderror" id="floatingInput" placeholder="name@example.com">
                <label for="floatingInput">Email address</label>
                @error('email') <span>{{ $message }}</span>@enderror
        </div>
        <div class="form-floating">
                <input type="password" name="password" class="form-control @error('password')is-invalid @enderror" id="floatingPassword" placeholder="Password"> 
                <label for="floatingPassword">Password</label> 
                @error('password') <span>{{ $message }}</span>@enderror
        </div>
        <div class="form-check text-start my-3"> <input class="form-check-input" type="checkbox" value="remember-me" id="checkDefault">
                <label class="form-check-label" for="checkDefault"> Remember me </label>
        </div> 
        <button class="btn btn-primary w-100 py-2" type="submit">Sign in</button>
        <p class="mt-5 mb-3 text-body-secondary">&copy; {{date('Y')}}</p>
</form>
@endsection