@extends('app') @section('title', trans_choice('common.flight', 1).' '.$flight->ident) @section('content')

{{ $flight->ident }}

@if($flight->alt_airport_id) @endif @if(filled($flight->route)) @endif @if(filled($flight->callsign)) @endif @if(filled($flight->notes)) @endif
@lang('common.departure') {{ optional($flight->dpt_airport)->name ?? $flight->dpt_airport_id }} ({{$flight->dpt_airport_id}}) @ {{ $flight->dpt_time }}
@lang('common.arrival') {{ optional($flight->arr_airport)->name ?? $flight->arr_airport_id }} ({{$flight->arr_airport_id }}) @ {{ $flight->arr_time }}
@lang('flights.alternateairport') {{ optional($flight->alt_airport)->name ?? $flight->alt_airport_id }} ({{$flight->alt_airport_id}})
@lang('flights.route') {{ $flight->route }}
@lang('flights.callsign') {{ $flight->airline->icao }} {{ $flight->callsign }}
{{ trans_choice('common.note', 2) }} {{ $flight->notes }}
@include('flights.map')
{{$flight->dpt_airport_id}} @lang('common.metar')
{{ Widget::Weather([ 'icao' => $flight->dpt_airport_id, ]) }}
{{$flight->arr_airport_id}} @lang('common.metar')
{{ Widget::Weather([ 'icao' => $flight->arr_airport_id, ]) }} @if ($flight->alt_airport_id)
{{$flight->alt_airport_id}} @lang('common.metar')
{{ Widget::Weather([ 'icao' => $flight->alt_airport_id, ]) }} @endif
@endsection