@extends('layouts.frontend')

@section('title', 'Recuperar contraseña')

@section('content')
    <article class="page" id="login">
        <div class="breadcrumb">
            <div class="container d-flex align-items-center">
                <a href="{{ url('/') }}">Inicio</a>
                <span>@yield('title')</span>
            </div>
        </div>
        <section class="content">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-lg-6">
                        @if($errors->any())
                            <div class="alert alert-danger form-group">
                                @foreach($errors->all() as $error)
                                    {{ $error }}<br>
                                @endforeach
                            </div>
                        @endif
                        @if($status)
                            <div class="alert alert-success form-group">
                                {{ $status }}
                            </div>
                        @endif
                        <h2>@yield('title')</h2>
                        {!! Form::open([
                            'route' => 'password.email'
                        ]) !!}
                        <div class="form-group">
                            <label for="username" class="form-label">Email</label>
                            {!! Form::email('email', null, ['placeholder' => '', 'required', 'class' => 'form-control']) !!}
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn">
                                <span>Enviar enlace de recuperación</span>
                                <i class="far fa-arrow-right"></i>
                            </button>
                        </div>
                        {!! Form::close() !!}
                    </div>
                </div>
            </div>
        </section>
    </article>
@endsection
