@include('layouts.header')

    <!-- BEGIN: Content-->
    <div class="app-content content ">
        <div class="content-overlay"></div>
        <div class="header-navbar-shadow"></div>
        <div class="content-wrapper">
            <div class="content-header row">
            </div>
            <div class="content-body">
                <div class="misc-wrapper">
                    <div class="misc-inner p-2 p-sm-3">
                        <div class="w-100 text-center">
                            <h2 class="mb-1">{{__('New password')}}<i data-feather="phone" class="font-medium-4"></i></h2>
                            <form action="{{ route('user.reset') }}" method="POST">
                            @csrf
                                <div class="form-group">
                                    <input type="hidden" name="user_id" value="{{$user->id}}">
                                    <input type="hidden" name="code" value="{{mb_substr($user->password, -10)}}">
                                    <input type="text" name="password" class="form-control text-center" required>
                                </div>
                                <br>
                                <button type="submit" onclick="this.disabled=true;this.form.submit();" class="btn btn-primary mb-1 btn-sm-block">{{__('Change password')}}</button><br>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- BEGIN: Vendor JS-->
    <script src="{{ url('/') }}/app-assets/vendors/js/vendors.min.js"></script>
    <!-- BEGIN Vendor JS-->

@include('layouts.footer')