@extends('layouts.home2')

@section('content')

    <section id="content">
        <div class="content-wrap">
            <div class="container clearfix">

                <div class="row">

                    <div class="col-md-6 col-md-offset-3">

                        <div class="well well-lg nobottommargin">
                            <form id="login-form" name="login-form" class="nobottommargin" action="{{ route('user-reset-password-submit') }}" method="post">

                                <h3>Login to your Account</h3>
                                <br>
                                <div class="row">
                                    <div class="col-md-12">
                                        <!--  ==================================SESSION MESSAGES==================================  -->
                                        @if (session()->has('message'))
                                            <div class="alert alert-{!! session()->get('type')  !!} alert-dismissable">
                                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                                {!! session()->get('message')  !!}
                                            </div>
                                        @endif
                                    <!--  ==================================SESSION MESSAGES==================================  -->


                                        <!--  ==================================VALIDATION ERRORS==================================  -->
                                        @if($errors->any())
                                            @foreach ($errors->all() as $error)

                                                <div class="alert alert-danger alert-dismissable">
                                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                                    {!!  $error !!}
                                                </div>

                                        @endforeach
                                    @endif
                                    <!--  ==================================SESSION MESSAGES==================================  -->

                                    </div>
                                </div>

                                <div class="col_full">
                                    <label for="login-form-username">Email:</label>
                                    <input id="username" name="email" class="form-control input-lg" type="email">
                                </div>

                                <div class="col_full">
                                    <label for="login-form-password">New Password:</label>
                                    <input id="password" name="password" class="form-control input-lg" type="password">
                                </div>
                                <div class="col_full">
                                    <label for="login-form-password">Confirm Password:</label>
                                    <input id="password" name="password_confirmation" class="form-control input-lg" type="password">
                                </div>
                                <input type="hidden" name="token" value="{{ $token }}">

                                {!! csrf_field() !!}

                                <div class="col_full nobottommargin">
                                    <button class="button btn btn-primary btn-block" style="margin-top: 15px;" id="login-form-submit"
                                            name="login-form-submit" value="login"><i class="fa fa-sign-in"></i> Reset Password
                                    </button>
                                </div>
                                <br>
                                <p style="text-align: center;margin-bottom: 10px; font-weight: bold;">
                                    Don't Have An Account? <a style="color: red" href="{{ route('user-registration') }}"> Register Now </a>
                                </p>
                                <br>

                            </form>
                            </div>


                        </div>


                    </div><!-- row -->


                </div>
            </div>
    </section>

@endsection