|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/easysfm.edukrypt.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<?php
$i = 0;
?>
<!-- begin::main content -->
<main class="main-content">
<div class="container">
<!-- begin::page header -->
<div class="page-header">
<h3>Main Category</h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo e(asset('admin/dashboard')); ?>">Dashboard</a></li>
<li class="breadcrumb-item"><a href="<?php echo e(asset('admin/category-list/')); ?>">Main Category</a></li>
<?php if(isset($nav_links)): ?>
<?php $__currentLoopData = $nav_links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($i == count($nav_links) - 1): ?>
<li class="breadcrumb-item active" aria-current="page"><?php echo e($value); ?></li>
<?php else: ?>
<li class="breadcrumb-item" aria-current="page"><a
href="<?php echo e(URL::to('admin/main-category-list/' . $key)); ?>"><?php echo e($value); ?></a>
</li>
<?php endif; ?>
<?php
++$i;
?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</ol>
</nav>
</div>
<!-- end::page header -->
<?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
<div class="card">
<div class="card-header">
<form
action="<?php echo e(URL::to('admin/main-category-list/' . Request::segment(3) . '/' . Request::segment(4))); ?>"
method="get">
<div class="row">
<div class="col-md-8">
<div class="form-group">
<input type="text" class="form-control" name="search" placeholder="Search here....."
value="<?php echo e(request()->input('search')); ?>">
<span class="text-danger"><?php $__errorArgs = ['search'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></span>
</div>
</div>
<div class="col-md-4">
<button type="submit" class="btn btn-primary pull-right text-white"><i
class="fa fa-search"></i>
Search</button>
<a href="<?php echo e(asset('admin/main-category-list/' . Request::segment(3))); ?>"
class="btn btn-primary pull-right text-white m-r-10"><i
class="fa fa-refresh"></i> Reset</a>
</div>
</div>
</form>
</div>
<div class="card-body">
<?php
$permission = App\Helpers\PermissionActivity::getPermissionByAdminId(session('loggedIn')['id'], 6);
?>
<?php if($permission == 'delete'): ?>
<a href="<?php echo e(asset('admin/add-main-category/' . Request::segment(3) . '/' . Request::segment(4))); ?>"
class="form-group btn btn-primary pull-right text-white"><i class="fa fa-plus"></i> Add
Category</a>
<?php endif; ?>
<?php if(isset($categories)): ?>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Type</th>
<th>Image</th>
<th>Sort Order</th>
<th>Category</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(!empty($categories)): ?>
<?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($category->id); ?></td>
<td>
<?php echo e($category->name); ?>
</td>
<td><?php echo e($category->type); ?></td>
<td>
<img src="<?php echo e(asset('public/uploads/category/' . $category->image)); ?>"
style="width:50px;height:50px;">
</td>
<td><?php echo e($category->sort_order); ?></td>
<td><a href="<?php echo e(asset('admin/main-category-list/' . $category->id)); ?>"><i
class="fa fa-plus"></i></a></td>
<td>
<?php if($permission == 'read'): ?>
<a href="<?php echo e(asset('admin/view-category/' . $category->id)); ?>"><i
class="fa fa-eye text-primary"></i></a>
<?php endif; ?>
<?php if($permission == 'write'): ?>
<a href="<?php echo e(asset('admin/view-category/' . $category->id)); ?>"><i
class="fa fa-eye text-primary"></i></a>
<a href="<?php echo e(asset('admin/edit-category/' . $category->id)); ?>"><i
class="fa fa-edit text-success"></i></a>
<?php endif; ?>
<?php if($permission == 'delete'): ?>
<a href="<?php echo e(asset('admin/view-main-category/' . $category->id)); ?>"><i
class="fa fa-eye text-primary"></i></a>
<a href="<?php echo e(asset('admin/edit-main-category/' . $category->id)); ?>"><i
class="fa fa-edit text-success"></i></a>
<a href="<?php echo e(asset('admin/delete-main-category/' . $category->id)); ?>"
class="delete-confirm"><i class="fa fa-trash text-danger"></i></a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<h1>No Record Found!!</h1>
<?php endif; ?>
</tbody>
</table>
<div class="pagination-block">
<?php if(request()->input('search')): ?>
<?php echo e($categories->appends(['search' => request()->input('search')])->links('admin.includes.paginationlinks')); ?>
<?php else: ?>
<?php echo e($categories->links('admin.includes.paginationlinks')); ?>
<?php endif; ?>
<label>Total Record Found- <?php echo count($categories); ?></label>
</div>
<?php endif; ?>
</div>
</div>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<!-- begin::dataTable -->
<script src="<?php echo e(asset('public/admin/vendors/dataTable/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.bootstrap4.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/js/examples/datatable.js')); ?>"></script>
<!-- end::dataTable -->
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/easysfm.edukrypt.in/resources/views/admin/category/category-list.blade.php ENDPATH**/ ?>