<!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;*/
        /*}*/
        h6.ml-5 {
    margin-left: 50px;
}
h5.card-title {
    font-weight: bold;
    font-size: 18px;
}
td {
 font-weight: bold;
    border: 1px solid #000 !important;
}
th {
   font-weight: bold;
    border: 1px solid #000 !important;
}
    </style>
</head>
<body onload="window.print()" style="zoom:80%">
    <div class="container">
        <div class="daily__expense">
            <div class="logo">
                <img src="<?php echo e(asset('style/assets/img/logo2.jpeg')); ?>" style="width: 100%; margin-bottom:30px;" alt="">
            </div>
            <table class="table table-bordered table-responsive">
                <thead>
                  <tr>
               
                    <?php if($company_data->litr_status == 1): ?>
                        <th class="text-center" colspan="6">TRN NO: <?php echo e($company_data->trn_no); ?></th>
                    <th class="text-center" colspan="5">DATE : <?php echo e(\Carbon\Carbon::parse($datefrom)->format('d/m/Y')); ?> - <?php echo e(\Carbon\Carbon::parse($dateto)->format('d/m/Y')); ?></th>
                    <?php else: ?>
                         <th class="text-center" colspan="6">TRN NO: <?php echo e($company_data->trn_no); ?></th>
                    <th class="text-center" colspan="3">DATE : <?php echo e(\Carbon\Carbon::parse($datefrom)->format('d/m/Y')); ?> - <?php echo e(\Carbon\Carbon::parse($dateto)->format('d/m/Y')); ?></th>
                             <?php endif; ?>
                  </tr>
                </thead>
                <tbody>
                    <tr>
                        <tr>
                           
                             <?php if($company_data->litr_status == 1): ?>
                           <th colspan="6"><?php echo e($datefrom); ?> BETWEEN <?php echo e($dateto); ?> <?php echo e($company_data->company_name); ?></th>
                            <th colspan="5">INVOICE : <?php echo e(isset($invoice_no->invoice_no) ? $invoice_no->invoice_no : '-'); ?></th>
                            <?php else: ?>
                             <th colspan="6"><?php echo e($datefrom); ?> BETWEEN <?php echo e($dateto); ?> <?php echo e($company_data->company_name); ?></th>
                            <th colspan="3">INVOICE : <?php echo e(isset($invoice_no->invoice_no) ? $invoice_no->invoice_no : '-'); ?></th>
                             <?php endif; ?>
                          </tr>
                    </tr>
                    <tr>
                        <th>DATE</th>
                        <th>DELIVERY NOTE</th>
                        <th>COMPANY NAME</th>
                        <th>KILOMETER</th>
                        <th>QTY</th>
                        <th>UNIT</th>
                        <?php if($company_data->litr_status == 1): ?>
                        <th>LITTER </th>
                        <th>LITTER PRICE</th>
                        <?php endif; ?>
                        <th>AMOUNT</th>
                        <th>TAX</th>
                        <th>TOTAL AMOUNT</th>
                    </tr>
                    <?php
                    $qty=0;
                    $unit_price=0;
                    $amnt=0;
                    $tax=0;
                    $total=0;
                    $quantity_ltr=0;
                    $unit_ltr_price=0;
                    ?>
                    <?php $__currentLoopData = $transaction; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trans): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                    $qty +=$trans->quantity;
                    $unit_price =$trans->unit_price;
                    $amnt +=$trans->quantity*$trans->unit_price;
                    $tax+=($trans->quantity*$trans->unit_price)*$trans->tax/100;
                    $total +=($trans->quantity*$trans->unit_price)+($trans->quantity*$trans->unit_price)*$trans->tax/100;
                    if($company_data->litr_status == 1){
                    $quantity_ltr +=$trans->quantity_ltr;
                    $unit_ltr_price +=$trans->unit_ltr_price;
                    }
                    ?>
                  <tr>
                    <td><?php echo e(\Carbon\Carbon::parse($trans->transaction_date)->format('d/m/Y')); ?> <?php echo e(\Carbon\Carbon::parse($trans->new_time)->format('h:i:s')); ?></td>
                    <td><?php echo e($trans->ledger_value); ?></td>
                    <td><?php echo e($trans->vehicle_no); ?> - <?php echo e($trans->driver_name); ?></td>
                    <td><?php echo e($trans->kilometer); ?></td>
                    <td><?php echo e($trans->quantity); ?></td>
                    <td><?php echo e($trans->unit_price); ?></td>
                    <?php if($company_data->litr_status == 1): ?>
                    <td><?php echo e($trans->quantity_ltr); ?></td>
                    <td><?php echo e($trans->unit_ltr_price); ?></td>
                    <?php endif; ?>
                    <td><?php echo e($trans->quantity*$trans->unit_price); ?></td>
                    <td><?php echo e(($trans->quantity*$trans->unit_price)*$trans->tax/100); ?></td>
                    <td><?php echo e(($trans->quantity*$trans->unit_price)+($trans->quantity*$trans->unit_price)*$trans->tax/100); ?></td>
                  </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
                <tfoot>
                    <tr>
                        <th class="text-center" colspan="4">TOTAL SALE</th>
                        <th><?php echo e($qty); ?></th>
                        <th><?php echo e(round($amnt/$qty,3)); ?></th>
                        <?php if($company_data->litr_status == 1): ?>
                        <th><?php echo e($quantity_ltr); ?></th>
                        <th><?php echo e($unit_ltr_price); ?></th>
                        <?php endif; ?>
                        <th><?php echo e($amnt); ?></th>
                        <th><?php echo e($tax); ?></th>
                        <th><?php echo e($total); ?></th>
                    </tr>
                  </tfoot>
              </table>
              <div class="border" style="margin-top:100px">
                <div class="row">
                  <div class="d-flex justify-content-between">
                      <div class="card border-0" style="width: 600px;min-height: 320px;">
                          <div class="card-body">
                            <h5 class="card-title">SRK DIESEL TRADING L.L.C </h5>
                            <h5 class="card-title">DUBAI - UNITED ARAB EMIRATES</h5>
                            <H6>Email : srkdieseltrading@gmail.com</H6>
                            <H6 class="ml-5">jamshiparayil@gmail.com</H6>
                            <h6>Mobile : 0091-55 33 46 408</h6>
                            <h6>Indian : 009171 9847 108 913</h6>
                            <h5>SIGNATURE :-</h5>
                            <img src="<?php echo e(asset('style/assets/img/seal.png')); ?>" class="img-fluid mt-3" alt="">
                          </div>
                        </div>
                            <div class="card border-0" style="width: 24rem;min-height: 320px; float: right;">
                          <div class="card-body text-center">
                            <h5 class="card-title"><?php echo e($company_data->company_name); ?></h5>
                            <h5 class="card-title">DUBAI - UNITED ARAB EMIRATES</h5>
                            
                          </div>
                        </div>
                    </div>
                   
                </div>
            </div>
        </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/z7a6qwiy0umc/public_html/srkdiesel-trading.in/resources/views/statement.blade.php ENDPATH**/ ?>