Update Latest Pireps Widget (#945)

Added flight number, used aircraft registration (and icao type) instead of name
This commit is contained in:
B.Fatih KOZ
2020-12-04 19:04:47 +03:00
committed by GitHub
parent 6b5cf38224
commit 8ecc096bf7

View File

@@ -2,14 +2,14 @@
@foreach($pireps as $p)
<tr>
<td style="padding-right: 10px;">
<span class="title">{{ $p->airline->code }}</span>
<span class="title">{{ $p->airline->code }} {{ $p->flight_number }}</span>
</td>
<td>
<a href="{{route('frontend.airports.show', [$p->dpt_airport_id])}}">{{$p->dpt_airport_id}}</a>
&nbsp;-&nbsp;
<a href="{{route('frontend.airports.show', [$p->arr_airport_id])}}">{{$p->arr_airport_id}}</a>&nbsp;
@if(!empty($p->aircraft))
{{ optional($p->aircraft)->name }}
{{ optional($p->aircraft)->registration }} ({{ $p->aircraft->icao }})
@endif
</td>
</tr>