Approved Staff List

{!! Form::open([ 'url' => url("airline/{$airline->id}/staff"), 'class' => 'form-inline', 'method' => 'POST', 'id' => 'formOPS']) !!}
{!! Form::hidden("airline_id", $airline->id) !!}
{!! Form::close() !!}
@php $rest = 160 @endphp @php $eachPerc = 60 @endphp @php $width = $rest + (count($services) * $eachPerc) @endphp @php $j = 0 @endphp @foreach($services as $id => $service) @endforeach @php $i = 0 @endphp @foreach($airlineServicesByStaff as $staffID => $servicesIDs) @php $staff = isset($usersListByIDs[$staffID]) ? $usersListByIDs[$staffID] : null @endphp @php $picture = $staff->thumb ? '/storage/users/'.$staff->thumb : '/assets/img/default-user-picture.png' @endphp @php $base = $staff->location && $staff->location->airport ? (getAirportIataIcao($staff->location->airport) ?? "-") : "-" @endphp {{-- @php $staffServicesIds = $staff->service ? $staff->service->pluck("service_id")->all() : [] @endphp--}} @foreach($services as $service) @endforeach @php $j++ @endphp @endforeach
No @lang("content.picture") @lang("content.first_name") @lang("content.last_name") @lang("content.station"){{ $service->abbr }}
{{ ++$i }} {{-- --}} {{ $staff->first_name }} {{ $staff->last_name }} {{ $base }} @if (in_array($service->id, $servicesIDs)) @endif