HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System: Linux li317-225.members.linode.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/kosmicfarms/storage/framework/views/c4220434a88025c3bb4c5ac7172d2b74d6239de0.php
<?php $__env->startSection('content'); ?>

<div class="d-sm-flex align-items-center justify-content-between mg-b-20 mg-lg-b-25 mg-xl-b-30">
            <div>
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb breadcrumb-style1 mg-b-10">
                  <li class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>">Home</a></li>
					<li class="breadcrumb-item"><a href="<?php echo e(url('/products')); ?>">Products</a></li>
					<li class="breadcrumb-item"><a href="#">Catetgories</a></li>	
                </ol>
              </nav>
              <h4 class="mg-b-0 tx-spacing--1">Categories</h4>
            </div>
            <div class="d-none d-md-block">
              <a href="<?php echo e(url('/products/categories/create')); ?>" class="btn btn-sm pd-x-15 btn-white btn-uppercase"><i data-feather="mail" class="wd-10 mg-r-5"></i> Add Catetgory</a>
            </div>
          </div>

 <!-- ============================================================== -->
		<!-- 						Content Start	 						-->
		<!-- ============================================================== -->
		
<h4 id="section2" class="mg-b-10">List of Categories</h4>
<p class="mg-b-30">Categories informations.</p>


 

            <div class="row">
               
                 <div class="col-md-12">
                     
                            <table id="categories" class="table table-striped dt-responsive nowrap">
                                            <thead>
                                                <tr>
                                                    <th>Name</th>
                                                    <th>Description</th>
                                                    <th>Action</th>
                                                </tr>
                                            </thead>

                                            <tbody>
                                            <?php if(isset($categories)): ?>
                                                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>_
                                                
                                                    <tr>
                                                        <td><?php echo e($category->name); ?></td>
                                                        <td><?php echo e($category->description); ?></td>
                                                        <td>
                                                        	<form method="post" action="<?php echo e(url('/products/categories/'.$category->id.'/delete')); ?>" class="form-horizontal">
                                                        		<?php echo csrf_field(); ?>

                                                        		<a href="<?php echo e(url('/products/categories/'.$category->id.'/edit')); ?>" class="btn btn-warning btn-rounded">Edit</a>
                                                        		<input type="hidden" name="delete" value="true"> 
                                                        		<button type="submit" class="btn btn-danger btn-rounded" id="danger-alert">Delete</button>
                                                        	</form>
                                                        
                                                        </td>
                                                    </tr>
                                                 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                             <?php endif; ?>
                                           </tbody>
                              </table>
                      
                </div>
            </div>
            
<?php $__env->stopSection(); ?>
<?php $__env->startSection('jscript'); ?>
	<script src="<?php echo e(asset('admin/lib/datatables.net/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('admin/lib/datatables.net-dt/js/dataTables.dataTables.min.js')); ?>"></script>
   <script>
    $(document).ready(function () {
    	$('#categories').DataTable({
    		  language: {
    		    searchPlaceholder: 'Search...',
    		    sSearch: '',
    		    lengthMenu: '_MENU_ items/page',
    		  }
    		});
    });
	
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/kosmicfarms/resources/views/products/categories/index.blade.php ENDPATH**/ ?>