@extends('app') @section('title', trans_choice('common.flight', 1).' '.$flight->ident) @include('theme_helpers') @php $units = isset($units) ? $units : DT_GetUnits(); $DBasic = isset($DBasic) ? $DBasic : check_module('DisposableBasic'); $DSpecial = isset($DSpecial) ? $DSpecial : check_module('DisposableSpecial'); @endphp @section('content')
{{ optional($flight->airline)->code.' '.$flight->flight_number.' | ' }} @if(Theme::getSetting('flights_flags')) @endif {{ optional($flight->dpt_airport)->location.' > '.optional($flight->arr_airport)->location }} @if(Theme::getSetting('flights_flags')) @endif @if(filled($flight->callsign)) {{ optional($flight->airline)->icao.' '.$flight->callsign }} @endif
@if(filled($flight->dpt_time)) @if(Theme::getSetting('flights_localtimes') && filled($flight->dpt_airport)) {{ Carbon::parse(DT_FormatScheduleTime($flight->dpt_time), 'UTC')->setTimezone($flight->dpt_airport->timezone)->format('H:i') }} @else {{ DT_FormatScheduleTime($flight->dpt_time) }} @endif @endif
{{ decode_days($flight->days) }}
@if(filled($flight->arr_time)) @if(Theme::getSetting('flights_localtimes') && filled($flight->arr_airport)) {{ Carbon::parse(DT_FormatScheduleTime($flight->arr_time), 'UTC')->setTimezone($flight->arr_airport->timezone)->format('H:i') }} @else {{ DT_FormatScheduleTime($flight->arr_time) }} @endif @endif
@if(filled($flight->start_date) || filled($flight->end_date) || filled($flight->alt_airport_id))
{{-- Blank --}}
@if($flight->start_date) {{ $flight->start_date->format('l, d.M.Y') }} @endif @if($flight->end_date) {{ $flight->end_date->format('l, d.M.Y') }} @endif
@if(filled($flight->alt_airport_id)) {{ optional($flight->alt_airport)->full_name }} @endif
@endif @if($flight->subfleets->count() > 0) @endif
@if(filled($flight->notes)) @endif
@lang('disposable.map')
@include('flights.map')
@if(filled($flight->route)) @endif
{{-- Inline navigation for WX Widgets --}} {{-- Navigation content --}}
@widget('Weather', ['icao' => $flight->dpt_airport_id]) @if($DBasic) @widget('DBasic::SunriseSunset', ['location' => $flight->dpt_airport_id]) @endif @if($DSpecial && Theme::getSetting('flight_notams')) @widget('DSpecial::Notams', ['airport' => $flight->dpt_airport_id]) @endif
@widget('Weather', ['icao' => $flight->arr_airport_id]) @if($DBasic) @widget('DBasic::SunriseSunset', ['location' => $flight->arr_airport_id]) @endif @if($DSpecial && Theme::getSetting('flight_notams')) @widget('DSpecial::Notams', ['airport' => $flight->arr_airport_id]) @endif
@if(filled($flight->alt_airport_id))
@widget('Weather', ['icao' => $flight->alt_airport_id]) @if($DBasic) @widget('DBasic::SunriseSunset', ['location' => $flight->alt_airport_id]) @endif @if($DSpecial && Theme::getSetting('flight_notams')) @widget('DSpecial::Notams', ['airport' => $flight->alt_airport_id]) @endif
@endif
{{-- Generic Buttons --}}
@if($DBasic && Theme::getSetting('flight_jumpseat'))
@widget('DBasic::JumpSeat', ['dest' => $flight->dpt_airport_id])
@endif @if(Theme::getSetting('flight_bid') && DT_CheckDays($flight->days)) @if(!setting('pilots.only_flights_from_current') || $flight->dpt_airport_id === Auth::user()->curr_airport_id) {{-- !!! IMPORTANT NOTE !!! Don't remove the "save_flight" class, It will break the AJAX to save/delete --}} {{isset($bid) ? __('disposable.bid_rem'): __('disposable.bid_add')}} @endif @endif @if(Theme::getSetting('flight_simbrief') && filled(setting('simbrief.api_key'))) @if(!setting('simbrief.only_bids') || setting('simbrief.only_bids') && isset($bid)) @if($flight->simbrief && $flight->simbrief->user_id == Auth::user()->id) @lang('disposable.sb_view') @else @lang('disposable.sb_generate') @endif @endif @endif @if($acars_plugin && isset($bid)) @lang('disposable.load_acars') @elseif($acars_plugin && DT_CheckDays($flight->days)) @lang('disposable.load_acars') @endif @if(Theme::getSetting('pireps_manual')) @lang('disposable.new_pirep') @endif
@endsection {{-- DO NOT REMOVE THIS SCRIPT IT IS USED FOR BIDDING FROM FLIGHT DETAILS PAGE --}} @if(Theme::getSetting('flight_bid')) @section('scripts') @parent @endsection @endif