phpvms/resources/views/admin/pireps/show_fields.blade.php

85 lines
2.8 KiB
PHP
Raw Normal View History

2018-01-01 22:58:47 +08:00
<div class="row">
2018-01-04 10:39:24 +08:00
<div class="form-group col-sm-4">
2018-01-01 22:58:47 +08:00
<div class="box box-solid">
<div class="box-header with-border">
{{--<i class="fa fa-text-width"></i>--}}
<h3 class="box-title">{{ Form::label('dpt_airport_id', 'Dep ICAO') }}</h3>
2018-01-01 22:58:47 +08:00
</div>
<div class="box-body"><p class="lead">
{{ $pirep->dpt_airport->icao }} - {{ $pirep->dpt_airport->name }}
2018-01-01 22:58:47 +08:00
</p></div>
2017-07-14 11:09:38 +08:00
</div>
</div>
2017-06-29 08:54:05 +08:00
2018-01-04 10:39:24 +08:00
<div class="form-group col-sm-5">
2018-01-01 22:58:47 +08:00
<div class="box box-solid">
<div class="box-header with-border">
{{--<i class="fa fa-text-width"></i>--}}
<h3 class="box-title">{{ Form::label('arr_airport_id', 'Arrival ICAO') }}</h3>
2017-07-14 11:09:38 +08:00
</div>
2018-01-01 22:58:47 +08:00
<div class="box-body"><p class="lead">
{{ $pirep->arr_airport->icao }} - {{ $pirep->arr_airport->name }}
2017-07-14 11:09:38 +08:00
</p>
</div>
</div>
</div>
2018-01-04 10:39:24 +08:00
<div class="form-group col-sm-3">
<div id="pirep_{{ $pirep->id }}_actionbar" class="pull-right">
2018-01-04 10:39:24 +08:00
@include('admin.pireps.actions')
</div>
</div>
2017-07-14 11:09:38 +08:00
</div>
2018-01-01 22:58:47 +08:00
<div class="row">
<div class="col-md-12">
2018-01-01 23:02:20 +08:00
<table class="table table-hover">
2018-01-01 22:58:47 +08:00
<tr>
<td>Pilot</td>
<td><a href="{{ route('admin.users.show', ['id' => $pirep->pilot->id]) }}"
target="_blank">{{ $pirep->user->name }}</a>
2018-01-01 22:58:47 +08:00
</td>
</tr>
<tr>
<td>Flight</td>
<td>
<a href="{{ route('admin.flights.show', [$pirep->flight_id]) }}"
2018-01-01 23:02:20 +08:00
target="_blank">
{{ $pirep->ident }}
2018-01-01 23:02:20 +08:00
</a>
2018-01-01 22:58:47 +08:00
</td>
</tr>
<tr>
<td>Aircraft</td>
<td>{{ $pirep->aircraft->subfleet->name }}, {{ $pirep->aircraft->name }}
({{ $pirep->aircraft->registration }})
2018-01-01 22:58:47 +08:00
</td>
</tr>
<tr>
<td>Flight Time</td>
<td>{{ Utils::minutesToTimeString($pirep->flight_time) }}</td>
2018-01-01 22:58:47 +08:00
</tr>
<tr>
<td>Flight Level</td>
<td>{{ $pirep->level }}</td>
2018-01-01 22:58:47 +08:00
</tr>
<tr>
<td>Route</td>
<td>{{ $pirep->route }}</td>
2018-01-01 22:58:47 +08:00
</tr>
<tr>
<td>Notes</td>
<td>{{ $pirep->notes }}</td>
2018-01-01 22:58:47 +08:00
</tr>
<tr>
<td>Filed On</td>
<td>{{ show_datetime($pirep->created_at) }}</td>
2018-01-01 22:58:47 +08:00
</tr>
<tr>
<td>Updated On</td>
<td>{{ show_datetime($pirep->updated_at) }}</td>
2018-01-01 22:58:47 +08:00
</tr>
</table>
</div>
</div>