whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/b8e5b96b058cc03e9a8bcb3ef133dcbe.php
<?php $__env->startPush('datatable-styles'); ?> <script src="<?php echo e(asset('vendor/jquery/frappe-charts.min.iife.js')); ?>"></script> <?php echo $__env->make('sections.datatable_css', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('filter-section'); ?> <?php if (isset($component)) { $__componentOriginald1a72e1108842d163a80559e15f530b4 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald1a72e1108842d163a80559e15f530b4 = $attributes; } ?> <?php $component = App\View\Components\Filters\FilterBox::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filters.filter-box'); ?> <?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\Filters\FilterBox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <!-- CLIENT START --> <div class="select-box d-flex py-2 px-lg-2 px-md-2 px-0 border-right-grey border-right-grey-sm-0"> <p class="mb-0 pr-2 f-14 text-dark-grey d-flex align-items-center"><?php echo app('translator')->get('app.employee'); ?></p> <div class="select-status"> <select class="form-control select-picker" name="employee" id="employee_id" data-live-search="true" data-size="8"> <option value="all"><?php echo app('translator')->get('app.all'); ?></option> <?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $employee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal6c7097547485b98631a37d273a171e9f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal6c7097547485b98631a37d273a171e9f = $attributes; } ?> <?php $component = App\View\Components\UserOption::resolve(['user' => $employee] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('user-option'); ?> <?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\UserOption::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($__attributesOriginal6c7097547485b98631a37d273a171e9f)): ?> <?php $attributes = $__attributesOriginal6c7097547485b98631a37d273a171e9f; ?> <?php unset($__attributesOriginal6c7097547485b98631a37d273a171e9f); ?> <?php endif; ?> <?php if (isset($__componentOriginal6c7097547485b98631a37d273a171e9f)): ?> <?php $component = $__componentOriginal6c7097547485b98631a37d273a171e9f; ?> <?php unset($__componentOriginal6c7097547485b98631a37d273a171e9f); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <!-- CLIENT END --> <div class="select-box py-2 px-lg-2 px-md-2 px-0 border-right-grey border-right-grey-sm-0 d-none"> <p class="mb-0 pr-2 f-14 text-dark-grey d-flex align-items-center"><?php echo app('translator')->get('app.month'); ?></p> <div class="select-status"> <select class="form-control select-picker" name="month" id="month" data-live-search="true" data-size="8"> <?php if (isset($component)) { $__componentOriginale03e4d0d228cecaad6e3eba51d05c63f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginale03e4d0d228cecaad6e3eba51d05c63f = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.months','data' => ['selectedMonth' => $month,'fieldRequired' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.months'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['selectedMonth' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($month),'fieldRequired' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginale03e4d0d228cecaad6e3eba51d05c63f)): ?> <?php $attributes = $__attributesOriginale03e4d0d228cecaad6e3eba51d05c63f; ?> <?php unset($__attributesOriginale03e4d0d228cecaad6e3eba51d05c63f); ?> <?php endif; ?> <?php if (isset($__componentOriginale03e4d0d228cecaad6e3eba51d05c63f)): ?> <?php $component = $__componentOriginale03e4d0d228cecaad6e3eba51d05c63f; ?> <?php unset($__componentOriginale03e4d0d228cecaad6e3eba51d05c63f); ?> <?php endif; ?> </select> </div> </div> <div class="select-box d-flex py-2 px-lg-2 px-md-2 px-0 border-right-grey border-right-grey-sm-0"> <p class="mb-0 pr-2 f-14 text-dark-grey d-flex align-items-center"><?php echo app('translator')->get('app.year'); ?></p> <div class="select-status"> <select class="form-control select-picker" name="year" id="year" data-live-search="true" data-size="8"> <?php for($i = $year; $i >= $year - 4; $i--): ?> <option <?php if($i == $year): ?> selected <?php endif; ?> value="<?php echo e($i); ?>"><?php echo e($i); ?></option> <?php endfor; ?> </select> </div> </div> <!-- RESET START --> <div class="select-box d-flex py-1 px-lg-2 px-md-2 px-0"> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'times-circle'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'btn-xs d-none','id' => 'reset-filters']); ?> <?php echo app('translator')->get('app.clearFilters'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $attributes = $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> </div> <!-- RESET END --> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald1a72e1108842d163a80559e15f530b4)): ?> <?php $attributes = $__attributesOriginald1a72e1108842d163a80559e15f530b4; ?> <?php unset($__attributesOriginald1a72e1108842d163a80559e15f530b4); ?> <?php endif; ?> <?php if (isset($__componentOriginald1a72e1108842d163a80559e15f530b4)): ?> <?php $component = $__componentOriginald1a72e1108842d163a80559e15f530b4; ?> <?php unset($__componentOriginald1a72e1108842d163a80559e15f530b4); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <!-- CONTENT WRAPPER START --> <div class="content-wrapper"> <!-- Add Task Export Buttons Start --> <div class="d-grid d-lg-flex d-md-flex action-bar"> <div id="table-actions" class="flex-grow-1 align-items-center mb-2 mb-lg-0 mb-md-0"> <?php if(canDataTableExport()): ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'file-export'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'export-all-leave-quota','class' => 'mr-3 mb-2 mb-lg-0']); ?> <?php echo app('translator')->get('app.exportExcel'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $attributes = $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php endif; ?> </div> <div class="btn-group mt-2 mt-lg-0 mt-md-0 ml-0 ml-lg-3 ml-md-3" role="group"> <a href="<?php echo e(route('leave-report.leave_quota')); ?>" class="btn btn-secondary f-14 btn-active show-leaves-quota" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('app.menu.leavesQuota'); ?>"><i class="side-icon bi bi-pie-chart-fill"></i></a> <a href="<?php echo e(route('leave-report.index')); ?>" class="btn btn-secondary f-14 leave-report" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('app.menu.leaveReport'); ?>"><i class="side-icon bi bi-list-ul"></i></a> </div> </div> <!-- Add Task Export Buttons End --> <!-- Task Box Start --> <div class="d-flex flex-column w-tables rounded mt-4 bg-white"> <?php echo $dataTable->table(['class' => 'table table-hover border-0 w-100']); ?> </div> <!-- Task Box End --> </div> <!-- CONTENT WRAPPER END --> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <?php echo $__env->make('sections.datatable_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script> $('#leave-quota-report-table').on('preXhr.dt', function(e, settings, data) { var employeeId = $('#employee_id').val(); var year = $('#year').val(); var month = $('#month').val(); if (!employeeId) { employeeId = 0; } data['employeeId'] = employeeId; data['year'] = year; data['month'] = month; // data['_token'] = '<?php echo e(csrf_token()); ?>'; }); const showTable = () => { window.LaravelDataTables["leave-quota-report-table"].draw(true); } $('#employee_id, #month, #year').on('change keyup', function() { if ($('#employee_id').val() != "all") { $('#reset-filters').removeClass('d-none'); showTable(); } else if ($('#month').val() != "all") { $('#reset-filters').removeClass('d-none'); showTable(); } else if ($('#year').val() != "all") { $('#reset-filters').removeClass('d-none'); showTable(); } else { $('#reset-filters').addClass('d-none'); showTable(); } }); $('#reset-filters').click(function() { $('#filter-form')[0].reset(); $('.filter-box .select-picker').selectpicker("refresh"); $('#reset-filters').addClass('d-none'); showTable(); }); $('#leave-quota-report-table').on('click', '.view-leaves', function(event) { var id = $(this).data('user-id'); var year = $('#year').val(); var month = $('#month').val(); var url = "<?php echo e(route('leave-report.employee-leave-quota', [':id', ':year', ':month'])); ?>"; url = url.replace(':id', id); url = url.replace(':year', year); url = url.replace(':month', month); $(MODAL_XL + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_XL, url); }); <?php if(canDataTableExport()): ?> $('#export-all-leave-quota').click(function () { var userId = $('#employee_id').val(); var year = $('#year').val(); var month = $('#month').val(); var url = "<?php echo e(route('leave_quota.export_all_leave_quota', [':userId', ':year', ':month'])); ?>"; url = url.replace(':userId', userId); url = url.replace(':year', year); url = url.replace(':month', month); window.location.href = url; }); <?php endif; ?> </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kckglobal/public_html/portal/resources/views/reports/leave-quota/index.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia