whoami7 - Manager
:
/
home
/
kckglobal
/
.trash
/
Upload File:
files >> /home/kckglobal/.trash/5f9e5c0aa9ce37edb691a71927a34596.php
<?php $editDepartmentPermission = user()->permission('edit_department'); $deleteDepartmentPermission = user()->permission('delete_department'); ?> <div id="department-section"> <div class="row"> <div class="col-sm-12"> <div class="card bg-white border-0 b-shadow-4"> <div class="card-header bg-white border-bottom-grey text-capitalize justify-content-between p-20"> <div class="row"> <div class="col-md-10 col-10"> <h3 class="heading-h1"><?php echo app('translator')->get('app.menu.department'); ?> <?php echo app('translator')->get('app.details'); ?></h3> </div> <div class="col-md-2 col-2 text-right"> <div class="dropdown"> <button class="btn btn-lg f-14 px-2 py-1 text-dark-grey text-capitalize rounded dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-ellipsis-h"></i> </button> <div class="dropdown-menu dropdown-menu-right border-grey rounded b-shadow-4 p-0" aria-labelledby="dropdownMenuLink" tabindex="0"> <?php if($editDepartmentPermission == 'all'): ?> <a class="dropdown-item openRightModal" data-redirect-url="<?php echo e(url()->previous()); ?>" href="<?php echo e(route('departments.edit', $department->id)); ?>"><?php echo app('translator')->get('app.edit'); ?></a> <?php endif; ?> <?php if($deleteDepartmentPermission == 'all'): ?> <a class="dropdown-item delete-department"><?php echo app('translator')->get('app.delete'); ?></a> <?php endif; ?> </div> </div> </div> </div> </div> <div class="card-body"> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.name'),'value' => $department->team_name,'html' => 'true'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?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\Cards\DataRow::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($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.parentId').' '. __('app.name'),'value' => ($parent) ? $parent->team_name : '-','html' => 'true'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?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\Cards\DataRow::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($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> </div> </div> </div> </div> </div> <script> $('body').on('click', '.delete-department', function() { Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.recoverRecord'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmDelete'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { var url = "<?php echo e(route('departments.destroy', $department->id)); ?>"; var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, data: { '_token': token, '_method': 'DELETE' }, success: function(response) { if (response.status == "success") { window.location.href = response.redirectUrl; } } }); } }); }); </script> <?php /**PATH /home/kckglobal/public_html/portal/resources/views/departments/ajax/show.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia