
<div class="tab-pane show fade" id="transfers" role="tabpanel">
    <div class="d-flex flex-wrap align-items-end justify-content-end">
        <a href="<?php echo e(route('exportTransfers')); ?>" 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="example">
              <thead>
                <tr>

                    <th>رقم الحوالة</th>
                    <th>المستلم</th>
                    <th>المرسل</th>
                    <th>الكمية</th>
                    <th>النوع</th>
                    <th>الحالة</th>
                </tr>
            </thead>
            <tbody>

                <tr>
                    <?php if(isset($transfers)): ?>
                        <?php $__currentLoopData = $transfers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transfer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <td>
                                <span>
                                    <?php if(isset($transfer->id)): ?>
                                        <?php echo e($transfer->id); ?>

                                    <?php endif; ?>
                                </span>
                            </td>
                            <td>
                                <span class="text-nowrap">
                                    <?php if(isset($transfer->recipient_name)): ?>
                                        <?php echo e($transfer->recipient_name); ?>

                                    <?php endif; ?>
                                </span>
                            </td>
                            <td><span class="text-nowrap">
                                <?php if(isset($transfer->sender->name)): ?>
                                    <a href="<?php echo e(route('clintTransfers', $transfer->sender->id)); ?>">
                                        <?php echo e($transfer->sender->name); ?></a>
                                <?php endif; ?>
                            </span>
                        </td>
                            <td>
                                <span>
                                    <?php if(isset($transfer->quantity)): ?>
                                        <?php echo e($transfer->quantity); ?>

                                    <?php endif; ?>
                                </span>
                            </td>
                            <td>
                                <span class="text-nowrap">
                                    <?php if(isset($transfer->type)): ?>
                                        <?php if($transfer->type == 0): ?>
                                            بترول
                                        <?php else: ?>
                                            ديزيل
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </span>
                            </td>
                            <td>
                                <?php if(isset($transfer->status)): ?>
                                         <?php if($transfer->status == 0): ?>
                                             <a href="javascript:void(0)" class="btn btn-dark btn-rounded light">قيد
                                                 الإنتظار</a>
                                         <?php elseif($transfer->status == 1): ?>
                                             <a href="javascript:void(0)" class="btn btn-success btn-rounded light">مستلمة</a>
                                         <?php elseif($transfer->status == 2): ?>
                                             <a href="javascript:void(0)" class="btn btn-danger btn-rounded light">ملغية </a>
                                         <?php else: ?>
                                             <a href="javascript:void(0)" class="btn btn-info btn-rounded light">معلقة من
                                                 المدير</a>
                                         <?php endif; ?>
                                     <?php endif; ?>
                            </td>

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