@extends('admin.admin_dashboard')
@section('admin') 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>

  <div class="content">

                    <!-- Start Content-->
                    <div class="container-fluid">

<!-- start page title -->
<div class="row">
    <div class="col-12">
        <div class="page-title-box">
            <div class="page-title-right">
                <ol class="breadcrumb m-0">
                     
                    <li class="breadcrumb-item active">Admin Change Password</li>
                </ol>
            </div>
            <h4 class="page-title">Admin Change Password</h4>
        </div>
    </div>
</div>     
<!-- end page title -->

<div class="row">
    

    <div class="col-lg-8 col-xl-8">
        <div class="card">
            <div class="card-body">
                
                
                    

                    <div class="tab-pane" id="settings">
    <form method="post" action="{{ route('admin.update.password') }}"  >
    	@csrf

        @if (session('status'))
        <div class="alert alert-success" role="alert">
            {{ session('status') }}
        </div>
        @elseif(session('error'))
  <div class="alert alert-danger" role="alert">
            {{ session('error') }}
        </div> 
        @endif

  <h5 class="mb-4 text-uppercase"><i class="mdi mdi-account-circle me-1"></i>Admin Change Password</h5>
        <div class="row">


    <div class="col-md-12">
        <div class="mb-3">
            <label for="firstname" class="form-label">Old Password</label>
            <input type="password" name="old_password" class="form-control @error('old_password') is-invalid @enderror" id="current_password" >
            @error('old_password')
            <span class="text-danger">{{ $message }}</span>
            @enderror 
        </div>
    </div>
    


     <div class="col-md-12">
        <div class="mb-3">
            <label for="lastname" class="form-label"> New Password  </label>
            <input type="password" name="new_password" class="form-control @error('new_password') is-invalid @enderror" id="new_password"  >
             @error('new_password')
            <span class="text-danger">{{ $message }}</span>
            @enderror 
        </div>
    </div> <!-- end col -->
   


    <div class="col-md-12">
        <div class="mb-3">
            <label for="lastname" class="form-label">Confirm New Password  </label>
            <input type="password" name="new_password_confirmation" class="form-control" id="new_password_confirmation"  >
        </div>
    </div> <!-- end col -->

 


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

        
        <div class="text-end">
            <button type="submit" class="btn btn-success waves-effect waves-light mt-2"><i class="mdi mdi-content-save"></i> Change Password</button>
        </div>
    </form>
                    </div>
                    <!-- end settings content-->

                </div> <!-- end tab-content -->
            </div>
        </div> <!-- end card-->

    </div> <!-- end col -->
</div>
<!-- end row-->

</div> <!-- container -->

</div> <!-- content -->

 



@endsection