Update pireps/show.blade (#1080)
Added score and landing rate to right sidebar, sorted the pirep logs in asc order to make it easy to read.
This commit is contained in:
parent
e45bd66388
commit
0152ff6045
@ -131,28 +131,33 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('pireps.filedroute')</td>
|
<td>@lang('pireps.filedroute')</td>
|
||||||
<td>
|
<td>{{ $pirep->route }}</td>
|
||||||
{{ $pirep->route }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ trans_choice('common.note', 2) }}</td>
|
<td>{{ trans_choice('common.note', 2) }}</td>
|
||||||
<td>
|
<td>{{ $pirep->notes }}</td>
|
||||||
{{ $pirep->notes }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@if($pirep->score && $pirep->landing_rate)
|
||||||
|
<tr>
|
||||||
|
<td>Score</td>
|
||||||
|
<td>{{ $pirep->score }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Landing Rate</td>
|
||||||
|
<td>{{ number_format($pirep->landing_rate) }}</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('pireps.filedon')</td>
|
<td>@lang('pireps.filedon')</td>
|
||||||
<td>
|
<td>{{ show_datetime($pirep->created_at) }}</td>
|
||||||
{{ show_datetime($pirep->created_at) }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@if(count($pirep->fields) > 0 || count($pirep->fares) > 0)
|
@if(count($pirep->fields) > 0)
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@ -214,7 +219,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<table class="table table-hover table-condensed" id="users-table">
|
<table class="table table-hover table-condensed" id="users-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($pirep->acars_logs as $log)
|
@foreach($pirep->acars_logs->sortBy('created_at') as $log)
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="true">{{ show_datetime($log->created_at) }}</td>
|
<td nowrap="true">{{ show_datetime($log->created_at) }}</td>
|
||||||
<td>{{ $log->log }}</td>
|
<td>{{ $log->log }}</td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user