@lang("content.list")

{!! Form::open(['method' => 'POST', 'class' => 'form-inline']) !!} @php $width = count($licenses) * 200 + 400 @endphp @if ($isSuperAdmin) @endif @foreach($licenses as $license) @endforeach @foreach($licenses as $license) @endforeach @php $j = 0 @endphp @foreach($staffData as $ap => $data) @foreach($data as $id => $staffLicense) @php $user = $staffLicense["user"] @endphp @php $position = $user && $user->position && isset($user->position[0]) ? $user->position[0] : null; @endphp @php $picture = $user->thumb ? '/storage/users/'.$user->thumb : '/assets/img/default-user-picture.png' @endphp @if ($j > 0 && $j % 8 == 0) @if ($isSuperAdmin) @endif @foreach($licenses as $license) @endforeach @endif @if ($isSuperAdmin) @endif @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 @endif @endforeach @endforeach @endforeach
No @lang("content.picture") @lang("content.first_name") @lang("content.last_name")User Status@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"){{ $license->name }}
@lang("content.doi") @lang("content.dex") @lang("content.status")
No @lang("content.picture") @lang("content.first_name") @lang("content.last_name")User Status@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"){{ $license->name }}
{{ ++$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 }}{{ $user->deleted_at && $user->deleted_at != EMPTY_DATETIME ? "REMOVED" : ($user->resigned_at && $user->resigned_at != EMPTY_DATETIME ? "Resigned" : "") }}{{ $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 }} {{ $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
{!! Form::close() !!}