#21 basic listings/model configs
This commit is contained in:
@@ -1,26 +1,30 @@
|
||||
<table class="table table-responsive" id="pireps-table">
|
||||
<thead>
|
||||
<th>User Id</th>
|
||||
<th>Flight Id</th>
|
||||
<th>Aircraft Id</th>
|
||||
<th>Pilot</th>
|
||||
<th>Flight</th>
|
||||
<th>Aircraft</th>
|
||||
<th>Flight Time</th>
|
||||
<th>Level</th>
|
||||
<th>Route</th>
|
||||
<th>Notes</th>
|
||||
<th>Raw Data</th>
|
||||
<th colspan="3">Action</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($pireps as $pirep)
|
||||
<tr>
|
||||
<td>{!! $pirep->user_id !!}</td>
|
||||
<td>{!! $pirep->flight_id !!}</td>
|
||||
<td>{!! $pirep->aircraft_id !!}</td>
|
||||
<td>{!! $pirep->flight_time !!}</td>
|
||||
<td>{!! $pirep->user->name !!}</td>
|
||||
<td>
|
||||
@if($pirep->flight)
|
||||
<a href="{!! route('admin.flights.show', ['id' => $pirep->flight_id]) !!}">
|
||||
{!! $pirep->flight->airline->code !!}{!! $pirep->flight->flight_number !!}
|
||||
</a>
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td>{!! $pirep->aircraft->registration !!} ({!! $pirep->aircraft->name !!})</td>
|
||||
<td>{!! Utils::secondsToTime($pirep->flight_time) !!}</td>
|
||||
<td>{!! $pirep->level !!}</td>
|
||||
<td>{!! $pirep->route !!}</td>
|
||||
<td>{!! $pirep->notes !!}</td>
|
||||
<td>{!! $pirep->raw_data !!}</td>
|
||||
<td>
|
||||
{!! Form::open(['route' => ['admin.pireps.destroy', $pirep->id], 'method' => 'delete']) !!}
|
||||
<div class='btn-group'>
|
||||
@@ -31,6 +35,12 @@
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@if($pirep->notes)
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="8"><strong>Notes:</strong> {!! $pirep->notes !!}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user