@extends('layouts.default.app') @section('title', 'PIREP '.$pirep->ident) @section('content')

{!! $pirep->ident !!}

Status @if($pirep->state === PirepState::PENDING)
{!! PirepState::label(PirepState::PENDING) !!}
@elseif($pirep->state === PirepState::ACCEPTED)
{!! PirepState::label(PirepState::ACCEPTED) !!}
@else
{!! PirepState::label(PirepState::REJECTED) !!}
@endif source: {!! PirepSource::label($pirep->source) !!}
Departure/Arrival {!! $pirep->dpt_airport->icao !!} - {!! $pirep->dpt_airport->name !!} to {!! $pirep->arr_airport->icao !!} - {!! $pirep->arr_airport->name !!}
Flight Time {!! Utils::minutesToTimeString($pirep->flight_time) !!}
Route {!! $pirep->route !!}
Notes {!! $pirep->notes !!}

fields

@foreach($pirep->fields as $field) @endforeach
Name Value Source
{!! $field->name !!} {!! $field->value !!} {!! $field->source !!}
@include('layouts.default.pireps.map') @endsection