@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 @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 $department = $user->department && isset($user->department[0]) ? $user->department[0] : null; @endphp @php $picture = $user->thumb ? '/storage/users/'.$user->thumb : '/assets/img/default-user-picture.png' @endphp {{-- @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, 1) @endphp @php $isExpired = isset($ed['isExpired']) ? $ed['isExpired'] : false @endphp @php $isRequired = isLicenseRequiredForPosition($license, $position) @endphp {{ debug($stLicense) }} @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")
{{ ++$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->company }} {{ $department ? $department->name : "" }} {{ $position ? $position->name : "" }} {{ $user->staff_number }} {{ $user->email }} {{ $user->doj ? baseDateFormat($user->doj) : "-" }} {{ $user->min_hours }} {{ $user->max_hours }}{!! ($stLicense || $isRequired) ? $ed['status'] : "-" !!} {{ $issueDate }} {{ $expiryDate }}
{!! Form::close() !!}