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

<link href="assets/css/plugins/dataTables/datatables.min.css" rel="stylesheet">

 <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2><?php echo app('translator')->getFromJson('common.categories'); ?> </h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="<?php echo e(url('')); ?>"><?php echo app('translator')->getFromJson('common.home'); ?></a>
                        </li>
                     
                        <li class="active">
                            <strong><?php echo app('translator')->getFromJson('common.categories'); ?></strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
			
			
			<div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><?php echo app('translator')->getFromJson('common.categories'); ?>  </h5>
                        <div class="ibox-tools">
						<a href="<?php echo e(url('categories/create')); ?>" class="btn btn-primary btn-xs"><?php echo app('translator')->getFromJson('common.add_new'); ?></a>
						
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
							
                          
                           
                        </div>
                    </div>
                    <div class="ibox-content">

                        <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover" >
					
					 <thead>
                        <tr>
                             <th>#</th>
                            <th>Image</th>
                            <th><?php echo app('translator')->getFromJson('common.name'); ?></th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr class="gradeX">
                             <td><?php echo e($categories->firstItem() + $key); ?></td>
                             <td><img width="70" id="image_source"  src="<?php echo url("uploads/category/thumb/" . $category->id . ".jpg?rand=".rand(0, 100)); ?>"></td>
                            <td><?php echo e($category->name); ?></td>
                           
                            <td>
                                <form id="delete-customer" action="<?php echo e(url('categories/' . $category->id)); ?>" method="POST" class="form-inline">
                                    <input type="hidden" name="_method" value="delete">
                                    <?php echo e(csrf_field()); ?>

                                    <input type="submit" value="Delete" class="btn btn-danger btn-xs pull-right btn-delete">
                                </form>
                                <a href="<?php echo e(url('categories/' . $category->id . '/edit')); ?>" class="btn btn-primary btn-xs pull-right">Edit</a>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                       <tr> 
						  <td colspan="5"><?php echo app('translator')->getFromJson('common.no_record_found'); ?> </td></tr>
                    <?php endif; ?>
						<tr> 
						  <td colspan="5">
						<?php echo $categories->render(); ?>

						</td>
								</tr>
                    </tbody>
            
                    
                    </table>
                        </div>

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

<?php $__env->stopSection(); ?>

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