<div class="tab-pane" id="coupons" role="tabpanel">
    <div class="d-flex flex-wrap align-items-end justify-content-end">
        <a href="<?php echo e(route('exportCoupons')); ?>" target="_blanck">
            <button type="button" class="btn btn-primary  me-1">
                <i class="mdi mdi-plus-circle ms-2"></i>  طباعة
            </button>
          </a>
        </div>
    <div class="table-responsive">
        <table class="table table-responsive-md card-table transactions-table text-center" id="example3">
            <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(); ?>
                        <tr>
                            <td><span>00000<?php echo e($coupon->id); ?>#</span></td>
                            <td><a href="<?php echo e(route('clintCoupons', $coupon->clint_id)); ?>"><span
                                        class="text-nowrap"><?php echo e($coupon->clint->name); ?></span></a></td>
                            <td><span><?php echo e($coupon->quantity . ' لتر'); ?></span></td>
                            <td><span class="text-nowrap">
                                    <?php if(isset($coupon->type)): ?>
                                        <?php if($coupon->type == 0): ?>
                                            بترول
                                        <?php else: ?>
                                            ديزل
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </span>
                            </td>
                            <td>
                                
                                <?php if($coupon->status ==0): ?>
                                    <span class="badge badge-dark light">غير مطبوعة</span>
                                <?php elseif($coupon->status ==1 ): ?>
                                    <span class="badge badge-warning light">مصروفة</span>
                                <?php elseif($coupon->status == 2): ?>
                                    <span class="badge badge-success light">مستلمة</span>
                                <?php elseif($coupon->status == 3): ?>
                                    <span class="badge badge-danger light">معلقة من المدير</span>
                            </td>
                    <?php endif; ?>
                    


                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </tbody>
        </table>
    </div>
</div>
<?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/dashboard_tables/coupons.blade.php ENDPATH**/ ?>