File: /home/xedaptot/work.naniguide.com/storage/framework/views/9f24bbf366705504c6a549600c70671a.php
<?php $__env->startSection('content'); ?>
<!-- SETTINGS START -->
<div class="w-100 d-flex ">
<?php if (isset($component)) { $__componentOriginalde9d36b1eccca15eec00fdb693fa4d2d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalde9d36b1eccca15eec00fdb693fa4d2d = $attributes; } ?>
<?php $component = App\View\Components\SettingSidebar::resolve(['activeMenu' => $activeSettingMenu] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('setting-sidebar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\SettingSidebar::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalde9d36b1eccca15eec00fdb693fa4d2d)): ?>
<?php $attributes = $__attributesOriginalde9d36b1eccca15eec00fdb693fa4d2d; ?>
<?php unset($__attributesOriginalde9d36b1eccca15eec00fdb693fa4d2d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalde9d36b1eccca15eec00fdb693fa4d2d)): ?>
<?php $component = $__componentOriginalde9d36b1eccca15eec00fdb693fa4d2d; ?>
<?php unset($__componentOriginalde9d36b1eccca15eec00fdb693fa4d2d); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcb8848b8ae159c08072bf1971fc3ca1f = $attributes; } ?>
<?php $component = App\View\Components\SettingCard::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('setting-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\SettingCard::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php $__env->slot('header', null, []); ?>
<div class="s-b-n-header" id="tabs">
<nav class="tabs px-4 border-bottom-grey">
<div class="nav" id="nav-tab" role="tablist">
<a class="nav-item nav-link f-15 active admin"
href="<?php echo e(route('module-settings.index')); ?>?tab=admin" role="tab"
aria-controls="nav-ticketAgents" aria-selected="true"><?php echo app('translator')->get('app.admin'); ?>
</a>
<a class="nav-item nav-link f-15 employee"
href="<?php echo e(route('module-settings.index')); ?>?tab=employee" role="tab"
aria-controls="nav-ticketTypes" aria-selected="true"><?php echo app('translator')->get('app.employee'); ?>
</a>
<a class="nav-item nav-link f-15 client"
href="<?php echo e(route('module-settings.index')); ?>?tab=client" role="tab"
aria-controls="nav-ticketChannel" aria-selected="true"><?php echo app('translator')->get('app.client'); ?>
</a>
<a class="nav-item nav-link f-15 custom" href="<?php echo e(route('custom-modules.index')); ?>?tab=custom"
role="tab" aria-controls="nav-ticketChannel"
aria-selected="true"><?php echo app('translator')->get('app.menu.customModule'); ?>
</a>
</div>
</nav>
</div>
<?php $__env->endSlot(); ?>
<?php $__env->slot('buttons', null, []); ?>
<div class="row">
<div class="col-md-12 my-2">
<?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $attributes; } ?>
<?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => route('custom-modules.create'),'icon' => 'cog'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('forms.link-primary'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\LinkPrimary::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo app('translator')->get('app.install'); ?>/<?php echo app('translator')->get('app.update'); ?>
<?php echo app('translator')->get('app.module'); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?>
<?php $attributes = $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?>
<?php unset($__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?>
<?php $component = $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?>
<?php unset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?>
<?php endif; ?>
</div>
</div>
<?php $__env->endSlot(); ?>
<?php echo $__env->make($view, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcb8848b8ae159c08072bf1971fc3ca1f)): ?>
<?php $attributes = $__attributesOriginalcb8848b8ae159c08072bf1971fc3ca1f; ?>
<?php unset($__attributesOriginalcb8848b8ae159c08072bf1971fc3ca1f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f)): ?>
<?php $component = $__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f; ?>
<?php unset($__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f); ?>
<?php endif; ?>
</div>
<!-- SETTINGS END -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<script>
/* manage menu active class */
$('.nav-item').removeClass('active');
const activeTab = "<?php echo e($activeTab); ?>";
$('.' + activeTab).addClass('active');
showBtn(activeTab);
function showBtn(activeTab) {
$('.actionBtn').addClass('d-none');
$('.' + activeTab + '-btn').removeClass('d-none');
}
$("body").on("click", "#editSettings .nav a", function(event) {
event.preventDefault();
$('.nav-item').removeClass('active');
$(this).addClass('active');
const requestUrl = this.href;
$.easyAjax({
url: requestUrl,
blockUI: true,
container: "#nav-tabContent",
historyPush: true,
success: function(response) {
if (response.status == "success") {
showBtn(response.activeTab);
$('#nav-tabContent').html(response.html);
init('#nav-tabContent');
}
}
});
});
/* change module setting */
$('body').on('change', '.change-module-setting', function() {
var id = $(this).data('setting-id');
var name = $(this).data('module-name');
if(name == 'settings') {
Swal.fire({
icon: 'error',
text: '<?php echo app('translator')->get("messages.settingModuleCannotBeDisabled"); ?>',
toast: true,
position: 'top-end',
timer: 3000,
timerProgressBar: true,
showConfirmButton: false,
customClass: {
confirmButton: 'btn btn-primary',
},
showClass: {
popup: 'swal2-noanimation',
backdrop: 'swal2-noanimation'
},
})
$(this).prop('checked', true);
return false;
}
var moduleStatus = $(this).is(':checked') ? 'active' : 'deactive';
var token = '<?php echo e(csrf_token()); ?>';
var url = "<?php echo e(route('module-settings.update', ':id')); ?>";
url = url.replace(':id', id);
$.easyAjax({
type: 'PUT',
url: url,
container: '.settings-box',
blockUI: true,
data: {
'_token': token,
'status': moduleStatus,
'name': name
},
success: function () {
window.location.reload();
}
});
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mrsimple/work.naniguide.com/resources/views/module-settings/index.blade.php ENDPATH**/ ?>