

<?php $__env->startSection('title'); ?>
    عرض العملاء
<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('header-content'); ?>
    عرض العملاء

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-body'); ?>
  <!--**********************************
            Content body start
        ***********************************-->
            <!-- row -->
			<div class="container-fluid">
				<!--**********************************Tabs Start***********************************-->
				<div class="d-flex flex-wrap align-items-end justify-content-end  mb-3">

                    <button type="button" class="btn btn-primary  me-1" data-bs-toggle="modal" data-bs-target="#addTank">
                        <i class="mdi mdi-plus-circle ms-2"></i>اضافة عميل جديد
                    </button>				</div>
				<!--**********************************Tabs End***********************************-->
				<div class="row">
					<div class="col-xl-12 tab-content">
						<!--**********************************Table AllTransaction Start***********************************-->
						<div class="tab-pane fade show active" id="AllTransaction" role="tabpanel" aria-labelledby="transaction-tab">
							<div class="table-responsive fs-14">
								<table class="table card-table display mb-4 dataTablesCard text-black" id="example5">
									<thead>
										<tr>
											<th>رقم </th>
											<th>اسم العميل</th>
											<th>رقم الحساب</th>
											<th>العنوان</th>
                                            <th>رقم الجوال</th>
 											<th>الحالة</th>
											<th>العمليات</th>
										</tr>
									</thead>
                                    <tbody>
                                        <?php if(isset($users)): ?>
                                            <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                    <tr class="odd" role="row">
                                                      <td>
                                                          <?php if(isset($user->id)): ?>
                                                          <?php echo e($user->id); ?>

                                                          <?php endif; ?>
                                                      </td>
                                                      <td>
                                                          <?php if(isset($user->name)): ?>
                                                          <?php echo e($userServes->deleteTypeAccount($user->name)); ?>

                                                          <?php endif; ?>
                                                      </td>
                                                      <td>
                                                          <?php if(isset($user->userprofile->account_number)): ?>
                                                          <?php echo e($user->userprofile->account_number); ?>

                                                          <?php endif; ?>
                                                      </td>
                                                      <td>
                                                          <?php if(isset($user->userprofile->address)): ?>
                                                          <?php echo e($user->userprofile->address); ?>

                                                          <?php endif; ?>
                                                      </td>
                                                      <td>
                                                          <?php if(isset($user->userprofile->phone)): ?>
                                                          <?php echo e($user->userprofile->phone); ?>

                                                          <?php endif; ?>
                                                      </td>

                                                      <td>
                                                        <?php if(isset($user->userprofile->is_active)): ?>
                                                        <?php if($user->userprofile->is_active == 1): ?>
                                                         <a href="javascript:void(0)" class="btn btn-success btn-rounded light">نشط</a>
                                                        <?php else: ?>
                                                          <a href="javascript:void(0)" class="btn btn-danger btn-rounded light">موقف</a>
                                                        <?php endif; ?>
                                                        <?php endif; ?>

                                                      </td>
                                                      <td>
                                                        <div class="dropdown dropstart">
                                                            <a href="javascript:void(0);" class="btn-link" data-bs-toggle="dropdown" aria-expanded="false">
                                                                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                                                    <path d="M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" stroke="#575757" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                                                    <path d="M12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z" stroke="#575757" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                                                    <path d="M12 20C12.5523 20 13 19.5523 13 19C13 18.4477 12.5523 18 12 18C11.4477 18 11 18.4477 11 19C11 19.5523 11.4477 20 12 20Z" stroke="#575757" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                                                </svg>
                                                            </a>
                                                            <div class="dropdown-menu">
                                                                <a class="dropdown-item" href="javascript:void(0);"><i class="las la-print  scale5 ms-3"></i>طباعة</a>
                                                                <a class="dropdown-item" href="transaction-details.html"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>

                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </tbody>
								</table>
							</div>
						</div>
						<!--**********************************Table AllTransaction End***********************************-->

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

        <!--**********************************
            Content body end
        ***********************************-->

        <!--**********************************
           strat modals
        ***********************************-->

     
   <div class="modal fade" id="addTank" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="addTank" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-simple modal-add-new-address">
      <div class="modal-content">
        <div class="modal-body">
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            <div class="text-center mb-4">
                <h3 class="address-title">اضافة عميل جديد</h3>
                            <p class="address-subtitle">يرجى تعبيئة جميع البيانات</p>
                          </div>
                          <form id="addNewAddressForm" method="POST" action="<?php echo e(route('storeClint')); ?>" class="row g-3 fv-plugins-bootstrap5 fv-plugins-framework"  novalidate="novalidate">
                              <?php echo csrf_field(); ?>
                              <div class="col-12 col-md-6 fv-plugins-icon-container">
                                  <label class="form-label" for="name">الاسم</label>
                                  <input type="text" id="name" name="name" class="form-control" placeholder="يرجى ادخال الاسم">
                                <div class="fv-plugins-message-container invalid-feedback">
                                  
                                </div>
                              </div>
                              <div class="col-12 col-md-6 fv-plugins-icon-container">
                                  <label class="form-label" for="accountType">نوع الحساب</label>
                                  <select id="accountType" name="accountType" class="form-control">
                                      <option value="0">بترول</option>
                                      <option value="1">ديزل</option>
                                  </select>
                                  <div class="fv-plugins-message-container invalid-feedback">
                                      
                                  </div>
                              </div>

                              <input type="hidden" value="4" name="role">

                              <div class="col-12 col-md-6 fv-plugins-icon-container">
                                  <label class="form-label" for="phone">رقم الهاتف او الجوال</label>
                                  <input type="tel" id="phone" name="phone" class="form-control" placeholder="يرجى ادخال رقم الهاتف او  الجوال">
                                <div class="fv-plugins-message-container invalid-feedback">
                                  
                                </div>
                              </div>
                              <div class="col-12 col-md-6 fv-plugins-icon-container">
                                  <label class="form-label" for="address">العنوان</label>
                                  <input type="text" id="address" name="address" class="form-control" placeholder="يرجى ادخال اللعنوان">
                                <div class="fv-plugins-message-container invalid-feedback">
                                  
                                </div>
                              </div>
                              <div class="col-12 col-md-6 fv-plugins-icon-container">
                                  <label class="form-label" for="accountNumber">رقم الحساب</label>
                                  <input type="number" id="accountNumber" name="accountNumber" class="form-control" placeholder="يرجى ادخال رقم الحساب">
                                <div class="fv-plugins-message-container invalid-feedback">
                                  
                                </div>
                              </div>

                            <div class="col-12 text-center">
                              <button type="submit" class="btn btn-primary me-sm-3 me-1">اضافة</button>
                              <button type="reset" class="btn btn-label-secondary" data-bs-dismiss="modal" aria-label="Close">الغاء</button>
                            </div>
                        </form>
            </div>
      </div>
    </div>
  </div>


<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('/vendor/datatables/js/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('/js/plugins-init/datatables.init.js')); ?>"></script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/murad/client/list.blade.php ENDPATH**/ ?>