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



<div class="row">
    <div class="col-xs-6 col-md-6">Rider Name -  <?php $__currentLoopData = $user; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php echo e($usdata->name); ?>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></div>
    <div class="col-xs-6 col-md-6">Date - <?php echo e($ldate); ?></div> 
</div>

<table class="table table-sm" style="font-size:11px">
  <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">Name</th>
      <th scope="col">Address</th>
      <th scope="col">Phone</th>
      <th scope="col">Item</th>
      <th scope="col">COD</th>
      <th scope="col">Note</th>
    </tr>
  </thead>
  <tbody>
<?php $__currentLoopData = $cus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cuse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <tr>
      <th scope="row"><?php echo e($cuse->id); ?></th>
      <td><?php echo e($cuse->name); ?></td>
      <td><?php echo e($cuse->address); ?></td>
      <td><?php echo e($cuse->phone); ?> / <?php echo e($cuse->secondaryphone); ?></td>
      <td>
      <?php $__currentLoopData = $cuse->cus_or; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
      <?php echo e($data->qty); ?>*<?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; ?>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </td>
      <td><?php if($cuse->paymentmethod=="paid"): ?>0.00 <b> Already Paid</b><?php else: ?><?php echo e($cuse->cod); ?><?php endif; ?></td>
      <td><?php echo e($cuse->note); ?></td>
    </tr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  </tbody>
</table>







<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.5cm;
    }

</style>


<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>