@extends('layouts.admin.master')

@section('admin_main_body')

    <!--CDN support JQuery from w3 schools TK-- To show images-->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

 <!-- 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> Edit Profile
    </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-user icon-sm me-1_5"></i>Edit Profile</a
              >
            </li>
            <li class="nav-item">
              <a class="nav-link" href="{{ route('admin.profile.password.change')}}"
                ><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  active" href="{{ route('admin.edit.profile.picture')}}"
                ><i class="icon-base ti tabler-camera icon-sm me-1_5"></i> Update Picture</a
              >
            </li>
            <li class="nav-item">
              <a class="nav-link" href="{{ route('admin.view.profile')}}"
                ><i class="icon-base ti tabler-bell icon-sm me-1_5"></i> View Profile</a
              >
            </li>

          </ul>
        </div>


     <div class="row"  style="padding-top: 50px">
            <div class="col-md-6">
             </div>
        </div>
     <!--Profile Account -->



       <!--Profile Picture Account -->
       <div class="row">


        <div class="card mb-6">

            {{-- <h5 class="card-header">Edit Profile</h5> --}}

            <div class="card-body pt-4">
              {{-- <form id="formAccountSettings" method="GET" onsubmit="return false"> --}}

                <form method="post" action="" 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 gy-4 gx-6 mb-6">
    <p class="h6 mb-2 fw-semibold">Edit Profile</p>

          <div class="tab-pane show active" id="personal-info" role="tabpanel">
                  <div class="p-sm-3 p-0"> <h6 class="fw-medium mb-3"> Click on camera to change picture: </h6>
                        <div class="mb-4 d-sm-flex align-items-center">
                          <div class="mb-0 me-5"> <span class="avatar avatar-xxl avatar-rounded">
                               <img id="showImage2"  src="{{asset('backend/assets/images/faces/9.jpg')}}" alt="">
                                <span class="badge rounded-pill bg-primary avatar-badge">
                                   <input type="file" name="photo" class="position-absolute w-100 h-100 op-0" id="image2"> <i class="fe fe-camera"></i> </span> </span>
                          </div>
                <div class="btn-group">
                    <button class="btn btn-primary">Save Change</button>
                 <button class="btn btn-light">Remove</button>
                </div>


                            </div>
                            </div>


                    </div>


          </div>
              </form>
            </div>

          </div>
 <!-- End ProfileAccount -->

      </div>
    </div>
  </div>
 <!-- / Content -->


@endsection
