<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

<?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">
                <div class="col-xs-6" style="margin: -6mm 0mm 0mm -4mm;">
                    <h2 style="text-align:center">PROOF OF DELIVERY</h2>
                   
                    <img src="<?php echo e($cuse->getpage2->imgpath); ?>" style="width: 160px;"  alt="logo">
                    &nbsp;&nbsp;&nbsp;
                    <img src="https://i.ibb.co/1nt3Vyb/logo250.png" style="width: 110px;"  alt="logo">
                    
                    <h5>DailyMart Number : <?php echo e($cuse->getpage2->number); ?></h5>
                    
                    
                    <h5>Issued Date : <?php echo e($ldate); ?> </h5>
                    <hr style='margin-top:0em;margin-bottom:0em;'>
                    <h5>To : <?php echo e($cuse->name); ?></h5>
                    <h5>Address : <?php echo e($cuse->address); ?></h5>
                    <h5>Phone No : <?php echo e($cuse->phone); ?></h5>
                   
                </div>
                <div class="col-xs-4">
                  
                    <br><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo e($cuse->tracking); ?>

                    <br><br>
                <?php $__currentLoopData = $cuse->cus_or; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                    <?php $deli+=$data->delivery;
                    $unit = ($data->orders->sell_price)*($data->qty);
                    $tot += $unit;
                    ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                
                <?php  $split = explode(",", $cuse->address); ?>
                     
                
                  <h4>COD AMOUNT :  <?php echo e($tot+$deli); ?></h4>
                  <h6>Order No : <?php echo e($cuse->id); ?></h6>
                  <h6>Weight : </h6>
                  <h6>District : <?php echo e($split[count($split)-1]); ?></h6>
                  <h6>Nearest City : <?php echo e($split[count($split)-2]); ?></h6>
                  <hr style='margin-top:0em;margin-bottom:0em'>
                  <h6>Name : </h6>
                  <h6>NIC Number : </h6>
                  <h6>Date : </h6>
                  <h6>Signature : </h6>
                </div>
                <div class="col-xs-2 col-md-2"></div>
               
            </div>
            <div class="row" style="margin: -0mm 0mm 0mm -4mm;">
                <div class="col-xs-10 col-md-10">
                    <hr style='margin-top:0em;margin-bottom:0em'>
                </div>
                <div class="col-xs-2 col-md-2">

                </div>  
            </div>
            <div class="breakNow"></div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


<style>
div.breakNow { page-break-inside:avoid; page-break-after:always; }
.center {
                text-align: center;
            }
            .center img {
                display: block;
            }

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
	border:0;
	padding:0;
	margin-left:-0.00001;
}

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