@php $deleted = isset($deleted) && $deleted @endphp @php $terminated = isset($terminated) && $terminated @endphp

@lang("content.list")

@if ($terminated) @elseif($deleted) @endif @if(isset($staffList[$airport])) @php $j = 0 @endphp @foreach($staffList[$airport] as $k => $each) @php $picture = $each->thumb ? '/storage/users/'.$each->thumb : '/assets/img/default-user-picture.png' @endphp @if ($terminated) @elseif($deleted) @else @endif @endforeach @endif
No @lang("content.picture") @lang("content.first_name") @lang("content.last_name") @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")@lang("content.date_of_termination") @lang("content.reason_of_termination")@lang("content.date_of_deletion") @lang("content.deleted_by")@lang("content.actions")
{{ ++$j }} id/edit?s=".rand(100, 999)) }}" > id}/edit?s=".rand(100, 999)) }}">{{ $each->first_name }} id}/edit?s=".rand(100, 999)) }}">{{ $each->last_name }} {{ $each->location && $each->location->airport ? $each->location->airport->iata : '' }} {{ $each->company }} {{ $each->department && isset($each->department[0]) ? $each->department[0]->name : "" }} {{ $each->position && isset($each->position[0]) ? $each->position[0]->name : "" }} {{ $each->staff_number }} {{ $each->email }} @if ($sprAdm)
id}") }}" target="_blank" class="btn btn-success">Login as User @endif
{{ $each->doj }} {{ $each->min_hours }} {{ $each->max_hours }}{{ $each->resigned_date }} {{ $each->termination_reason }} {{ date("Y-m-d", strtotime($each->deleted_at)) }} {{ getUserName($each->updatedBy) }}