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:
B.Fatih KOZ 2021-03-17 23:43:36 +03:00 committed by GitHub
parent e45bd66388
commit 0152ff6045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,28 +131,33 @@
<tr>
<td>@lang('pireps.filedroute')</td>
<td>
{{ $pirep->route }}
</td>
<td>{{ $pirep->route }}</td>
</tr>
<tr>
<td>{{ trans_choice('common.note', 2) }}</td>
<td>
{{ $pirep->notes }}
</td>
<td>{{ $pirep->notes }}</td>
</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>
<td>@lang('pireps.filedon')</td>
<td>
{{ show_datetime($pirep->created_at) }}
</td>
<td>{{ show_datetime($pirep->created_at) }}</td>
</tr>
</table>
@if(count($pirep->fields) > 0 || count($pirep->fares) > 0)
@if(count($pirep->fields) > 0)
<div class="separator"></div>
@endif
@ -214,7 +219,7 @@
<div class="col-12">
<table class="table table-hover table-condensed" id="users-table">
<tbody>
@foreach($pirep->acars_logs as $log)
@foreach($pirep->acars_logs->sortBy('created_at') as $log)
<tr>
<td nowrap="true">{{ show_datetime($log->created_at) }}</td>
<td>{{ $log->log }}</td>