

<?php $__env->startSection('content'); ?>


<!-- Begin Page Content -->
<div class="container-fluid">
 

  <!-- DataTales Example -->
  <div class="card shadow mb-4">
    <div class="card-header py-3">
      <h6 class="m-0 font-weight-bold text-primary">Order | Complaints</h6>
      <?php if(count($errors) > 0): ?>
                  <?php if($errors->any()): ?>
                    <div class="alert alert-primary" role="alert">
                      <?php echo e($errors->first()); ?>

                      <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">×</span>
                      </button>
                    </div>
                  <?php endif; ?>
              <?php endif; ?>
        <a class="btn btn-success m-auto" style="float: right;" href="<?php echo e(route('add-cityadmin')); ?>">Add</a>
    </div>
    <div class="card-body">
      <div class="table-responsive">
        <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
          <thead>
            <tr>
          <th>S.No</th>
            <th>Customer Name</th>
			<th>Customer Number</th>
            <th>Order Id</th>
            <th>Vendor Name</th>
            <th>Vendor Number</th>
            <th>Resaon</th>
            <th>Cancel Date | Time</th>
            </tr>
          </thead>
         
          <tbody>
          <?php if(count($com_orders)>0): ?>
                          <?php $i=1; ?>
                         <?php $__currentLoopData = $com_orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $admincomplains): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                        <td><?php echo e($i); ?></td>
                        <td><?php echo e($admincomplains->user_name); ?></td>
                        <td><?php echo e($admincomplains->user_phone); ?></td>
                        <td><?php echo e($admincomplains->cart_id); ?></td>
                        <td><?php echo e($admincomplains->vendor_name); ?></td>
                        <td><?php echo e($admincomplains->vendor_phone); ?></td>
                        <td><?php echo e($admincomplains->cancelling_reason); ?></td>
                        <td><?php echo e($admincomplains->canceled_at); ?></td>
                        </tr>
                        <?php $i++; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                      <?php else: ?>
                        <tr>
                          <td>No data found</td>
                        </tr>
                      <?php endif; ?>
                       
          </tbody>
        </table>
        <?php echo $com_orders->links("pagination::bootstrap-4"); ?>

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

</div>
<!-- /.container-fluid -->
</div>
</div>
 
<?php $__env->stopSection(); ?>



<?php echo $__env->make('admin.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>