@extends('frontend.master')
@section('title', 'Forget Password | View Trip')
@section('content')
<section class="hero py-5">
    <div class="container-fluid" style="max-width:1030px">
        <div class="row d-flex justify-content-center gy-5 gx-sm-0">
            <div class="col-lg-6 d-flex justify-content-center">
                <form style="max-width: 20.75rem; width:100%;" action="{{ route('password.email') }}" method="post">
                @if ($errors->any())
                    <div class="credential-error">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif

                @if (session('status'))
                    <div class="credential-success">
                        {{ session('status') }}
                    </div>
                @endif

                    @csrf
                    @error('email')<div class="text-danger mb-3">{{ $message }}</div>@enderror
                    <div>
                        <h2 class="fw-light mb-4 text-center text-md-start">
                            Forgot Password
                        </h2>
                        <input class="form-control custom-input mb-3" type="email" type="email" name="email"
                           value="{{ old('email') }}"
                           placeholder="Email Address"
                           required
                           >
                       <button type="submit" class="btn btn-green w-100 py-2 mb-3">RESET PASSWORD</button>
                        <a href="{{ route('/') }}" class="btn btn-gray w-100 py-2">CANCEL</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
@endsection