Use optional() around the airport fields (#537)
* Use optional() around the airport fields * Add null-coalesce around full_name
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
{{$flight->ident}}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $flight->dpt_airport->icao }}</td>
|
||||
<td>{{ $flight->dpt_airport_id }}</td>
|
||||
<td>
|
||||
{{ $flight->arr_airport->icao }}
|
||||
{{ $flight->arr_airport_id }}
|
||||
@if($flight->alt_airport)
|
||||
(Alt: {{ $flight->alt_airport->icao }})
|
||||
(Alt: {{ $flight->alt_airport_id }})
|
||||
@endif
|
||||
</td>
|
||||
{{--<td>{{ $flight->route }}</td>--}}
|
||||
|
||||
Reference in New Issue
Block a user