2018-02-04 08:18:09 +08:00
|
|
|
@extends("layouts.${SKIN_NAME}.app")
|
2017-12-20 10:19:36 +08:00
|
|
|
@section('title', 'PIREP '.$pirep->ident)
|
2018-02-04 08:18:09 +08:00
|
|
|
|
2017-12-20 05:19:06 +08:00
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
2017-12-20 07:30:30 +08:00
|
|
|
<div class="col-md-12">
|
2017-12-20 23:06:56 +08:00
|
|
|
<h2 class="description">{!! $pirep->ident !!}</h2>
|
2017-12-20 05:19:06 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2018-02-25 05:38:25 +08:00
|
|
|
<table class="table table-hover">
|
2017-12-20 07:30:30 +08:00
|
|
|
<tr>
|
|
|
|
<td>Status</td>
|
|
|
|
<td>
|
2017-12-21 03:27:57 +08:00
|
|
|
@if($pirep->state === PirepState::PENDING)
|
2018-01-02 00:49:26 +08:00
|
|
|
<div class="badge badge-warning">
|
2017-12-20 10:19:36 +08:00
|
|
|
@elseif($pirep->state === PirepState::ACCEPTED)
|
2018-01-02 00:49:26 +08:00
|
|
|
<div class="badge badge-success">
|
|
|
|
@elseif($pirep->state === PirepState::REJECTED)
|
|
|
|
<div class="badge badge-danger">
|
2017-12-20 07:30:30 +08:00
|
|
|
@else
|
2018-01-02 00:49:26 +08:00
|
|
|
<div class="badge badge-info">
|
2017-12-20 07:30:30 +08:00
|
|
|
@endif
|
2018-02-25 05:38:25 +08:00
|
|
|
|
2018-01-02 00:49:26 +08:00
|
|
|
{!! PirepState::label($pirep->state) !!}</div>
|
2017-12-21 03:27:57 +08:00
|
|
|
|
|
|
|
<span class="description" style="padding-left: 20px;">
|
|
|
|
source: {!! PirepSource::label($pirep->source) !!}
|
|
|
|
</span>
|
2017-12-20 07:30:30 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-12-20 05:19:06 +08:00
|
|
|
<tr>
|
|
|
|
<td>Departure/Arrival</td>
|
|
|
|
<td>
|
|
|
|
{!! $pirep->dpt_airport->icao !!} - {!! $pirep->dpt_airport->name !!}
|
|
|
|
<span class="description">to</span>
|
|
|
|
{!! $pirep->arr_airport->icao !!} - {!! $pirep->arr_airport->name !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Flight Time</td>
|
|
|
|
<td>
|
|
|
|
{!! Utils::minutesToTimeString($pirep->flight_time) !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-12-24 01:58:17 +08:00
|
|
|
<td>Filed Route</td>
|
2017-12-20 05:19:06 +08:00
|
|
|
<td>
|
|
|
|
{!! $pirep->route !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Notes</td>
|
|
|
|
<td>
|
|
|
|
{!! $pirep->notes !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2017-12-24 01:58:17 +08:00
|
|
|
<tr>
|
|
|
|
<td>Filed On</td>
|
|
|
|
<td>
|
|
|
|
{!! show_datetime($pirep->created_at) !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2017-12-20 05:19:06 +08:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-02-25 05:38:25 +08:00
|
|
|
{{--
|
|
|
|
Show the fields that have been entered
|
|
|
|
--}}
|
|
|
|
|
2017-12-27 05:26:12 +08:00
|
|
|
@if(count($pirep->fields) > 0)
|
2018-02-04 08:18:09 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3 class="description">fields</h3>
|
2018-02-25 05:38:25 +08:00
|
|
|
<table class="table table-hover">
|
2018-02-04 08:18:09 +08:00
|
|
|
<thead>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($pirep->fields as $field)
|
|
|
|
<tr>
|
|
|
|
<td>{!! $field->name !!}</td>
|
|
|
|
<td>{!! $field->value !!}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-12-20 05:19:06 +08:00
|
|
|
</div>
|
2017-12-27 05:26:12 +08:00
|
|
|
@endif
|
2017-12-20 05:19:06 +08:00
|
|
|
|
2018-02-25 05:38:25 +08:00
|
|
|
{{--
|
|
|
|
Show the fares that have been entered
|
|
|
|
--}}
|
|
|
|
|
|
|
|
@if(count($pirep->fares) > 0)
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3 class="description">fares</h3>
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<th>Class</th>
|
|
|
|
<th>Count</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($pirep->fares as $fare)
|
|
|
|
<tr>
|
|
|
|
<td>{!! $fare->fare->name !!} ({!! $fare->fare->code !!})</td>
|
|
|
|
<td>{!! $fare->count !!}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2018-02-04 08:18:09 +08:00
|
|
|
@include("layouts.${SKIN_NAME}.pireps.map")
|
2018-02-22 05:24:46 +08:00
|
|
|
|
|
|
|
@if(count($pirep->acars_logs) > 0)
|
|
|
|
<br /><br />
|
|
|
|
<div class="row clear">
|
|
|
|
<div class="col-12">
|
|
|
|
<h3 class="description">flight log</h3>
|
|
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
|
|
<table class="table table-hover" id="users-table">
|
|
|
|
<tbody>
|
|
|
|
@foreach($pirep->acars_logs as $log)
|
|
|
|
<tr>
|
|
|
|
<td nowrap="true">{!! show_datetime($log->created_at) !!}</td>
|
|
|
|
<td>{!! $log->log !!}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-12-20 05:19:06 +08:00
|
|
|
@endsection
|
2017-12-20 07:30:30 +08:00
|
|
|
|