ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/2ffe208a46000678f26599f953815947.php |
<div class="col-lg-12 col-md-12 ntfcn-tab-content-left w-100 p-4"> <div class="table-responsive"> <?php if (isset($component)) { $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f = $component; } ?> <?php $component = App\View\Components\Table::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('table'); ?> <?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\Table::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'table-bordered']); ?> <?php $__env->slot('thead', null, []); ?> <th>#</th> <th><?php echo app('translator')->get('app.name'); ?></th> <th style="width: 30%;"><?php echo app('translator')->get('modules.statusFields.defaultStatus'); ?></th> <th class="text-right"><?php echo app('translator')->get('app.action'); ?></th> <?php $__env->endSlot(); ?> <?php $__empty_1 = true; $__currentLoopData = $projectStatusSetting; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr id="status-<?php echo e($status->id); ?>"> <td> <?php echo e($key + 1); ?> </td> <td><i class="fa fa-circle mr-1 f-15" style="color:<?php echo e($status->color); ?>"></i> <?php echo e(ucfirst($status->status_name)); ?> </td> <?php if($status->status == 'active'): ?> <td> <?php if (isset($component)) { $__componentOriginalc709ddc147ddde534205d9546b4fb0db = $component; } ?> <?php $component = App\View\Components\Forms\Radio::resolve(['fieldId' => 'status_'.e($status->id).'','fieldLabel' => __('app.default'),'fieldName' => 'default_status','fieldValue' => ''.e($status->id).'','checked' => ($status->default_status == 1) ? 'checked' : ''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.radio'); ?> <?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\Radio::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'default_status','data-status-id' => ''.e($status->id).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc709ddc147ddde534205d9546b4fb0db)): ?> <?php $component = $__componentOriginalc709ddc147ddde534205d9546b4fb0db; ?> <?php unset($__componentOriginalc709ddc147ddde534205d9546b4fb0db); ?> <?php endif; ?> </td> <?php else: ?> <td><?php echo app('translator')->get('modules.statusFields.change'); ?></td> <?php endif; ?> <td class="text-right"> <div class="task_view"> <a href="javascript:;" data-status-id="<?php echo e($status->id); ?>" class="editProjectStatus task_view_more d-flex align-items-center justify-content-center"> <i class="fa fa-edit icons mr-1"></i> <?php echo app('translator')->get('app.edit'); ?> </a> </div> <?php if($status->default_status == 0): ?> <div class="task_view mt-1 mt-lg-0 mt-md-0 ml-1"> <a href="javascript:;" data-status-id="<?php echo e($status->id); ?>" class="delete-project-status task_view_more d-flex align-items-center justify-content-center"> <i class="fa fa-trash icons mr-1"></i> <?php echo app('translator')->get('app.delete'); ?> </a> </div> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="4"> <?php if (isset($component)) { $__componentOriginal269164c77d9d34462c34359c03da6a68 = $component; } ?> <?php $component = App\View\Components\Cards\NoRecord::resolve(['icon' => 'map-marker-alt','message' => __('messages.noRecordFound')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.no-record'); ?> <?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\NoRecord::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($__componentOriginal269164c77d9d34462c34359c03da6a68)): ?> <?php $component = $__componentOriginal269164c77d9d34462c34359c03da6a68; ?> <?php unset($__componentOriginal269164c77d9d34462c34359c03da6a68); ?> <?php endif; ?> </td> </tr> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?> <?php $component = $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f; ?> <?php unset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f); ?> <?php endif; ?> </div> </div> <script> $('.change-project-setting').change(function () { var id = this.id; if ($(this).is(':checked')) var status = 'active'; else var status = 'inactive'; var url = "<?php echo e(route('project-settings.changeStatus', ':id')); ?>"; url = url.replace(':id', id); $.easyAjax({ url: url, type: "POST", blockUI: true, data: {'id': id, 'status': status, '_method': 'PUT', '_token': '<?php echo e(csrf_token()); ?>'}, success: function (response) { if (response.status == "success") { window.location.reload(); } } }) }); $('body').on('click', '.default_status', function () { var statusID = $(this).data('status-id'); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ url: "<?php echo e(route('project-settings.setDefault', ':id')); ?>", type: "POST", data: { id: statusID, _token: token }, blockUI: true, success: function (response) { if (response.status == "success") { window.location.reload(); } } }); }); $('#add-status').click(function () { var url = "<?php echo e(route('project-settings.create')); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('.editProjectStatus').click(function () { var id = $(this).data('status-id'); var url = "<?php echo e(route('project-settings.edit', ':id')); ?>"; url = url.replace(':id', id); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('body').on('click', '.delete-project-status', function () { var id = $(this).data('status-id'); 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('project-settings.destroy', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, blockUI: true, data: { '_token': token, '_method': 'DELETE' }, success: function (response) { if (response.status == "success") { $('#status-' + id).fadeOut(); } } }); } }); }); </script> <?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/project-settings/ajax/status.blade.php ENDPATH**/ ?>