| Path : /var/www/html/phkaynews-v2/storage/framework/views/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/phkaynews-v2/storage/framework/views/5e5968861eba2ff1d28976e04f28769ea3e3829b.php |
<div class="row">
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.content-header','data' => ['title' => 'Category']]); ?>
<?php $component->withName('content-header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'Category']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<div class="col-12">
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.card','data' => []]); ?>
<?php $component->withName('card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<div class="row mb-2">
<div class="col-sm-8">
<div class="d-md-flex">
<div class="search-box mr-2 mb-2 d-inline-block">
<div class="position-relative">
<input type="search" wire:model.debonce.500ms="s" class="form-control"
placeholder="Search...">
<i class="bx bx-search-alt search-icon"></i>
</div>
</div>
<div class="d-flex align-self-center">
<span class="align-self-center mr-2">Show</span>
<select wire:model="limited" aria-controls="post_table"
class="custom-select custom-select-sm form-control td-pointer" <?php echo e(count($categories) < $limited?'disabled':''); ?>>
<?php $__currentLoopData = $show_limit; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($item); ?>"><?php echo e($item); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<span class="align-self-center ml-2">entries</span>
</div>
<?php if(auth()->user()->admin): ?>
<div class="d-flex align-self-center ml-2">
<div class="custom-control custom-checkbox">
<input type="checkbox" wire:model="trashes" class="custom-control-input" id="trashh"
<?php echo e($total_trash == 0 ? 'disabled' : ''); ?>>
<label class="custom-control-label" for="trashh">Trash<span
class="badge badge-danger badge-pill px-2 py-1"><?php echo e($total_trash); ?></span></label>
</div>
</div>
<div class="ml-2 align-self-center <?php echo e($trashes?'':'d-none'); ?>">
<button type="button" class="btn btn-danger btn-sm rounded-pill" wire:click="emptyTrash"
<?php echo e(empty($total_trash) ? 'disabled' : ''); ?>>
<i class="mdi mdi-trash-can-outline" wire:loading.class="d-none" wire:target="emptyTrash"></i>
<i class="bx bx-loader bx-spin" wire:loading wire:target="emptyTrash"></i>
Empty Trashes
</button>
<button type="button" class="btn btn-info btn-sm rounded-pill" wire:click="restoreAll"
<?php echo e(empty($total_trash) ? 'disabled' : ''); ?>>
<i class="mdi mdi-restore" wire:loading.class="d-none" wire:target="restoreAll"></i>
<i class="bx bx-loader bx-spin" wire:loading wire:target="restoreAll"></i>
Restore All
</button>
</div>
<?php endif; ?>
</div>
</div>
<div class="col-sm-4">
<div class="text-sm-right">
<?php
if (! isset($_instance)) {
$html = \Livewire\Livewire::mount('admin.partcials.category-form', ['modalId' => 'pkm_category'])->html();
} elseif ($_instance->childHasBeenRendered('wLrxKoU')) {
$componentId = $_instance->getRenderedChildComponentId('wLrxKoU');
$componentTag = $_instance->getRenderedChildComponentTagName('wLrxKoU');
$html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
$_instance->preserveRenderedChild('wLrxKoU');
} else {
$response = \Livewire\Livewire::mount('admin.partcials.category-form', ['modalId' => 'pkm_category']);
$html = $response->html();
$_instance->logRenderedChild('wLrxKoU', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
</div>
</div>
</div>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.index','data' => ['class' => 'position-relative','wire:init' => 'loadingItem']]); ?>
<?php $component->withName('table'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['class' => 'position-relative','wire:init' => 'loadingItem']); ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.loading','data' => ['wire:target' => 'nextPage']]); ?>
<?php $component->withName('table.loading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['wire:target' => 'nextPage']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.loading','data' => ['wire:target' => 'previousPage']]); ?>
<?php $component->withName('table.loading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['wire:target' => 'previousPage']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.loading','data' => ['wire:target' => 'gotoPage']]); ?>
<?php $component->withName('table.loading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['wire:target' => 'gotoPage']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.loading','data' => ['wire:target' => 's']]); ?>
<?php $component->withName('table.loading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['wire:target' => 's']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.loading','data' => ['wire:target' => 'limited']]); ?>
<?php $component->withName('table.loading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['wire:target' => 'limited']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.loading','data' => ['wire:target' => 'trashes']]); ?>
<?php $component->withName('table.loading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['wire:target' => 'trashes']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<thead class="thead-light">
<tr>
<th>N•</th>
<th wire:click="sortBy('name')" class="td-pointer">
Name
<i
class="fas <?php echo e($sortDirection === 'ASC' ? 'fa-sort-alpha-down' : 'fas fa-sort-alpha-up-alt'); ?> my-opacity float-right font-20 <?php echo e($sortField === 'name' ? 'd-block' : 'd-none'); ?>"></i>
</th>
<th wire:click="sortBy('slug')" class="td-pointer">
Slug
<i
class="fas <?php echo e($sortDirection === 'ASC' ? 'fa-sort-alpha-down' : 'fas fa-sort-alpha-up-alt'); ?> my-opacity float-right font-20 <?php echo e($sortField === 'slug' ? 'd-block' : 'd-none'); ?>"></i>
</th>
<th wire:click="sortBy('created_at')" class="td-pointer">
Created At
<i
class="fas <?php echo e($sortDirection === 'ASC' ? 'fa-sort-alpha-down' : 'fas fa-sort-alpha-up-alt'); ?> my-opacity float-right font-20 <?php echo e($sortField === 'created_at' ? 'd-block' : 'd-none'); ?>"></i>
</th>
<th>Action</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>
<td class="text-center"><?php echo e(++$key); ?></td>
<td><?php echo e($category->name); ?></td>
<td><?php echo e($category->slug); ?></td>
<td>
<?php if(isset($category->created_at)): ?>
<?php echo e(date_format($category->created_at, 'd-M-Y H:i a')); ?>
<?php endif; ?>
</td>
<td class="text-center">
<?php if($trashes): ?>
<a href="#" wire:click="pkmRestore(<?php echo e($category->id); ?>)" class="mr-3 text-primary" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit">
<i class="mdi mdi-restore font-size-18"></i>
</a>
<a href="#" wire:click="deleted(<?php echo e($category->id); ?>)" class="text-danger">
<i class="mdi mdi mdi-close font-size-18"></i>
</a>
<?php else: ?>
<?php
if (! isset($_instance)) {
$html = \Livewire\Livewire::mount('admin.partcials.category-form', ['modalId' => 'pkm_category_'.$category->id,'category' => $category])->html();
} elseif ($_instance->childHasBeenRendered(''.e($category->id).'')) {
$componentId = $_instance->getRenderedChildComponentId(''.e($category->id).'');
$componentTag = $_instance->getRenderedChildComponentTagName(''.e($category->id).'');
$html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
$_instance->preserveRenderedChild(''.e($category->id).'');
} else {
$response = \Livewire\Livewire::mount('admin.partcials.category-form', ['modalId' => 'pkm_category_'.$category->id,'category' => $category]);
$html = $response->html();
$_instance->logRenderedChild(''.e($category->id).'', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
<a href="#" wire:click="destroy(<?php echo e($category); ?>)" class="text-danger <?php echo e($category->post_cat ? 'd-none' : ''); ?>">
<i class="mdi mdi-trash-can-outline font-size-18"></i>
</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.none-loading','data' => ['ready' => $readyLoadingItem,'limited' => $limited,'item' => $categories,'colspan' => '5','rows' => '5']]); ?>
<?php $component->withName('table.none-loading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['ready' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($readyLoadingItem),'limited' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($limited),'item' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($categories),'colspan' => '5','rows' => '5']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php endif; ?>
</tbody>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php if(empty(!$categories)): ?>
<?php echo e($categories->links()); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
</div>
</div>
<?php $__env->startPush('scripts'); ?>
<script>
window.addEventListener('closeModal', event => {
$('#' + event.detail.modalId).modal('hide');
})
</script>
<?php $__env->stopPush(); ?>
<?php /**PATH /var/www/html/phkaynews-v2/resources/views/livewire/admin/category-manage.blade.php ENDPATH**/ ?>