<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap" rel="stylesheet">
<?php $__currentLoopData = $cus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cuse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $deli=0; $tot=0; $unit=0; ?>

        <div class="row" style="font-size:25px;font-family: 'Open Sans', sans-serif;">
            <div class="col-xs-3">
                Invoice Number
            </div>
            <div class="col-xs-2" style="margin: 5mm 0mm 0mm 0mm; text-align: center;align-self: center;">
                     <?php echo DNS1D::getBarcodeHTML($cuse->id, 'C128',2,33); ?> 
                    <p style="margin: -2mm 0mm 0mm 0mm;font-size:12px"><?php echo e($cuse->id); ?></p>
            </div>
            <div class="col-xs-7" style="text-align: center;">
                    COD AMOUNT :  <?php if($cuse->paymentmethod=="paid"): ?>0.00 <b> Already Paid</b><?php else: ?><?php echo e($cuse->cod); ?><?php endif; ?>
                    <?php if($cuse->ordertype=="Exchange"): ?>
                    <p style="margin: -3mm 0mm 0mm 0mm;font-size:14px">Exchange Order</p>
                    <?php endif; ?>
            </div>
            </div>


            <div class="row" style="font-size:14px;font-family: 'Open Sans', sans-serif;">
                <div class="col-xs-2">
                    <h5><b> Issued Date :</b> <?php echo e($ldate); ?> </h5>
                 <h5><b>Delivery Partner :</b> <b> <?php $__currentLoopData = $user; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($usdata->deliveryname); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </b></h5>
                   <h5><b>Tracking Number :</b></h5>
                    <div style="text-align: center;align-self: center;margin: -2mm 0mm 0mm 0mm;">
                        <?php echo DNS1D::getBarcodeHTML($cuse->tracking, 'C128',1.5,33); ?>

                    <p style="margin: -2mm 0mm 0mm 0mm;font-size:12px"><?php echo e($cuse->tracking); ?></p>
                    </div>
                   
                </div>
                
                <div class="col-xs-3">
                    <div style="text-align: center;"><img src="uploads/<?php echo e($cuse->getpage2->image); ?>" alt="" style="height: 50px;"></div>
                    <!-- <img src="<?php echo e(public_path("uploads/".$cuse->getpage2->image)); ?>" alt="" style="height: 50px;"> -->
                    <h5><b>Online Store :</b><?php echo e($cuse->getpage2->pagename); ?></h5>
                     <h5><b>Address :</b>   <?php echo e($cuse->getpage2->address); ?>  </h5>
                   <h5> <b>Tel :</b>   <?php echo e($cuse->getpage2->number); ?> </h5>
                </div>
                <div class="col-xs-6" style="border-left: 1px solid black;">
                
                
                  <h5><b>To : </b> <?php echo e($cuse->name); ?></h5>
                  <h5><b>Address : </b> <?php echo e($cuse->address); ?> </h5>
                  <h5><b>Phone No : </b> <?php echo e($cuse->phone); ?> / <?php echo e($cuse->secondaryphone); ?></h5>
                  <h5><b>Nearest City :</b>  <?php echo e($cuse->getcity->city); ?> </h5>
                  <h5><b>District : </b><?php echo e($cuse->district); ?></h5>
                </div>               
            </div>
            <div class="row">
                <div class="col-xs-12col-md-12">
 <table class="table" id="book-table" name="book-table" style="font-size: 10px;">
            <thead>
                  <tr>
                    <th style="width:60px;" class="text-center">QTY</th>
                    <th class="text-left">DESCRIPTION</th>
                    <th style="width:140px" class="text-right">UNIT PRICE</th>
                    <th style="width:90px" class="text-right">TOTAL</th>
   
                  </tr>
            </thead>
            <tbody>
                    
            <?php $__currentLoopData = $cuse->cus_or; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                    <tr>
                        <td class="text-center"><?php echo e($data->qty); ?></td>
                        <td><?php echo e($data->orders->name); ?>

                        <?php if($data->attribute=="null" or $data->attribute==""): ?>
                        <?php else: ?>
                            <?php $__currentLoopData = json_decode($data->attribute); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                (<?php echo e($key); ?>:<?php echo e($val); ?>)
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                        </td>
                        <td class="text-right"><?php echo e($data->pro_amount); ?></td>
                        <td class="text-right"> <?php echo e($data->qty * $data->pro_amount); ?>

                        </td>
                        <input type="hidden" value="">
                    </tr>            
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                            <td colspan="2" rowspan="4">
                             
                              <td class="text-right"><strong>Delivery Charge</strong></td>
                              <td class="text-right"><?php echo e($cuse->deliverycharge); ?></td>
                          </tr>

                          <tr>
                            <td class="text-right no-border">
                              <strong>Total</strong>
                            </td>
                            <td class="text-right"><strong><?php echo e($cuse->cod); ?></strong></td>
                          </tr>
            </tbody>
        </table> 
                </div> 
            </div>
            <hr class="new2" style="margin: -40px;">
            <div class="breakNow"></div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



<style>
    hr.new2 {
  border-top: 1px dashed black;
}

h5{
    font-size:14px;
    font-family: 'Open Sans', sans-serif;
}
b{
    font-size:14px;
    font-family: 'Open Sans', sans-serif;
}

div.breakNow { page-break-inside:avoid; page-break-after:always; }
.center {
                text-align: center;
            }



/* @page    {
        margin: 1cm;
    } */

    @page    {
        margin: -0.1cm 1cm 1cm 1cm;
    }
</style>