<x-app-layout>
    <div>

        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0">Update Password</h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="#">Home</a></li>
                            <li class="breadcrumb-item active">Update Settings</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->
        <!-- Main content -->
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        @include('admin.layouts.partials.validation')
                        {{-- password change --}}
                        <div class="card">
                            <div class="card-header">
                                <h3>Password Change</h3>
                            </div>
                            <!-- /.card-header -->
                            <form id="quickForm" novalidate="novalidate" action="{{ route('admin.changePassword') }}"
                                method="POST" enctype="multipart/form-data">
                                @csrf
                                @method('POST')
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-lg-12">

                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <div class="form-group">
                                                        <label for="oldpassword" class="control-label asterisk">Old
                                                            Password</label>
                                                    </div>
                                                </div>
                                                <div class="col-sm-8">
                                                    <div class="form-group">
                                                        <div class="input-group">
                                                            <div class="input-group-prepend">
                                                                <span class="input-group-text"><i
                                                                        class="fas fa-pen"></i></span>
                                                            </div>
                                                            <input type="password" id="oldpassword"
                                                                name="old_password" class="form-control"
                                                                placeholder="Current Password" required>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <div class="form-group">
                                                        <label for="new_password" class="control-label asterisk">New
                                                            Password</label>
                                                    </div>
                                                </div>
                                                <div class="col-sm-8">
                                                    <div class="form-group">
                                                        <div class="input-group">
                                                            <div class="input-group-prepend">
                                                                <span class="input-group-text"><i
                                                                        class="fas fa-pen"></i></span>
                                                            </div>
                                                            <input type="password" id="new_password"
                                                                name="new_password" class="form-control"
                                                                placeholder="New Password" required>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <div class="form-group">
                                                        <label for="confirm_new_password"
                                                            class="control-label asterisk">Retype New Password</label>
                                                    </div>
                                                </div>
                                                <div class="col-sm-8">
                                                    <div class="form-group">
                                                        <div class="input-group">
                                                            <div class="input-group-prepend">
                                                                <span class="input-group-text"><i
                                                                        class="fas fa-pen"></i></span>
                                                            </div>
                                                            <input type="password" id="confirm_new_password"
                                                                name="confirm_new_password" class="form-control"
                                                                placeholder="New Password" required>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>



                                        </div>
                                    </div>
                                </div>
                                <!-- /.card-body -->
                                <div class="card-footer">
                                    <div class="row">
                                        <div class="col-sm-2"></div>
                                        <div class="col-lg-4 col-6">
                                        </div>
                                        <div class="col-lg-4 col-6" style="text-align: end;">
                                            <button type="submit" class="btn btn-primary">Change Password</button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                            <!-- /.card-body -->
                        </div>
                        {{-- password change end --}}
                    </div>
                </div>
            </div>
        </div>

    </div>
    </div>

    @section('scripts')
    @endsection
</x-app-layout>
