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

          <div class="row">
         <!-- DataTales Example -->
              <div class="card shadow" style="width:100%">
                <div class="card-header py-3">
                  <h6 class="m-0 font-weight-bold text-primary">Today orders</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; ?>
                </div>
                <div class="card-body">
                  <div class="table-responsive">
                    <table class="table table-bordered" id="example2" width="100%" cellspacing="0">
                      <thead>
                        <tr>
                        <th>S.No</th>
                        <th>Vendor Name</th>
                        <th>Vendor Ph. No.</th>
                        <th>Vendor Location</th>
                        <th>Vendor E-mail</th>
                        <!--<th>Delivery Date</th>-->
                        <!--<th>Incentive</th>-->
                        <!--<th>Order Type</th>-->
                        <th>Order</th>
                        <!--<th>Action</th>-->
                        </tr>
                      </thead>
                      
                      <tbody>
                      <?php if(count($vendor)>0): ?>
                                      <?php $i=1; ?>
                                      <?php $__currentLoopData = $vendor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vendors): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    
                                    <tr>
                                        <td><?php echo e($i); ?></td>
                                        <td><?php echo e($vendors->vendor_name); ?></td>
                                        <td><?php echo e($vendors->vendor_phone); ?></td>
                                        <td><?php echo e($vendors->vendor_loc); ?></td>
                                        <td><?php echo e($vendors->vendor_email); ?></td>

                                    <td>
                                              <a href="<?php echo e(route('today_order1',[$vendors->vendor_id])); ?>" class="btn btn-primary">Today</a>
                                              <a href="<?php echo e(route('next_order1',[$vendors->vendor_id])); ?>" class="btn btn-info">Next Order</a>
                                              <a href="<?php echo e(route('completed_order1',[$vendors->vendor_id])); ?>" class="btn btn-success">Completed</a>
                                    </td>
                                    <!-- <td>-->
                                                  <!--<a href="#" class="btn btn-primary">Edit</a>-->
                                                  <!--<a href="#" class="btn btn-danger">Delete</a>-->
                                                  
                                    <!--</td>-->
                                        
                                        
                                
                    
                                    <?php $i++; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                  <?php else: ?>
                                    <tr>
                                      <td>No data found</td>
                                    </tr>
                                  <?php endif; ?>
                                   
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>

          </div>

        </div>
        <!-- /.container-fluid -->

      </div>
      <!-- End of Main Content -->



    


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