

<?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"><?php echo e(__('messages.All_Categories')); ?></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('vendorAddCategory')); ?>"><?php echo e(__('messages.Add')); ?></a>
    </div>
    <div class="card-body">
      <div class="table-responsive">
        <table class="table table-bordered" id="example6" width="100%" cellspacing="0">
          <thead>
            <tr>
            <th><?php echo e(__('messages.s_n')); ?></th>
            <th><?php echo e(__('messages.Category_Name')); ?></th>
            <th><?php echo e(__('messages.Category_Image')); ?></th>
            <th><?php echo e(__('messages.Action')); ?></th>
            </tr>
          </thead>
          <tfoot>
            <tr>
            <th><?php echo e(__('messages.s_n')); ?></th>
            <th><?php echo e(__('messages.Category_Name')); ?></th>
            <th><?php echo e(__('messages.Category_Image')); ?></th>
            <th><?php echo e(__('messages.Action')); ?></th>
            </tr>
          </tfoot>
          <tbody>
          <?php if(count($vendorCategory)>0): ?>
          <?php $i=1; ?>
          <?php $__currentLoopData = $vendorCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $adminCategories): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo e($i); ?></td>
            <td><?php echo e($adminCategories->category_name); ?></td>
            
            <td align="center"><img src="<?php echo e(url($adminCategories->category_image)); ?>" style="width: 43px;"></td>
              <td>
              <a href="<?php echo e(route('vendorEditCategory', [$adminCategories->category_id])); ?>" class="btn btn-primary">Edit</a>
              <a href="<?php echo e(route('vendorDeleteCategory', [$adminCategories->category_id])); ?>" class="btn btn-danger">Delete</a>
        </td>
        </tr>
              <?php $i++; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              <?php else: ?>
                <tr>
                  <td><?php echo e(__('messages.No_data_found')); ?></td>
                </tr>
              <?php endif; ?>
                       
          </tbody>
        </table>
        <?php echo $vendorCategory->links("pagination::bootstrap-4"); ?>

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

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


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