@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> Profile Edit
    </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 active" 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" href="{{ route('admin.edit.profile.picture')}}"
                ><i class="icon-base ti tabler-bookmark 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="col-md-6">
                    <label for="email" class="form-label">E-mail</label>
                    <input class="form-control" type="email" value={{ $profileData->email}} name="email"/>
                  </div>

                  <div class="col-md-6">
                    <label class="form-label" for="phoneNumber">Phone Number</label>
                    <div class="input-group input-group-merge">

                      <input
                        type="text"
                        name="phone"
                        value="{{$profileData->phone}}" class="form-control"/>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <label for="address" class="form-label">Address</label>
                    <input type="text" class="form-control"  name="address"  value="{{ $profileData->address }}" />
                  </div>
                  <div class="col-md-6">
                    <label for="city" class="form-label">City </label>
                    <input class="form-control" type="text" name="city"  value="{{ $profileData->city }}" />
                  </div>

                  <div class="col-md-6">
                    <label class="form-label" for="country">Country</label>
                  <input class="form-control" type="text"  name="country"  value="{{ $profileData->country }}"/>
                  </div>


                  <div class="col-md-6" style="padding-top: 40px">
                    <input class="form-check-input" type="checkbox" value=""
                                        id="customCheckTemp4">
                                    <span class=" mb-0">Married</span>
                                    <input class="form-check-input" type="checkbox" name="martal_status"
                                        id="customCheckTemp4">
                                    <span class=" mb-0">Single</span>
                  </div>
                </div>
                <div class="mt-2" style="padding-top: 30px">
                  <button type="submit" class="btn btn-primary me-3">Save changes</button>
                  <button type="reset" class="btn btn-label-secondary">Cancel</button>
                </div>
              </form>
            </div>

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

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


@endsection
