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