| {{ ++$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->company }} |
{{ $department ? $department->name : "" }} |
{{ $position ? $position->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, 1) @endphp
@php $isExpired = isset($ed['isExpired']) ? $ed['isExpired'] : false @endphp
@php $isRequired = isLicenseRequiredForPosition($license, $position) @endphp
{{ debug($stLicense) }}
{!! ($stLicense || $isRequired) ? $ed['status'] : "-" !!} |
{{ $issueDate }} |
{{ $expiryDate }} |
@endforeach
@endforeach
@endforeach