Use optional() around the airport fields (#537)

* Use optional() around the airport fields

* Add null-coalesce around full_name
This commit is contained in:
Nabeel S
2020-02-03 12:23:58 -05:00
committed by GitHub
parent 5e4a003a92
commit 94cfbd4748
6 changed files with 39 additions and 39 deletions

View File

@@ -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>--}}