@extends('app') @section('title', trans_choice('common.pirep', 1).' '.$pirep->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'); $AuthCheck = Auth::check(); $pirep->loadMissing('acars'); @endphp @section('content')
{{-- LEFT --}}
@include('pireps.show_card')
{{-- Inner Navigation --}}
{{-- Navigation Contents --}}
@php $tab_height = '62vh'; @endphp
@include('pireps.map', ['map_height' => $tab_height])
@if($AuthCheck && $pirep->acars && $pirep->acars->count() > 0)
@include('pireps.chart')
@endif @if($AuthCheck && $pirep->fields && $pirep->fields->count() > 0 && $pirep->fields->count() <= 150)
@foreach($pirep->fields as $field) @endforeach
{{ $field->name }} {!! DT_PirepField($field, $units) !!}
@endif @if($AuthCheck && $pirep->acars_logs && $pirep->acars_logs->count() > 0 && $pirep->acars_logs->count() <= 250)
@foreach($pirep->acars_logs->sortBy('created_at') as $log) @endforeach
{{ $log->created_at->format('d.M.Y H:i') }} {{ $log->log }}
@endif @if($AuthCheck && $pirep->comments->count() > 0)
@foreach($pirep->comments as $comment) @endforeach
{{ $comment->created_at->format('d.M.Y H:i') }} {{ $comment->comment }}
@endif
{{-- RIGHT --}}
@include('pireps.show_details') @include('pireps.show_finance')
{{-- SimBrief OFP Modal --}} @if(!empty($pirep->simbrief)) @endif @endsection