@extends("layouts.${SKIN_NAME}.app") @section('title', 'PIREP '.$pirep->ident) @section('content')

{!! $pirep->ident !!}

Status @if($pirep->state === PirepState::PENDING)
@elseif($pirep->state === PirepState::ACCEPTED)
@elseif($pirep->state === PirepState::REJECTED)
@else
@endif {!! PirepState::label($pirep->state) !!}
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) !!}
Filed Route {!! $pirep->route !!}
Notes {!! $pirep->notes !!}
Filed On {!! show_datetime($pirep->created_at) !!}
@if(count($pirep->fields) > 0)

fields

@foreach($pirep->fields as $field) @endforeach
Name Value
{!! $field->name !!} {!! $field->value !!}
@endif @include("layouts.${SKIN_NAME}.pireps.map") @endsection