@extends('app') @section('title', 'Briefing') @section('content')

{{ $simbrief->xml->general->icao_airline }}{{ $simbrief->xml->general->flight_number }} : {{ $simbrief->xml->origin->icao_code }} to {{ $simbrief->xml->destination->icao_code }}

@if (empty($simbrief->pirep_id)) Prefile PIREP @endif
Generate New OFP
 Dispatch Information

Flight

{{ $simbrief->xml->general->icao_airline }}{{ $simbrief->xml->general->flight_number }}

Departure

{{ $simbrief->xml->origin->icao_code }}@if(!empty($simbrief->xml->origin->plan_rwy)) /{{ $simbrief->xml->origin->plan_rwy }} @endif

Arrival

{{ $simbrief->xml->destination->icao_code }}@if(!empty($simbrief->xml->destination->plan_rwy)) /{{ $simbrief->xml->destination->plan_rwy }} @endif


Aircraft

{{ $simbrief->xml->aircraft->name }}

Enroute Time

@minutestotime($simbrief->xml->times->sched_time_enroute / 60)

Cruise Altitude

{{ $simbrief->xml->general->initial_altitude }}


@if (!empty($simbrief->xml->general->dx_rmk))

Dispatcher Remarks

{{ $simbrief->xml->general->dx_rmk }}

@endif @if (!empty($simbrief->xml->general->sys_rmk))

System Remarks

{{ $simbrief->xml->general->sys_rmk }}

@endif
 Flight Plan

{!! str_replace("\n", "
", $simbrief->xml->atc->flightplan_text) !!}

 Weather

Departure METAR

{{ $simbrief->xml->weather->orig_metar }}

Departure TAF

{{ $simbrief->xml->weather->orig_taf }}


Destination METAR

{{ $simbrief->xml->weather->dest_metar }}

Destination TAF

{{ $simbrief->xml->weather->dest_taf }}


Alternate METAR

{{ $simbrief->xml->weather->altn_metar }}

Alternate TAF

{{ $simbrief->xml->weather->altn_taf }}

 Download Flight Plan

 Prefile ATC Flight Plan
@php $str = $simbrief->xml->aircraft->equip ; $wc = stripos($str,"-"); $tr = stripos($str,"/"); $wakecat = substr($str,0,$wc); $equipment = substr($str,$wc+1,$tr-2); $transponder = substr($str,$tr+1); function secstohhmm($seconds) { $seconds = round($seconds); $hhmm = sprintf('%02d%02d', ($seconds/ 3600),($seconds/ 60 % 60)); echo $hhmm ; } @endphp
 OFP
{!! $simbrief->xml->text->plan_html !!}
 Flight Maps
@foreach($simbrief->images->chunk(2) as $images)
@foreach($images as $image)

{{ $image['name'] }} {{ $image['name'] }}

@endforeach
@endforeach
@if (empty($simbrief->pirep_id)) Prefile PIREP @endif
@endsection @section('scripts') @endsection