Add optional() around aircraft info #824

This commit is contained in:
Nabeel Shahzad
2020-09-14 16:17:03 -04:00
parent 2dd3dd5814
commit 78ca06e9dc
3 changed files with 7 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
</td>
<td>
@if($pirep->aircraft)
{{ $pirep->aircraft->name }}
{{ optional($pirep->aircraft)->name }}
@else
-
@endif