/
home
/
sjslayjy
/
public_html
/
jaggery
/
storage
/
framework
/
views
/
Upload File
HOME
<style> .btn{ height:27px !important; } .material-icons{ margin-top:0px !important; margin-bottom:0px !important; } </style> <?php $__env->startSection('content'); ?> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <?php if(session()->has('success')): ?> <div class="alert alert-success"> <?php if(is_array(session()->get('success'))): ?> <ul> <?php $__currentLoopData = session()->get('success'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($message); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php else: ?> <?php echo e(session()->get('success')); ?> <?php endif; ?> </div> <?php endif; ?> <?php if(count($errors) > 0): ?> <?php if($errors->any()): ?> <div class="alert alert-danger" 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="col-lg-12"> <a href="<?php echo e(route('AddCategory')); ?>" class="btn btn-primary ml-auto" style="width:16%;float:right;padding: 3px 0px 3px 0px;"><i class="material-icons">add</i>Add Category</a> </div> <div class="col-lg-12"> <div class="card"> <div class="card-header card-header-primary"> <h4 class="card-title ">Category List</h4> </div> <table class="table"> <thead> <tr> <th class="text-center">#</th> <th>Cat Name</th> <th>Parent Category</th> <th>Cat image</th> <th class="text-right">Actions</th> </tr> </thead> <tbody> <?php if(count($category)>0): ?> <?php $i=1; ?> <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="text-center"><?php echo e($i); ?></td> <td><?php echo e($cat->title); ?></td> <?php if($cat->parent == 0): ?> <td>-------</td> <?php endif; ?> <?php if($cat->parent != 0): ?> <td><?php echo e($cat->tttt); ?></td> <?php endif; ?> <td><img src="<?php echo e(url($cat->image)); ?>" alt="category image" style="width:50px; height:50px; border-radius:50%;"/></td> <td class="td-actions text-right"> <a href="<?php echo e(route('EditCategory',$cat->cat_id)); ?>" rel="tooltip" class="btn btn-success"> <i class="material-icons">edit</i> </a> <!-- <a href="<?php echo e(route('DeleteCategory',$cat->cat_id)); ?>" rel="tooltip" class="btn btn-danger"> <i class="material-icons">close</i> </a> --> </td> </tr> <?php $i++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr> <td>No data found</td> </tr> <?php endif; ?> </tbody> </table> <div class="pagination justify-content-end" align="right" style="width:100%;float:right !important"><?php echo e($category->links()); ?></div> </div> </div> </div> </div> <div> </div> <?php $__env->stopSection(); ?> </div> <?php echo $__env->make('admin.layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sjslayjy/public_html/jaggery/resources/views/admin/category/list.blade.php ENDPATH**/ ?>