<?php echo $__env->make('dashboard.include.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

  
  <div class="content-wrapper">
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Bulk Delivery Mark</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="/home">Home</a></li>
              <li class="breadcrumb-item active">Bulk Delivery Mark</li>
            </ol>
          </div>
        </div>
      </div>
    </div>
   
    <section class="content">
      <div class="container-fluid">
      <div class="card">
        <div class="card-body">
        <form class="form-horizontal" method="post" enctype="multipart/form-data" action="<?php echo e(URL::to('bulkexceldelivery')); ?>">
        <?php echo e(csrf_field()); ?>

        <div class="row">
            <div class="col-md-3">
                <div class="form-group">
                    <label for="">Select Excel sheet</label> <br>
                    <input type="file" name="import_file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
                </div>
            </div>
            <div class="col-md-2" style="padding-top:32px;"><button type="submit" class="btn btn-primary btn-block">Upload</button></div>
            <div class="col-md-4"></div>
            <div class="col-md-3"><a href="/uploads/courier_summary.xlsx" class="btn btn-block btn-primary" download>Download Template</a></div>
        </div>

        </form>


        </div>
        </div>
     
        <div class="card">
        <div class="card-body">
          <div class="row">
            <div class="col-md-12">
                <table id="example2" data-page-length='50' class="table table-bordered" style="width:100%; font-size:13px;">
                    <thead>
                        <tr>
                            <th>Id</th>
                            <th>Tracking</th>
                            <th>Name</th>
                            <th>Phone</th>
                            <th>Product</th>
                            <th>COD</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php $__currentLoopData = $item; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($data->id); ?></td>
                            <td><?php echo e($data->tracking); ?></td>
                            <td><?php echo e($data->name); ?></td>
                            <td><?php echo e($data->phone); ?></td>
                            <td><?php $__currentLoopData = $data->cus_or; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo e($itemdata->orders->pro_name); ?>,
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
                            </td>
                            <td><?php echo e($data->cod); ?></td>
                            <td class="text-center">                            
                                <a data-id="<?php echo e($data->id); ?>" target="_blank" class="btn btn-primary btn-xs" href="viwedetails/<?php echo e($data->id); ?>">View</a>
                            </td>
                            
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
                    </tbody>
                    <tfoot>
                        <tr>
                            <th>Id</th>
                            <th>Tracking</th>
                            <th>Name</th>
                            <th>Phone</th>
                            <th>Product</th>
                            <th>COD</th>
                            <th>Action</th>
                        </tr>
                    </tfoot>
                </table>
            </div>
          </div>
          </div>
        </div>

      </div>
    </section>
  </div>


  <?php echo $__env->make('dashboard.include.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
 
<script>

$(document).ready(function() {
    $('#example2').DataTable();
} );



</script>
