@php $editEmployeePermission = user()->permission('edit_employees'); @endphp

{{ ucfirst($employee->salutation) . ' ' . ucwords($employee->name) }} @isset($employee->country) @endisset

@if ($editEmployeePermission == 'all' || ($editEmployeePermission == 'added' && $employee->employeeDetail->added_by == user()->id)) @endif

{{ !is_null($employee->employeeDetail) && !is_null($employee->employeeDetail->designation) ? ucwords($employee->employeeDetail->designation->name) : '' }} • {{ isset($employee->employeeDetail) && !is_null($employee->employeeDetail->department) && !is_null($employee->employeeDetail->department) ? ucwords($employee->employeeDetail->department->team_name) : '' }}

@if ($employee->status == 'active')

@lang('app.lastLogin') @if (!is_null($employee->last_login)) {{ $employee->last_login->timezone($global->timezone)->format($global->date_format . ' ' . $global->time_format) }} @else -- @endif

@else

@endif

@lang('modules.employees.gender')

{{-- Custom fields data --}} @if (isset($fields)) @foreach ($fields as $field) @if ($field->type == 'text' || $field->type == 'password' || $field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio') @elseif($field->type == 'checkbox') @elseif($field->type == 'select') @elseif($field->type == 'date') @endif @endforeach @endif
@if (in_array('attendance', user_modules()))
@endif @if (in_array('leaves', user_modules()))
@endif
@if (in_array('tasks', user_modules()))
@endif @if (in_array('tickets', user_modules()))
@endif

@lang('modules.employees.activity')

@forelse($activities as $key=>$activity)

{!! __($activity->activity) !!}

{{ $activity->created_at->format($global->time_format) }}

@empty

@lang('messages.noActivityByThisUser')

@endforelse