<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css">
    <style>
        .daily__expense{
            padding: 60px 0;
        }
        .title{
            text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 700;
    color: #333;
        }
    </style>
</head>
<body onload="window.print()">
    <div class="container">
        <div class="daily__expense">
            <h3 class="title">All Transaction</h3>
            <table class="table table-bordered ">
                <thead class="table-secondary">
                  <tr>
                       <th scope="col">SR.No</th>
                    <th scope="col">DATE</th>
      
                    <th scope="col">TRANSACTION NUMBER</th>
                    <th scope="col">COMPANY NAME </th>
                    <th scope="col">QTY</th>
                 
                    <th scope="col">UNIT</th>
                    <th scope="col">AMOUNT</th>
                    <th scope="col">TAX</th>
                    <th scope="col">TOTAL AMOUNT</th>
                       <th scope="col">RETURN QTY</th>
                  </tr>
                </thead>
                <tbody>
                    <tr>
                        <th class="text-center" colspan="8"><?php echo e(\Carbon\Carbon::parse($datefrom)->format('d/m/Y')); ?> Between <?php echo e(\Carbon\Carbon::parse($dateto)->format('d/m/Y')); ?></th>
                    </tr>
                   
                    <?php
                    $total_qty=0;
                    $total_amount=0;
                    $tax=0;
                    $final_amont=0;
                    $rtrn_qty=0;
                    ?>
                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                    $total_qty +=$dat->quantity;
                    $total_amount +=$dat->gallon_price;
                    $tax=$dat->tax;
                    $final_amont +=$dat->total;
                    $rtrn_qty +=$dat->return_qty;
                    ?>
                  <tr>
                    <td><?php echo e(@$i +=1); ?></td>
                     <td><?php echo e(\Carbon\Carbon::parse($dat->transaction_date)->format('d/m/Y')); ?></td>
                   <td><?php echo e($dat->ledger_value); ?></td>
                    <td><?php echo e($dat->company_name); ?></td>
                     <td><?php echo e($dat->quantity); ?></td>
                        
                           <td><?php echo e(number_format($dat->unit_price,2)); ?></td>
                             <td><?php echo e(number_format($dat->gallon_price,2)); ?></td>
                               <td><?php echo e(number_format($dat->tax,2)); ?></td>
                                 <td><?php echo e(number_format($dat->total,2)); ?></td>
                                  <td><?php echo e($dat->return_qty); ?></td>
                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </tr>
                
                </tbody>
                 <tfoot>
                  <td colspan="4">TOTAL</td>
                  
                 
                  <td><?php echo e(number_format($total_qty,3)); ?></td>
                  <td></td>
                  <td><?php echo e(number_format($total_amount,3)); ?></td>
                    <td><?php echo e(number_format($tax,3)); ?></td>
                  <td><?php echo e(number_format($final_amont,3)); ?></td>
                    <td><?php echo e(number_format($rtrn_qty,3)); ?></td>
                  
                </tfoot> -->
              </table>

        </div>
    </div>


<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html><?php /**PATH /home/mc25vp7ttt60/public_html/srkdiesel-trading.in/resources/views/overalla_transaction.blade.php ENDPATH**/ ?>