@extends('layouts.app') @push('datatable-styles') @include('sections.datatable_css') @endpush @php $viewEmployeeTasks = user()->permission('view_employee_tasks'); $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'); @endphp @section('filter-section')
@if ($viewEmployeeProjects == 'all' && in_array('projects', user_modules())) @endif @if ($viewEmployeeTasks == 'all' && in_array('tasks', user_modules())) @endif @if (in_array('leaves', user_modules())) @endif @if ($viewEmployeeTimelogs == 'all') @endif @if ($manageEmergencyContact == 'all' || ($employee->id == user()->id)) @endif @if ($manageRolePermissionSetting == 'all') @endif
@endsection @push('styles') @endpush @section('content')
@include($view)
@endsection @push('scripts') @endpush