@if (is_null($availableFleet ?? null) && isset($fleetWithoutRegistration[$fids['operator']][0]['fleet']))
@php
$options = Arr::pluck($fleetWithoutRegistration[$fids['operator']][0]['fleet'], 'tail_number', 'id');
asort($options);
@endphp
@if (in_array(auth()->id(), [1, 20]))
@endif
Match tail number
Select the available tail number for this registration number.
@elseif (isset($onSchedule[$fids->registration]))
@foreach($onSchedule[$fids->registration]['items'] as $serviceType => $services)
{{ $serviceType }}
@foreach($services as $group => $schedules)
{{ $group }}
@foreach($schedules as $schedule)
{{ $schedule['scheduled']->date }} {{ $schedule['task'] }}
@endforeach
@endforeach
@endforeach
@else
Unable to find fleet relation.
@endif