@extends('layouts.app') @push('datatable-styles') @include('sections.datatable_css') @endpush @php $viewEmployeeTasks = user()->permission('view_employee_tasks'); $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'); @endphp @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; } @endphp @section('filter-section')
@endsection @section('content')
@include($view)
@endsection @push('scripts') @endpush