<div class="table-responsive">
    <table id="example" class="table table-bordered align-middle" style="width:100%">
        <thead class="table-light">
            <tr>
                <th class="thbutton">Sl No</th>
                <th class="thbutton">Booking No</th>
                <th>Consignor</th>
                <th>Consignee</th>
                <th>From Via to</th>
                <th>Payment</th>
                <th>Amount</th>
                <th>DUE.</th>
                <th>REC.</th>
                <th>DIS.</th>
                <th>Location</th>
                <th>Invoice No</th>
                <th>Status</th>
                <th>Print</th>
                <th>Collect</th>
                <th>Edit</th>
            </tr>
        </thead>
        <tbody>
            <?php $i=1;?>
            <?php if(count($data)>0): ?>
                <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td class="text-center"><?php echo e($data->firstItem() + $key); ?></td>
                        <td><a class="" href="<?php echo e(route('booking-register.show',$list->id)); ?>"><?php echo e($list->main_booking_no); ?></a></td>
                        <td><?php echo e($list->consignor); ?></td>
                        <td><?php echo e($list->consignee); ?></td>
                        <td><?php echo e($list->from_location); ?>  <br/><?php echo e($list->transportation_mode); ?> <br/> <?php echo e($list->to_location); ?> </td>
                        <td><?php echo e($list->payment_term); ?></td>
                        <td><?php echo e(($list->total_amount ?? 0) + ($list->charge_amount ?? 0) + ($list->consignor_invoice_value ?? 0)); ?></td>
                        <td><?php echo e($list->due_amount ?? '0'); ?></td>
                        <td><?php echo e($list->rec ?? '0'); ?></td>
                        <td><?php echo e($list->discount ?? '0'); ?> </td>
                        <td><?php echo e($list->from_location); ?></td>
                        <td><?php echo e($list->if_decrease); ?></td>
                        <td><?php echo e($list->booking_status); ?></td>
                         <td style="text-align:center" class="pt-3">
                    <a class="btn btn-primary text-center" href="<?php echo e(route('printbooking',$list->id)); ?>"><i class="bi bi-printer text-white"></i></a>
                </td>
                        <td  class="text-center pt-3"><button  class="btn btn-success  text-center" style="height: 30px ; width: 50px;" >Collect</button></td>
               <td class="pt-3  text-center" >
                    <a class="btn btn-warning text-center" href="<?php echo e(route('booking-register.edit',$list->id)); ?>"><i class="bi bi-pencil-square text-white"></i></a>
                 </td>
                    </tr>
                    <?php $i++; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
                <tr>
                    <td colspan="5">No Data Found</td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>
</div>
<nav class="float-start mt-2">
    <ul class="pagination">
        <?php echo $data->onEachSide(0)->render('accounting-types.pagination'); ?>

    </ul>
</nav>
</div>

<?php /**PATH C:\laragon\www\meta-mint-logistics\resources\views/booking/table.blade.php ENDPATH**/ ?>