@if (optional($flight->airline)->logo)

@else
{{ $flight->airline->name }}:
@endif
@if ($flight->airline->iata)
{{ $flight->airline->icao }}{{ $flight->flight_number }} |
@endif
{{ $flight->ident }}
@if (filled($flight->callsign) && !setting('simbrief.callsign', true))
{{ '| ' . $flight->atc }}
@endif
{{ $flight->flight_type }} ({{ \App\Models\Enums\FlightType::label($flight->flight_type) }})
{{ $flight->dpt_airport->name }}
{{ $flight->dpt_time }}
{{ $flight->arr_airport->name }}
{{ $flight->arr_time }}
@if ($flight->flight_time)
@minutestotime($flight->flight_time)
@endif
{{ $flight->flight_time && $flight->distance ? '/' : '' }}{{ $flight->distance ? $flight->distance . 'nm' : '' }}
@if (count($flight->subfleets) !== 0)
@php
$arr = [];
foreach ($flight->subfleets as $sf) {
$arr[] = "{$sf->type}";
}
$display =
count($arr) > 2
? implode(', ', array_slice($arr, 0, 2)) . '...'
: implode(', ', $arr);
$allSubfleets = implode(', ', $arr);
@endphp
{{ $display }}
@else
Any Subfleet
@endif