Skip to content

Commit

Permalink
Update pireps/show.blade (#1080)
Browse files Browse the repository at this point in the history
Added score and landing rate to right sidebar, sorted the pirep logs in asc order to make it easy to read.
  • Loading branch information
FatihKoz committed Mar 17, 2021
1 parent e45bd66 commit 0152ff6
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions resources/views/layouts/default/pireps/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,28 +131,33 @@ class="btn btn-outline-info">View SimBrief</a>

<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

Expand Down Expand Up @@ -214,7 +219,7 @@ class="btn btn-outline-info">View SimBrief</a>
<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>
Expand Down

0 comments on commit 0152ff6

Please sign in to comment.