File: /home/bdedition/public_html/core/storage/framework/views/f0454e4a57f9a49993c066b43ce0659b.php
<?php $__env->startSection('panel'); ?>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body p-0">
<div class="table-responsive--md table-responsive">
<table class="table table--light style--two">
<thead>
<tr>
<th><?php echo app('translator')->get('Name'); ?></th>
<th><?php echo app('translator')->get('Slug'); ?></th>
<th><?php echo app('translator')->get('Status'); ?></th>
<th><?php echo app('translator')->get('Action'); ?></th>
</tr>
</thead>
<tbody>
<?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<tr>
<td><span class="fw-bold"><?php echo e(__($category->name)); ?></span></td>
<td><span class="fw-bold"><?php echo e(__($category->slug)); ?></span></td>
<td><?php echo $category->statusBadge; ?></td>
<td>
<button class="btn btn-sm btn-outline--info" data-bs-toggle="dropdown"
type="button" aria-expanded="false"><i
class="las la-ellipsis-v"></i><?php echo app('translator')->get('More'); ?></button>
<div class="dropdown-menu">
<button class="dropdown-item threshold editBtn"
data-action="<?php echo e(route('admin.category.store', $category->id)); ?>"
data-category="<?php echo e($category); ?>" data-title="Edit Category">
<i class="la la-pencil"></i> <?php echo app('translator')->get('Edit'); ?>
</button>
<a href="<?php echo e(route('admin.category.seo', $category->id)); ?>"
class="dropdown-item threshold">
<i class="la la-cog"></i> <?php echo app('translator')->get('SEO Setting'); ?>
</a>
<?php if($category->status == Status::DISABLE): ?>
<button class="dropdown-item threshold confirmationBtn"
data-question="<?php echo app('translator')->get('Are you sure to enable this category?'); ?>"
data-action="<?php echo e(route('admin.category.status', $category->id)); ?>">
<i class="la la-eye"></i> <?php echo app('translator')->get('Enable'); ?>
</button>
<?php else: ?>
<button class="dropdown-item threshold confirmationBtn"
data-question="<?php echo app('translator')->get('Are you sure to disable this category?'); ?>"
data-action="<?php echo e(route('admin.category.status', $category->id)); ?>">
<i class="la la-eye-slash"></i> <?php echo app('translator')->get('Disable'); ?>
</button>
<?php endif; ?>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<tr>
<td class="text-muted text-center" colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<?php if($categories->hasPages()): ?>
<div class="card-footer py-4">
<?php echo e(paginateLinks($categories)); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div class="modal fade" id="categoryModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"></h4>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<i class="las la-times"></i>
</button>
</div>
<form class="form-horizontal disableSubmission" method="post">
<?php echo csrf_field(); ?>
<div class="modal-body">
<div class="form-group">
<label class="form-label"><?php echo app('translator')->get('Name'); ?></label>
<div class="col-sm-12">
<input type="text" class="form-control" name="name" value="<?php echo e(old('name')); ?>"
required>
</div>
</div>
<div class="form-group">
<label class="form-label"><?php echo app('translator')->get('Slug'); ?></label>
<div class="col-sm-12">
<input type="text" class="form-control" name="slug" value="<?php echo e(old('slug')); ?>"
required>
</div>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Submit'); ?></button>
</div>
</form>
</div>
</div>
</div>
<?php if (isset($component)) { $__componentOriginalbd5922df145d522b37bf664b524be380 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalbd5922df145d522b37bf664b524be380 = $attributes; } ?>
<?php $component = App\View\Components\ConfirmationModal::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('confirmation-modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\ConfirmationModal::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalbd5922df145d522b37bf664b524be380)): ?>
<?php $attributes = $__attributesOriginalbd5922df145d522b37bf664b524be380; ?>
<?php unset($__attributesOriginalbd5922df145d522b37bf664b524be380); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbd5922df145d522b37bf664b524be380)): ?>
<?php $component = $__componentOriginalbd5922df145d522b37bf664b524be380; ?>
<?php unset($__componentOriginalbd5922df145d522b37bf664b524be380); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('breadcrumb-plugins'); ?>
<?php if (isset($component)) { $__componentOriginale48b4598ffc2f41a085f001458a956d1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale48b4598ffc2f41a085f001458a956d1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.search-form','data' => ['placeholder' => 'Search...']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('search-form'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['placeholder' => 'Search...']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $attributes = $__attributesOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__attributesOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $component = $__componentOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__componentOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>
<button class="btn btn-outline--primary btn-sm addBtn" data-action="<?php echo e(route('admin.category.store')); ?>"
data-title="Add Category">
<i class="fa fa-fw fa-plus"></i> <?php echo app('translator')->get('Add New'); ?>
</button>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('script'); ?>
<script>
(function($) {
"use strict";
$('.addBtn').on('click', function() {
let modal = $('#categoryModal');
modal.find('[name=name]').val('');
modal.find('[name=slug]').val('');
modal.find('.modal-title').text($(this).data('title'));
modal.find('form').attr('action', $(this).data('action'));
modal.modal('show');
});
$('.editBtn').on('click', function() {
let modal = $('#categoryModal');
let category = $(this).data('category');
modal.find('[name=name]').val(category.name);
modal.find('[name=slug]').val(category.slug);
modal.find('.modal-title').text($(this).data('title'));
modal.find('form').attr('action', $(this).data('action'));
modal.modal('show');
});
})(jQuery);
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bdedition/public_html/core/resources/views/admin/category/index.blade.php ENDPATH**/ ?>