Update Latest Pireps Widget (#945)
Added flight number, used aircraft registration (and icao type) instead of name
This commit is contained in:
@@ -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>
|
||||
-
|
||||
<a href="{{route('frontend.airports.show', [$p->arr_airport_id])}}">{{$p->arr_airport_id}}</a>
|
||||
@if(!empty($p->aircraft))
|
||||
{{ optional($p->aircraft)->name }}
|
||||
{{ optional($p->aircraft)->registration }} ({{ $p->aircraft->icao }})
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user