<?php $__env->startSection('title', 'All Shipments'); ?>

<?php $__env->startSection('content'); ?>
<div class="col-12">
    <div class="card">
        <h5 class="card-header">All Shipments</h5>
        <div class="card-body table-responsive">
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Code</th>
                        <th>Description</th>
                        <th>Sender</th>
                        <th>Receiver</th>
                        <th>Status</th>
                        <th>Date</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $shipment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($key +1); ?></td>
                        <td><?php echo e($item->code); ?></td>
                        <td><?php echo e(text_trim($item->description)); ?></td>
                        <td>
                            <p class="my-0"><?php echo e($item->sender_name); ?></p>
                            <p class="my-0"><?php echo e($item->sender_email); ?></p>
                            <p class="my-0"><?php echo e($item->sender_address); ?></p>
                        </td>
                        <td>
                            <p class="my-0"><?php echo e($item->receiver_name); ?></p>
                            <p class="my-0"><?php echo e($item->receiver_email); ?></p>
                            <p class="my-0"><?php echo e($item->receiver_address); ?></p>
                        </td>
                        <td><?php echo e(shipment_status($item->status)); ?></td>
                        <td><?php echo e(show_date($item->date)); ?></td>
                        <td>
                            <div>
                                <a href="<?php echo e(route('admin.shipment.edit', $item->code)); ?>" class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></a>
                                <a href="<?php echo e(route('admin.shipment.delete', $item->code)); ?>" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></a>
                            </div>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/zpvgxjex/public_html/directexpress.couriers-co.com/resources/views/admin/shipment/index.blade.php ENDPATH**/ ?>