whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/376a8873427bc6faf96867c56a4daadb.php
<?php $__env->startPush('datatable-styles'); ?> <?php echo $__env->make('sections.datatable_css', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopPush(); ?> <?php $addAttendancePermission = user()->permission('add_attendance'); $viewEmployeeTasks = user()->permission('view_employee_tasks'); $viewEmployeeAttendance = user()->permission('view_attendance'); $viewTickets = user()->permission('view_tickets'); $viewEmployeeProjects = user()->permission('view_employee_projects'); $viewEmployeeTimelogs = user()->permission('view_employee_timelogs'); $manageEmergencyContact = user()->permission('manage_emergency_contact'); $manageRolePermissionSetting = user()->permission('manage_role_permission_setting'); $manageShiftPermission = user()->permission('view_shift_roster'); $viewLeavePermission = user()->permission('view_leave'); $viewDocumentPermission = user()->permission('view_documents'); $viewAppreciationPermission = user()->permission('view_appreciation'); $viewImmigrationPermission = user()->permission('view_immigration'); $viewIncrementPermission = user()->permission('view_increment_promotion'); ?> <?php $showFullProfile = false; $employeeDetail = $employee->employeeDetail; if ($viewPermission == 'all' || ($viewPermission == 'added' && $employeeDetail->added_by == user()->id) || ($viewPermission == 'owned' && $employeeDetail->user_id == user()->id) || ($viewPermission == 'both' && ($employeeDetail->user_id == user()->id || $employeeDetail->added_by == user()->id)) ) { $showFullProfile = true; } ?> <?php $__env->startPush('styles'); ?> <style> .attendance-total { width: 10%; } .table .thead-light th, .table tr td, .table h5 { font-size: 12px; } .mw-250{ min-width: 125px; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('filter-section'); ?> <div class="d-flex d-lg-block filter-box project-header bg-white"> <div class="mobile-close-overlay w-100 h-100" id="close-client-overlay"></div> <div class="project-menu" id="mob-client-detail"> <a class="d-none close-it" href="javascript:;" id="close-client-detail"><i class="fa fa-times"></i></a> <nav class="tabs"> <ul class="-primary"> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id),'text' => __('modules.employees.profile')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'profile']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php if($viewEmployeeProjects == 'all' && in_array('projects', user_modules())): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=projects','text' => __('app.menu.projects'),'ajax' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'projects']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($viewEmployeeTasks == 'all' && in_array('tasks', user_modules())): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=tasks','text' => __('app.menu.tasks'),'ajax' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'tasks']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($viewEmployeeAttendance != 'none' && $viewEmployeeAttendance != 5 && in_array('attendance', user_modules())): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=attendance','text' => __('app.menu.attendance'),'ajax' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'attendance']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if(in_array('leaves', user_modules()) && ($viewLeavePermission == 'all' || ($viewLeavePermission == 'owned' || $viewLeavePermission == 'both') && $employee->id == user()->id )): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=leaves','text' => __('app.menu.leaves'),'ajax' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'leaves']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=leaves-quota','text' => __('app.menu.leavesQuota')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'leaves-quota']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($viewEmployeeTimelogs == 'all' && in_array('timelogs', user_modules())): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=timelogs','text' => __('app.menu.timeLogs'),'ajax' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'timelogs']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($viewDocumentPermission != 'none'): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=documents','text' => __('app.menu.documents')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'documents']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($showFullProfile && ($manageEmergencyContact == 'all' || $employee->id == user()->id)): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=emergency-contacts','text' => __('modules.emergencyContact.emergencyContact')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'emergency-contacts']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($viewIncrementPermission != 'none'): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=increment-promotions','text' => __('modules.incrementPromotion.incrementPromotions')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'increment-promotions']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($viewTickets == 'all' && in_array('tickets', user_modules())): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=tickets','text' => __('modules.tickets.ticket'),'ajax' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'tickets']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($showFullProfile && !in_array('client', user_roles())): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=appreciation','text' => __('app.menu.appreciation')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'appreciation']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($manageShiftPermission == 'all' && in_array('attendance', user_modules())): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=shifts','text' => __('app.menu.shiftRoster')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'shifts']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($manageRolePermissionSetting == 'all'): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=permissions','text' => __('modules.permission.permissions')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'permissions']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($showFullProfile): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=activity','text' => __('modules.employees.activity')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'activity']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> <?php if($viewImmigrationPermission == 'all' || (in_array($viewImmigrationPermission, ['added', 'owned', 'both']) && user()->id == $employee->id)): ?> <li> <?php if (isset($component)) { $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab = $attributes; } ?> <?php $component = App\View\Components\Tab::resolve(['href' => route('employees.show', $employee->id) . '?tab=immigration','text' => __('modules.employees.immigration')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('tab'); ?> <?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\Tab::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'immigration']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $attributes = $__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__attributesOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> <?php if (isset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab)): ?> <?php $component = $__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab; ?> <?php unset($__componentOriginal4b0c45ee1a38bb46a01c2a25edd749ab); ?> <?php endif; ?> </li> <?php endif; ?> </ul> </nav> </div> <a class="mb-0 d-block d-lg-none text-dark-grey ml-auto mr-2 border-left-grey" onclick="openClientDetailSidebar()"><i class="fa fa-ellipsis-v "></i></a> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="content-wrapper pt-0 border-top-0 client-detail-wrapper"> <form action="" id="filter-form"> <div class="d-block d-lg-flex d-md-flex my-3"> <!-- STATUS START --> <div class="select-box py-2 px-0 mr-3"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldLabel' => __('app.year'),'fieldId' => 'year'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?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\Label::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($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <select class="form-control select-picker" name="year" id="year"> <?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> <!-- STATUS END --> <div class="select-box py-2 px-0 mr-3"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldLabel' => __('app.month'),'fieldId' => 'month'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?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\Label::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($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <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> <!-- RESET START --> <div class="select-box py-2 px-0 mr-3" style="margin-top:2rem !important;"> <?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 --> </div> </form> <div class="d-flex justify-content-between action-bar"> <div id="table-actions" class="align-items-center"> <?php if($addAttendancePermission == 'all' || $addAttendancePermission == 'added'): ?> <?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $attributes; } ?> <?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => route('attendances.create').'?default_assign='.$employee->id,'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(['class' => 'mr-3 openRightModal float-left','data-redirect-url' => ''.e(url()->full()).'']); ?> <?php echo app('translator')->get('modules.attendance.markAttendance'); ?> <?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; ?> <?php endif; ?> </div> </div> <?php if (isset($component)) { $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $attributes; } ?> <?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-3']); ?> <div class="row"> <div class="col-md-12"> <span class="f-w-500 mr-1"><?php echo app('translator')->get('app.note'); ?>:</span> <i class="fa fa-star text-warning"></i> <i class="fa fa-arrow-right text-lightest f-11 mx-1"></i> <?php echo app('translator')->get('app.menu.holiday'); ?> | <i class="fa fa-calendar-week text-red"></i> <i class="fa fa-arrow-right text-lightest f-11 mx-1"></i> <?php echo app('translator')->get('modules.attendance.dayOff'); ?> | <i class="fa fa-check text-success"></i> <i class="fa fa-arrow-right text-lightest f-11 mx-1"></i> <?php echo app('translator')->get('modules.attendance.present'); ?> | <i class="fa fa-star-half-alt text-red"></i> <i class="fa fa-arrow-right text-lightest f-11 mx-1"></i> <?php echo app('translator')->get('modules.attendance.halfDay'); ?> | <i class="fa fa-exclamation-circle text-warning"></i> <i class="fa fa-arrow-right text-lightest f-11 mx-1"></i> <?php echo app('translator')->get('modules.attendance.late'); ?> | <i class="fa fa-times text-lightest"></i> <i class="fa fa-arrow-right text-lightest f-11 mx-1"></i> <?php echo app('translator')->get('modules.attendance.absent'); ?> | <i class="fa fa-plane-departure text-danger"></i> <i class="fa fa-arrow-right text-lightest f-11 mx-1"></i> <?php echo app('translator')->get('modules.attendance.leave'); ?> </div> </div> <div class="row"> <div class="col-md-12" id="attendance-data"></div> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9)): ?> <?php $attributes = $__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9; ?> <?php unset($__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9); ?> <?php endif; ?> <?php if (isset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9)): ?> <?php $component = $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9; ?> <?php unset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9); ?> <?php endif; ?> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> $("body").on("click", ".project-menu .ajax-tab", function(event) { event.preventDefault(); $('.project-menu .p-sub-menu').removeClass('active'); $(this).addClass('active'); const requestUrl = this.href; $.easyAjax({ url: requestUrl, blockUI: true, container: ".content-wrapper", historyPush: true, success: function(response) { if (response.status == "success") { $('.content-wrapper').html(response.html); init('.content-wrapper'); } } }); }); </script> <script> const activeTab = "<?php echo e($activeTab); ?>"; $('.project-menu .' + activeTab).addClass('active'); </script> <script> /******************************************************* More btn in projects menu Start *******************************************************/ const container = document.querySelector('.tabs'); const primary = container.querySelector('.-primary'); const primaryItems = container.querySelectorAll('.-primary > li:not(.-more)'); container.classList.add('--jsfied'); // insert "more" button and duplicate the list primary.insertAdjacentHTML('beforeend', ` <li class="-more"> <button type="button" class="px-4 h-100 bg-grey d-none d-lg-flex align-items-center" aria-haspopup="true" aria-expanded="false"> <?php echo e(__('app.more')); ?> <span>↓</span> </button> <ul class="-secondary" id="hide-project-menues"> ${primary.innerHTML} </ul> </li> `); const secondary = container.querySelector('.-secondary'); const secondaryItems = secondary.querySelectorAll('li'); const allItems = container.querySelectorAll('li'); const moreLi = primary.querySelector('.-more'); const moreBtn = moreLi.querySelector('button'); moreBtn.addEventListener('click', e => { e.preventDefault(); container.classList.toggle('--show-secondary'); moreBtn.setAttribute('aria-expanded', container.classList.contains('--show-secondary')); }); // adapt tabs const doAdapt = () => { // reveal all items for the calculation allItems.forEach(item => { item.classList.remove('--hidden'); }); // hide items that won't fit in the Primary let stopWidth = moreBtn.offsetWidth; let hiddenItems = []; const primaryWidth = primary.offsetWidth; primaryItems.forEach((item, i) => { if (primaryWidth >= stopWidth + item.offsetWidth) { stopWidth += item.offsetWidth; } else { item.classList.add('--hidden'); hiddenItems.push(i); } }); // toggle the visibility of More button and items in Secondary if (!hiddenItems.length) { moreLi.classList.add('--hidden'); container.classList.remove('--show-secondary'); moreBtn.setAttribute('aria-expanded', false); } else { secondaryItems.forEach((item, i) => { if (!hiddenItems.includes(i)) { item.classList.add('--hidden'); } }); } }; doAdapt(); // adapt immediately on load window.addEventListener('resize', doAdapt); // adapt on window resize // hide Secondary on the outside click document.addEventListener('click', e => { let el = e.target; while (el) { if (el === secondary || el === moreBtn) { return; } el = el.parentNode; } container.classList.remove('--show-secondary'); moreBtn.setAttribute('aria-expanded', false); }); /******************************************************* More btn in projects menu End *******************************************************/ </script> <script> $('#user_id, #department, #designation, #month, #year').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 ($('#designation').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"); $('#filter-form .select-picker').selectpicker("refresh"); $('#reset-filters').addClass('d-none'); showTable(); }); function showTable(loading = true) { var year = $('#year').val(); var month = $('#month').val(); var userId = "<?php echo e($employee->id); ?>"; var department = "<?php echo e($employee->employeeDetail?->department_id); ?>"; var designation = "<?php echo e($employee->employeeDetail?->designation_id); ?>"; //refresh counts var url = "<?php echo e(route('attendances.index')); ?>"; var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ data: { '_token': token, year: year, month: month, department: department, designation: designation, userId: userId }, url: url, blockUI: loading, container: '.content-wrapper', success: function (response) { $('#attendance-data').html(response.data); } }); } $('#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 = "<?php echo e($employee->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_LG + ' ' + 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_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); } function addAttendance(userID) { var date = $('#date').val(); const attendanceDate = date.split("-"); let dayTime = attendanceDate[2]; dayTime = dayTime.split(' '); let day = dayTime[0]; let month = attendanceDate[1]; let year = attendanceDate[0]; var url = "<?php echo e(route('attendances.add-user-attendance', [':userid', ':day', ':month', ':year'])); ?>"; url = url.replace(':userid', userID); url = url.replace(':day', day); url = url.replace(':month', month); url = url.replace(':year', year); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); } showTable(false); </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/employees/ajax/attendance.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia