| No |
@lang("content.picture") |
@lang("content.first_name") |
@lang("content.last_name") |
@if ($isSuperAdmin)
User Status |
@endif
@lang("content.station") |
@lang("content.company") |
@lang("content.department") |
@lang("content.position") |
@lang("content.staff_no") |
@lang("content.email") |
@lang("content.doj") |
@lang("content.min_hrs") |
@lang("content.max_hrs") |
@foreach($licenses as $license)
{{ $license->name }} |
@endforeach
@endif
| {{ ++$j }} |
id/edit?s=".rand(100, 999)) }}"> |
id}/edit?s=".rand(100, 999)) }}">{{ $user->first_name }} |
id}/edit?s=".rand(100, 999)) }}">{{ $user->last_name }} |
@if ($isSuperAdmin)
{{ $user->deleted_at && $user->deleted_at != EMPTY_DATETIME ? "REMOVED" : ($user->resigned_at && $user->resigned_at != EMPTY_DATETIME ? "Resigned" : "") }} |
@endif
{{ $user->location && $user->location->airport ? ($user->location->airport->iata ?? $user->location->airport->icao) : '' }} |
{{ $user->company }} |
{{ $user->department && isset($user->department[0]) ? $user->department[0]->name : "" }} |
{{ $user->position && isset($user->position[0]) ? $user->position[0]->name : "" }} |
{{ $user->staff_number }} |
{{ $user->email }} |
{{ $user->doj ? baseDateFormat($user->doj) : "-" }} |
{{ $user->min_hours }} |
{{ $user->max_hours }} |
@foreach($licenses as $license)
@php $stLicense = isset($staffLicense[$license->id]) ? $staffLicense[$license->id] : null @endphp
@php $issueDate = isset($stLicense[0]) ? $stLicense[0] : null @endphp
@php $expiryDate = isset($stLicense[1]) ? $stLicense[1] : null @endphp
@php $ed = Expiration_Date($expiryDate, $issueDate) @endphp
@php $isExpired = isset($ed['isExpired']) ? $ed['isExpired'] : false @endphp
@php $isRequired = isLicenseRequiredForPosition($license, $position) @endphp
{{ $issueDate ? date('d-M-Y', strtotime($issueDate)) : 'Empty' }}
|
{{ $expiryDate ? date('d-M-Y', strtotime($expiryDate)) : 'Empty' }}
|
@if ($stLicense || $isRequired)
{!! isset($ed['status']) ? $ed['status'] : "-" !!}
@else
NOT REQUIRED
|
@endif
@endforeach
@endforeach
@endforeach