芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/resources/views/employees/show.blade.php
@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'); @endphp @php $showFullProfile = false; if ($viewPermission == 'all' || ($viewPermission == 'added' && $employee->employeeDetail->added_by == user()->id) || ($viewPermission == 'owned' && $employee->employeeDetail->user_id == user()->id) || ($viewPermission == 'both' && ($employee->employeeDetail->user_id == user()->id || $employee->employeeDetail->added_by == user()->id)) ) { $showFullProfile = true; } @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()) && ($viewLeavePermission == 'all' || ($viewLeavePermission == 'owned' || $viewLeavePermission == 'both') && $employee->id == user()->id ))
@endif @if ($viewEmployeeTimelogs == 'all' && in_array('timelogs', user_modules()))
@endif @if ($viewDocumentPermission != 'none')
@endif @if ($showFullProfile && ($manageEmergencyContact == 'all' || $employee->id == user()->id))
@endif @if ($viewTickets == 'all' && in_array('tickets', user_modules()))
@endif @if ($showFullProfile && !in_array('client', user_roles()))
@endif @if ($manageShiftPermission == 'all' && in_array('attendance', user_modules()))
@endif @if ($manageRolePermissionSetting == 'all')
@endif @if ($showFullProfile)
@endif @if($viewImmigrationPermission == 'all' || (in_array($viewImmigrationPermission, ['added', 'owned', 'both']) && user()->id == $employee->id))
@endif
@endsection @section('content')
@include($view)
@endsection @push('scripts') @endpush