@extends('layouts.admin.master')

@section('admin_main_body')




    <!-- Content -->
    <div class="container-xxl flex-grow-1 container-p-y">


        <h4 class="py-3 breadcrumb-wrapper mb-4">
            <span class="text-muted fw-light">Profile Settings /</span> Change Password2
        </h4>

      <div class="row">
        <div class="col-md-12">
          <div class="nav-align-top">
            <ul class="nav nav-pills flex-column flex-md-row mb-6 gap-md-0 gap-2">
              <li class="nav-item">
                <a class="nav-link" href="{{ route('admin.edit.profile')}}"
                  ><i class="icon-base ti tabler-users icon-sm me-1_5"></i> Edit Profile</a
                >
              </li>
              <li class="nav-item">
                <a class="nav-link active" href="javascript:void(0);"
                  ><i class="icon-base ti tabler-lock icon-sm me-1_5"></i> Change Password</a
                >
              </li>
              <li class="nav-item">
                <a class="nav-link" href="{{ route('admin.view.profile')}}"
                  ><i class="icon-base ti tabler-bookmark icon-sm me-1_5"></i> View Profile</a
                >
              </li>
              <li class="nav-item">
                <a class="nav-link" href="pages-account-settings-notifications.html"
                  ><i class="icon-base ti tabler-bell icon-sm me-1_5"></i> Dashboard</a
                >
              </li>

            </ul>
          </div>
          <!-- Change Password -->
          <div class="card mb-6">
            <h5 class="card-header">Change Password</h5>
            <div class="card-body pt-1">
              {{-- <form id="formAccountSettings" method="GET" onsubmit="return false"> --}}

                <form method="post" action="{{ route('admin.password.update') }}" >

                {{-- <form method="post" action="{{ route('admin.update.new.password') }}" enctype="multipart/form-data"> --}}
                @csrf


                @if ($errors->any())
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif


                <div class="row mb-sm-6 mb-2">
                  <div class="col-md-6 form-password-toggle form-control-validation">
                    <label class="form-label" for="currentPassword">Current Password</label>
                    <div class="input-group input-group-merge">
                      <input
                        class="form-control"
                        type="password"
                        name="currentPassword"
                        id="currentPassword"
                        placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;" />
                      <span class="input-group-text cursor-pointer"
                        ><i class="icon-base ti tabler-eye-off icon-xs"></i
                      ></span>
                    </div>
                  </div>
                </div>
                <div class="row gy-sm-6 gy-2 mb-sm-0 mb-2">
                  <div class="mb-6 col-md-6 form-password-toggle form-control-validation">
                    <label class="form-label" for="newPassword">New Password</label>
                    <div class="input-group input-group-merge">
                      <input
                        class="form-control"
                        type="password"
                        id="newPassword"
                        name="newPassword"
                        placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;" />
                      <span class="input-group-text cursor-pointer"
                        ><i class="icon-base ti tabler-eye-off icon-xs"></i
                      ></span>
                    </div>
                  </div>

                  <div class="mb-6 col-md-6 form-password-toggle form-control-validation">
                    <label class="form-label" for="confirmPassword">Confirm New Password</label>
                    <div class="input-group input-group-merge">
                      <input
                        class="form-control"
                        type="password"
                        name="confirmPassword"
                        id="confirmPassword"
                        placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;" />
                      <span class="input-group-text cursor-pointer"
                        ><i class="icon-base ti tabler-eye-off icon-xs"></i
                      ></span>
                    </div>
                  </div>
                </div>
                <h6 class="text-body">Password Requirements:</h6>
                <ul class="ps-4 mb-0">
                  <li class="mb-4">Minimum 8 characters long - the more, the better</li>

                </ul>
                <div class="mt-6">
                  <button type="submit" class="btn btn-primary me-3">Save changes</button>
                  <button type="reset" class="btn btn-label-secondary">Reset</button>
                </div>
              </form>
            </div>
          </div>
          <!--/ Change Password -->






        </div>




@endsection
