@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 @php $editEmployeePermission = user()->permission('edit_employees'); $viewAppreciationPermission = user()->permission('view_appreciation'); @endphp
{{ !is_null($employee->employeeDetail) && !is_null($employee->employeeDetail->designation) ? $employee->employeeDetail->designation->name : '' }} • {{ isset($employee->employeeDetail) && !is_null($employee->employeeDetail->department) && !is_null($employee->employeeDetail->department) ? $employee->employeeDetail->department->team_name : '' }} | {{__('app.role')}}: {{$employee->roles()->withoutGlobalScopes()->latest()->first()->display_name}}
@lang('app.lastLogin') @if (!is_null($employee->last_login)) {{ $employee->last_login->timezone(company()->timezone)->translatedFormat(company()->date_format . ' ' . company()->time_format) }} @else -- @endif
@if ($employee->status != 'active')
@lang('modules.employees.gender')
@lang('modules.employees.reportingTo')
@if ($employee->employeeDetail->reportingTo)