ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/0b89a145dd50ca65406d0ff3996c4618.php |
<?php $__env->startPush('styles'); ?> <style> .attendance-total { width: 10%; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('filter-section'); ?> <?php if (isset($component)) { $__componentOriginald1a72e1108842d163a80559e15f530b4 = $component; } ?> <?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([]); ?> <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="user_id" id="user_id" data-live-search="true" data-size="8"> <?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal6c7097547485b98631a37d273a171e9f = $component; } ?> <?php $component = App\View\Components\UserOption::resolve(['user' => $item] + (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($__componentOriginal6c7097547485b98631a37d273a171e9f)): ?> <?php $component = $__componentOriginal6c7097547485b98631a37d273a171e9f; ?> <?php unset($__componentOriginal6c7097547485b98631a37d273a171e9f); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="select-box d-flex py-2 px-lg-3 px-md-3 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.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)) { $__componentOriginal71c6471fa76ce19017edc287b6f4508c = $component; } ?> <?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($__componentOriginal71c6471fa76ce19017edc287b6f4508c)): ?> <?php $component = $__componentOriginal71c6471fa76ce19017edc287b6f4508c; ?> <?php unset($__componentOriginal71c6471fa76ce19017edc287b6f4508c); ?> <?php endif; ?> </select> </div> </div> <div class="select-box d-flex py-2 px-lg-3 px-md-3 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 $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($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> </div> <!-- RESET END --> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginald1a72e1108842d163a80559e15f530b4)): ?> <?php $component = $__componentOriginald1a72e1108842d163a80559e15f530b4; ?> <?php unset($__componentOriginald1a72e1108842d163a80559e15f530b4); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $addAttendancePermission = user()->permission('add_attendance'); ?> <?php $__env->startSection('content'); ?> <!-- CONTENT WRAPPER START --> <div class="content-wrapper px-4"> <div class="d-flex"> <div id="table-actions" class="flex-grow-1 align-items-center"> <?php if($addAttendancePermission == 'all' || $addAttendancePermission == 'added'): ?> <?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?> <?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => route('attendances.create'),'icon' => 'plus'] + (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(['data-redirect-url' => ''.e(route('attendances.by_member')).'','class' => 'mr-3 openRightModal float-left']); ?> <?php echo app('translator')->get('modules.attendance.markAttendance'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?> <?php $component = $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?> <?php unset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?> <?php endif; ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?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-bymember','class' => 'mr-3 mb-2 mb-lg-0']); ?> <?php echo app('translator')->get('app.exportExcel'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if($addAttendancePermission == 'all' || $addAttendancePermission == 'added'): ?> <?php if (isset($component)) { $__componentOriginal29acd9b76240152ae380821b082bd629 = $component; } ?> <?php $component = App\View\Components\Forms\LinkSecondary::resolve(['link' => route('attendances.import'),'icon' => 'file-upload'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.link-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\LinkSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-3 openRightModal float-left']); ?> <?php echo app('translator')->get('app.importExcel'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal29acd9b76240152ae380821b082bd629)): ?> <?php $component = $__componentOriginal29acd9b76240152ae380821b082bd629; ?> <?php unset($__componentOriginal29acd9b76240152ae380821b082bd629); ?> <?php endif; ?> <?php endif; ?> </div> <div class="btn-group" role="group"> <a href="<?php echo e(route('attendances.index')); ?>" class="btn btn-secondary f-14" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('app.summary'); ?>"><i class="side-icon bi bi-list-ul"></i></a> <a href="<?php echo e(route('attendances.by_member')); ?>" class="btn btn-secondary f-14 btn-active" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.attendance.attendanceByMember'); ?>"><i class="side-icon bi bi-person"></i></a> <a href="<?php echo e(route('attendances.by_hour')); ?>" class="btn btn-secondary f-14" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.attendance.attendanceByHour'); ?>"><i class="fa fa-clock"></i></a> <?php if(attendance_setting()->save_current_location): ?> <a href="<?php echo e(route('attendances.by_map_location')); ?>" class="btn btn-secondary f-14" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.attendance.attendanceByLocation'); ?>"><i class="fa fa-map-marked-alt"></i></a> <?php endif; ?> </div> </div> <div class="row my-3"> <div class="col-lg-4 col-xl-2 col-md-6 col-sm-12 mb-4 mb-lg-0 mb-md-0"> <?php if (isset($component)) { $__componentOriginale1233a330800208b0e743068470d1bf4 = $component; } ?> <?php $component = App\View\Components\Cards\Widget::resolve(['title' => __('modules.attendance.totalWorkingDays'),'value' => '0','icon' => 'calendar','widgetId' => 'totalWorkingDays'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.widget'); ?> <?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\Widget::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($__componentOriginale1233a330800208b0e743068470d1bf4)): ?> <?php $component = $__componentOriginale1233a330800208b0e743068470d1bf4; ?> <?php unset($__componentOriginale1233a330800208b0e743068470d1bf4); ?> <?php endif; ?> </div> <div class="col-lg-4 col-xl-2 col-md-6 col-sm-12"> <?php if (isset($component)) { $__componentOriginale1233a330800208b0e743068470d1bf4 = $component; } ?> <?php $component = App\View\Components\Cards\Widget::resolve(['title' => __('modules.attendance.daysPresent'),'value' => '0','icon' => 'calendar','widgetId' => 'daysPresent'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.widget'); ?> <?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\Widget::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($__componentOriginale1233a330800208b0e743068470d1bf4)): ?> <?php $component = $__componentOriginale1233a330800208b0e743068470d1bf4; ?> <?php unset($__componentOriginale1233a330800208b0e743068470d1bf4); ?> <?php endif; ?> </div> <div class="col-lg-4 col-xl-2 col-md-6 col-sm-12"> <?php if (isset($component)) { $__componentOriginale1233a330800208b0e743068470d1bf4 = $component; } ?> <?php $component = App\View\Components\Cards\Widget::resolve(['title' => __('modules.attendance.late'),'value' => '0','icon' => 'calendar','widgetId' => 'daysLate'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.widget'); ?> <?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\Widget::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($__componentOriginale1233a330800208b0e743068470d1bf4)): ?> <?php $component = $__componentOriginale1233a330800208b0e743068470d1bf4; ?> <?php unset($__componentOriginale1233a330800208b0e743068470d1bf4); ?> <?php endif; ?> </div> <div class="col-lg-4 col-xl-2 col-md-6 col-sm-12"> <?php if (isset($component)) { $__componentOriginale1233a330800208b0e743068470d1bf4 = $component; } ?> <?php $component = App\View\Components\Cards\Widget::resolve(['title' => __('modules.attendance.halfDay'),'value' => '0','icon' => 'calendar','widgetId' => 'halfDays'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.widget'); ?> <?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\Widget::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($__componentOriginale1233a330800208b0e743068470d1bf4)): ?> <?php $component = $__componentOriginale1233a330800208b0e743068470d1bf4; ?> <?php unset($__componentOriginale1233a330800208b0e743068470d1bf4); ?> <?php endif; ?> </div> <div class="col-lg-4 col-xl-2 col-md-6 col-sm-12"> <?php if (isset($component)) { $__componentOriginale1233a330800208b0e743068470d1bf4 = $component; } ?> <?php $component = App\View\Components\Cards\Widget::resolve(['title' => __('modules.attendance.absent'),'value' => '0','icon' => 'calendar','widgetId' => 'absentDays'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.widget'); ?> <?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\Widget::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($__componentOriginale1233a330800208b0e743068470d1bf4)): ?> <?php $component = $__componentOriginale1233a330800208b0e743068470d1bf4; ?> <?php unset($__componentOriginale1233a330800208b0e743068470d1bf4); ?> <?php endif; ?> </div> <div class="col-lg-4 col-xl-2 col-md-6 col-sm-12"> <?php if (isset($component)) { $__componentOriginale1233a330800208b0e743068470d1bf4 = $component; } ?> <?php $component = App\View\Components\Cards\Widget::resolve(['title' => __('modules.attendance.holidays'),'value' => '0','icon' => 'calendar','widgetId' => 'holidayDays'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.widget'); ?> <?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\Widget::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($__componentOriginale1233a330800208b0e743068470d1bf4)): ?> <?php $component = $__componentOriginale1233a330800208b0e743068470d1bf4; ?> <?php unset($__componentOriginale1233a330800208b0e743068470d1bf4); ?> <?php endif; ?> </div> </div> <!-- Task Box Start --> <?php if (isset($component)) { $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $component; } ?> <?php $component = App\View\Components\Cards\Data::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data'); ?> <?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\Data::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mt-2']); ?> <div class="row"> <div class="col-md-12"> <table class="table table-bordered table-responsive-sm table-hover"> <thead class="thead-light"> <tr> <th><?php echo app('translator')->get('app.date'); ?></th> <th><?php echo app('translator')->get('app.status'); ?></th> <th><?php echo app('translator')->get('modules.attendance.clock_in'); ?></th> <th><?php echo app('translator')->get('modules.attendance.clock_out'); ?></th> <th><?php echo app('translator')->get('app.total'); ?></th> <th class="text-right pr-20"><?php echo app('translator')->get('app.others'); ?></th> </tr> </thead> <tbody id="attendance-data"> </tbody> </table> </div> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9)): ?> <?php $component = $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9; ?> <?php unset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9); ?> <?php endif; ?> <!-- Task Box End --> </div> <!-- CONTENT WRAPPER END --> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> $('#user_id, #department, #month, #year, #late') .on('change', function() { if ($('#user_id').val() != "all") { $('#reset-filters').removeClass('d-none'); showTable(); } else if ($('#department').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 if ($('#late').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(); }); function showTable() { var year = $('#year').val(); var month = $('#month').val(); var userId = $('#user_id').val(); var department = $('#department').val(); var late = $('#late').val(); // Refresh counts var url = "<?php echo e(route('attendances.employee_data')); ?>"; var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', data: { '_token': token, year: year, month: month, department: department, late: late, userId: userId }, url: url, blockUI: true, container: '.content-wrapper', success: function(response) { $('#attendance-data').html(response.data); $('#daysPresent').html(response.daysPresent); $('#daysLate').html(response.daysLate); $('#halfDays').html(response.halfDays); $('#totalWorkingDays').html(response.totalWorkingDays); $('#absentDays').html(response.absentDays); $('#holidayDays').html(response.holidays); } }); } $('#export-bymember').click(function() { var year = $('#year').val(); var month = $('#month').val(); var userId = $('#user_id').val(); var url = "<?php echo e(route('attendances.export_attendance', [':year', ':month', ':userId'])); ?>"; url = url.replace(':year', year).replace(':month', month).replace(':userId', userId); window.location.href=url; }); $('#attendance-data').on('click', '.view-attendance', function() { var attendanceID = $(this).data('attendance-id'); var url = "<?php echo e(route('attendances.show', ':attendanceID')); ?>"; url = url.replace(':attendanceID', attendanceID); $(MODAL_XL + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_XL, url); }); $('#attendance-data').on('click', '.edit-attendance', function(event) { var attendanceDate = $(this).data('attendance-date'); var userData = $(this).closest('tr').children('td:first'); var userID = $(this).data('user-id'); var year = $('#year').val(); var month = $('#month').val(); var url = "<?php echo e(route('attendances.mark', [':userid', ':day', ':month', ':year'])); ?>"; url = url.replace(':userid', userID); url = url.replace(':day', attendanceDate); url = url.replace(':month', month); url = url.replace(':year', year); $(MODAL_XL + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_XL, url); }); function editAttendance(id) { var url = "<?php echo e(route('attendances.edit', [':id'])); ?>"; url = url.replace(':id', id); $(MODAL_XL + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_XL, url); } showTable(); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/attendances/by_member.blade.php ENDPATH**/ ?>