@extends('app') @section('title', trans_choice('common.flight', 1) . ' ' . $flight->ident) @section('content')
@if (optional($flight->airline)->logo) {{ $flight->airline->name }} @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) { $tps = explode('-', $sf->type); $type = last($tps); $arr[] = "{$sf->type}"; } @endphp {{ implode(', ', $arr) }} @else Any Subfleet @endif
@include('flights.map')
@if (filled($flight->notes))
{{ __('common.notes') }}
{!! $flight->notes !!}
@endif

{{ __('flights.weather') }}

{{ Widget::Weather(['icao' => $flight->dpt_airport_id]) }}
{{ Widget::Weather(['icao' => $flight->arr_airport_id]) }}
@if ($flight->alt_airport_id)
{{ Widget::Weather(['icao' => $flight->alt_airport_id]) }}
@endif
@endsection