

<?php $__env->startSection('title'); ?>
عرض قسائم العميل : 
<?php $__env->stopSection(); ?>

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

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

<?php $__env->startSection('header-content'); ?>
    عرض قسائم
	<?php if(isset($coupons[0]->type)): ?>
	<?php if($coupons[0]->type == 0): ?>
		البترول
	<?php else: ?>
		الديزل
	<?php endif; ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-body'); ?>
  <!--**********************************
            Content body start
        ***********************************-->
		<?php echo $__env->make('massages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <!-- row -->
			<div class="container-fluid">
				<!--**********************************Tabs Start***********************************-->
				<div class="d-flex flex-wrap align-items-center mb-3">
					<div class="mb-3 ms-auto">
						<div class="card-tabs style-1 mt-3 mt-sm-0">
							<ul class="nav nav-tabs" role="tablist">
								<li class="nav-item">
									<a class="nav-link active" href="javascript:void(0);" data-bs-toggle="tab" id="transaction-tab" data-bs-target="#AllTransaction" role="tab">جميع القسائم</a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="javascript:void(0);" data-bs-toggle="tab" id="Completed-tab" data-bs-target="#Completed" role="tab">القسائم غير مطبوعة </a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="javascript:void(0);" data-bs-toggle="tab" id="Pending-tab" data-bs-target="#Pending" role="tab">قسائم مصروفة للعميل</a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="javascript:void(0);" data-bs-toggle="tab" id="NotPrinting-tab" data-bs-target="#NotPrinting" role="tab">القسائم  المستلمة</a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="javascript:void(0);" data-bs-toggle="tab" id="Canceled-tab" data-bs-target="#Canceled" role="tab">القسائم الملغية</a>
								</li>
							</ul>
						</div>
					</div>
					<a href="javascript:void()" data-bs-toggle="modal" data-bs-target="#add-category" class="btn btn-primary btn-event ">
                                        <span class="align-middle"><i class="ti-plus"></i></span> بحث عن قسيمة</a>				</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 text-center" id="example5">
									<thead>
										<tr>
											
											<th>رقم القسيمة</th>
											<th>الكمية</th>
											<th>الحالة</th>
											<th>العمليات</th>
											
										</tr>
									</thead>
									<tbody>
										<?php if(isset($coupons)): ?>
											<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<tr>
											
											</td>
											<td><span>00000<?php echo e($coupon->id); ?>#</span></td>
											<td><span><?php echo e($coupon->quantity . ' لتر'); ?></span></td>
											<?php if($coupon->status == 0): ?>
											<td><span class="badge badge-dark light">غير مطبوعة</span></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="<?php echo e(route('printCoupon',$coupon->id)); ?>"><i class="las la-print  scale5 ms-3"></i>طباعة</a>
														
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 1): ?>
											<td><span class="badge badge-warning light">مصروفة</span></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="<?php echo e(route('cancelClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>إيقاف القسيمة</a>
														<a class="dropdown-item" href="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 2): ?>
											<td><span class="badge badge-success light">مستلمة</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status ==3): ?>
											<td><span class="badge badge-danger light">معلقة من المدير</span></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="<?php echo e(route('activeCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>تفعيل</a>
														<a class="dropdown-item" href="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php endif; ?>
											
										</tr>
										
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										<?php endif; ?>
										
										
										
										
										
										
										
										
										
										
										
									</tbody>
								</table>
							</div>
						</div>
						<!--**********************************Table AllTransaction End***********************************-->

						<!--**********************************Table Completed Start***********************************-->
						<div class="tab-pane fade" id="Completed" role="tabpanel" aria-labelledby="Completed-tab">
						<div class="table-responsive fs-14">
								<table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example5">
									<thead>
										<tr >
											
											<th>رقم القسيمة</th>
											<th>الكمية</th>
											<th>الحالة</th>
											<th>العمليات</th>
											<th style="position: relative;"><a href="<?php if(isset($coupons[0]->clint_id)): ?><?php echo e(route('printAllClintCoupons',['clintId'=>$coupons[0]->clint_id, 'type'=>$coupons[0]->type])); ?><?php endif; ?>"style="position: absolute; left: 10px; top: 10px; background: #eee; color: black; border: none;" class="btn btn-primary btn-event ">
                                        <span class="align-middle"><i class="las la-print  scale5 ms-3"></i></span> طباعة الكل</a>	</th>
										</tr>
									</thead>
									<tbody>
										<?php if(isset($coupons)): ?>
											<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<?php if($coupon->status == 0): ?>
											<tr>
											
											</td>
											<td><span>00000<?php echo e($coupon->id); ?>#</span></td>
											<td><span><?php echo e($coupon->quantity . ' لتر'); ?></span></td>
											<?php if($coupon->status == 0): ?>
											<td><span class="badge badge-dark light">غير مطبوعة</span></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="<?php echo e(route('printCoupon',$coupon->id)); ?>"><i class="las la-print  scale5 ms-3"></i>طباعة</a>
														
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 1): ?>
											<td><span class="badge badge-warning light">مصروفة</span></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="<?php echo e(route('cancelClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>إيقاف القسيمة</a>
														<a class="dropdown-item" href="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 2): ?>
											<td><span class="badge badge-success light">مستلمة</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 3): ?>
											<td><span class="badge badge-danger light">موقفه</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php endif; ?>
											
										</tr>
										<?php endif; ?>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										<?php endif; ?>
										
										
										
										
										
										
										
										
										
										
										
									</tbody>
								</table>
							</div>
							
						</div>
						<!--**********************************Table Completed End***********************************-->

						<!--**********************************Table Pending Start***********************************-->
						<div class="tab-pane fade" id="Pending" role="tabpanel" aria-labelledby="Pending-tab">
						<table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example5">
									<thead>
										<tr>
											
											<th>رقم القسيمة</th>
											<th>الكمية</th>
											<th>الحالة</th>
											<th>العمليات</th>
											
										</tr>
									</thead>
									<tbody>
										<?php if(isset($coupons)): ?>
											<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<?php if($coupon->status == 1): ?>
											<tr>
											
											</td>
											<td><span>00000<?php echo e($coupon->id); ?>#</span></td>
											<td><span><?php echo e($coupon->quantity . ' لتر'); ?></span></td>
											<?php if($coupon->status == 0): ?>
											<td><span class="badge badge-dark light">غير مطبوعة</span></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="<?php echo e(route('printCoupon',$coupon->id)); ?>"><i class="las la-print  scale5 ms-3"></i>طباعة</a>
														
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 1): ?>
											<td><span class="badge badge-warning light">مصروفة</span></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="<?php echo e(route('cancelClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>إيقاف القسيمة</a>
														<a class="dropdown-item" href="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 2): ?>
											<td><span class="badge badge-success light">مستلمة</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 3): ?>
											<td><span class="badge badge-danger light">موقفه</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php endif; ?>
											
											
										</tr>
										<?php endif; ?>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										<?php endif; ?>
										
										
										
										
										
										
										
										
										
										
										
									</tbody>
								</table>
						</div>
						<!--**********************************Table Pending End***********************************-->

						<!--**********************************Table NotPrinting Start***********************************-->
						<div class="tab-pane fade" id="NotPrinting" role="tabpanel" aria-labelledby="NotPrinting-tab">
						<div class="table-responsive fs-14">
								<table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example5">
									<thead>
										<tr>
											
											<th>رقم القسيمة</th>
											<th>الكمية</th>
											<th>المستلم لها </th>
											<th>الحالة</th>
											<th>تاريخ الاستلام</th>
											
										</tr>
									</thead>
									<tbody>
										<?php if(isset($coupons)): ?>
											<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<?php if($coupon->status == 2): ?>
											<tr>
											
											
											<td><span>00000<?php echo e($coupon->id); ?>#</span></td>
											<td><span><?php echo e($coupon->quantity . ' لتر'); ?></span></td>
											<td>علي محمد قاسم </td>
											<?php if($coupon->status == 0): ?>
											<td><span class="badge badge-dark light">غير مطبوعة</span></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="<?php echo e(route('printCoupon',$coupon->id)); ?>"><i class="las la-print  scale5 ms-3"></i>طباعة</a>
														
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 1): ?>
											<td><span class="badge badge-warning light">مصروفة</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 2): ?>
											<td><span class="badge badge-success light">مستلمة</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 3): ?>
											<td><span class="badge badge-danger light">موقفه</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php endif; ?>
											
											
										</tr>
										<?php endif; ?>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										<?php endif; ?>
										
										
										
										
										
										
										
										
										
										
										
									</tbody>
								</table>
							</div>
						</div>
						<!--**********************************Table NotPrinting End***********************************-->


						<!--**********************************Table Canceled Start***********************************-->
						<div class="tab-pane fade" id="Canceled" role="tabpanel" aria-labelledby="Canceled-tab">
						<div class="table-responsive fs-14">
								<table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example5">
									<thead>
										<tr>
											
											<th>رقم القسيمة</th>
											<th>الكمية</th>
											<th>الحالة</th>
											<th>العمليات</th>
											
										</tr>
									</thead>
									<tbody>
										<?php if(isset($coupons)): ?>
											<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<?php if($coupon->status == 3): ?>
											<tr>
											
											</td>
											<td><span>00000<?php echo e($coupon->id); ?>#</span></td>
											<td><span><?php echo e($coupon->quantity . ' لتر'); ?></span></td>
											<?php if($coupon->status == 0): ?>
											<td><span class="badge badge-dark light">غير مطبوعة</span></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="<?php echo e(route('printCoupon',$coupon->id)); ?>"><i class="las la-print  scale5 ms-3"></i>طباعة</a>
														
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 1): ?>
											<td><span class="badge badge-warning light">مصروفة</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 2): ?>
											<td><span class="badge badge-success light">مستلمة</span></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="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php elseif($coupon->status == 3): ?>
											<td><span class="badge badge-danger light">موقفه</span></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="<?php echo e(route('activeCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>تفعيل</a>
														<a class="dropdown-item" href="<?php echo e(route('showClintCoupon',$coupon->id)); ?>"><i class="las la-info-circle scale5 ms-3"></i>عرض</a>
													</div>
												</div>
											</td>
											<?php endif; ?>
											
											
										</tr>
										<?php endif; ?>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										<?php endif; ?>
										
										
										
										
										
										
										
										
										
										
										
									</tbody>
								</table>
							</div>
						</div>
						</div>
						<!--**********************************Table Canceled End***********************************-->
					</div>
					<!--**********************************Model Search Start***********************************-->
					<div class="modal fade none-border show" id="add-category" style="display: nono; padding-right: 17px;" aria-modal="true" role="dialog">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h4 class="modal-title"><strong>بحث عن قسيمة</strong></h4>
                                </div>
                                <div class="modal-body">
                                    <form action="<?php echo e(Route('showCoupon')); ?>" method="GET" class="needs-validation" novalidate>
                                        <div class="row">
                                            <div class="col-12">
                                                <label class="control-label form-label"> رقم القسيمة</label>
                                                <input class="form-control form-white" placeholder="ادخل رقم القسيمة" type="number" name="couponId" required="">
                                                <div class="fv-plugins-message-container invalid-feedback ">
                                                    حدد رقم القسيمة 
                                                </div>
                                            </div>
                                            
                                        </div>
                                    
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-danger waves-effect" data-bs-dismiss="modal">إغلاق</button>
                                    <button type="submit" class="btn btn-primary waves-effect waves-light save-category" data-bs-toggle="modal">بحث</button>
                                </div>
								</form>
                            </div>
                        </div>
                    </div>
					<!--**********************************Model Search End***********************************-->
				</div>
            </div>
			
        
        <!--**********************************
            Content body end
        ***********************************-->
					
                
                

				<?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/client/client_coupons.blade.php ENDPATH**/ ?>