<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width initial-scale=1.0">
    <title>TAMIMI</title>
    <!-- GLOBAL MAINLY STYLES-->
    <link href="{{asset('')}}assets/admin/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
    <link href="{{asset('')}}assets/admin/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="{{asset('')}}assets/admin/vendors/line-awesome/css/line-awesome.min.css" rel="stylesheet" />
    <link href="{{asset('')}}assets/admin/vendors/themify-icons/css/themify-icons.css" rel="stylesheet" />
    <link href="{{asset('')}}assets/admin/vendors/animate.css/animate.min.css" rel="stylesheet" />
    <link href="{{asset('')}}assets/admin/vendors/toastr/toastr.min.css" rel="stylesheet" />
    <link href="{{asset('')}}assets/admin/vendors/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet" />
    <!-- PLUGINS STYLES-->
    <link href="{{asset('')}}assets/admin/vendors/jvectormap/jquery-jvectormap-2.0.3.css" rel="stylesheet" />
    <!-- THEME STYLES-->
    <!-- Datable Plugin -->
    <link href="{{asset('')}}assets/admin/vendors/dataTables/datatables.min.css" rel="stylesheet" />
    <link href="{{asset('')}}assets/admin/css/main.min.css" rel="stylesheet" />
    <!-- PAGE LEVEL STYLES-->

    <!-- DATE PICKER  -->
    <link href="{{asset('')}}assets/vendors/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css" rel="stylesheet" />
</head>
<div class="container">
    <center><h1>{{__('Tamimi')}}</h1></center>
    <?php $success = false; ?>
    @if (\Session::has('error'))
        <div class="alert alert-danger">
            {!! \Session::get('error') !!}
        </div>
    @endif
    @if (\Session::has('success'))
    <?php $success = true; ?>
        <div class="alert alert-success">
            {!! \Session::get('success') !!}
        </div>
    @endif
    
                @if($success == true)
    <div class="row justify-content-center" style="display: none">
                @else
    <div class="row justify-content-center">
                @endif
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">{{ __('Reset Password') }}</div>
                <div class="card-body">
                    <form method="POST" action="">
                        @csrf

                        <input type="hidden" name="token" value="{{ $token }}">

                        <div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>

                            <div class="col-md-6">
                                <input type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" data-validation="required" autofocus>

                                
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>

                            <div class="col-md-6">
                                <input type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password_confirm" data-validation="length" data-validation-length="min8" >

                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>

                            <div class="col-md-6">
                                <input type="password" class="form-control" name="password" data-validation="confirmation"  data-validation-confirm="password_confirm">
                            </div>
                        </div>

                        <div class="form-group row mb-0">
                            <div class="col-md-6 offset-md-4">
                                <input type="submit" class="btn btn-primary" value="Reset Password">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.0.min.js"></script>
<!-- JS FORM VALIDATION -->

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>
<script>
  $.validate({
    lang: 'en',
    modules : 'security'
  });
</script>