{{ optional($flight->airline)->code.' '.$flight->flight_number }}
@if(filled($flight->route_code) && in_array($flight->route_code, $tour_codes))
route_code.' #'.$flight->route_leg }}"@endif>Tour Flight
@endif
|
@if(Theme::getSetting('flights_codeleg'))
{{ $flight->route_code }} |
{{ $flight->route_leg }} |
@endif
@if(Theme::getSetting('flights_flags'))
@endif
{{ $flight->dpt_airport->full_name ?? $flight->dpt_airport_id }}
|
@if(filled($flight->dpt_time) && filled($flight->arr_time))
@if(Theme::getSetting('flights_localtimes') && filled($flight->dpt_airport) && filled($flight->arr_airport))
{{ Carbon::parse(DT_FormatScheduleTime($flight->dpt_time), 'UTC')->setTimezone($flight->dpt_airport->timezone)->format('H:i') }} |
{{ Carbon::parse(DT_FormatScheduleTime($flight->arr_time), 'UTC')->setTimezone($flight->arr_airport->timezone)->format('H:i') }} |
@else
{{ DT_FormatScheduleTime($flight->dpt_time) }} |
{{ DT_FormatScheduleTime($flight->arr_time) }} |
@endif
@else
{{ DT_ConvertMinutes($flight->flight_time, '%2dh %2dm') }} |
@endif
@if(Theme::getSetting('flights_flags'))
@endif
{{ $flight->arr_airport->full_name ?? $flight->arr_airport_id }}
|
@if((!setting('pilots.only_flights_from_current') || $flight->dpt_airport_id == optional($user->current_airport)->icao) && DT_CheckDays($flight->days))
{{-- Bid --}}
@if(setting('bids.allow_multiple_bids') === true || setting('bids.allow_multiple_bids') === false && count($saved) === 0)
@endif
{{-- Simbrief --}}
@if($simbrief !== false && $flight->simbrief && $flight->simbrief->user_id === $user->id)
@elseif($simbrief !== false && ($simbrief_bids === false || $simbrief_bids === true && isset($saved[$flight->id])))
@php
$aircraft_id = isset($saved[$flight->id]) ? App\Models\Bid::find($saved[$flight->id])->aircraft_id : null;
@endphp
@endif
{{-- vmsAcars Load --}}
@if($acars_plugin && isset($saved[$flight->id]))
@elseif($acars_plugin)
@endif
@if(Theme::getSetting('pireps_manual'))
@endif
@endif
|
@endforeach