From 435fa326633897881e708149114297b2b5afc8bf Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 15 Sep 2020 15:41:53 -0400 Subject: [PATCH] Fix aircraft field name #824 --- resources/views/admin/pireps/fields.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/admin/pireps/fields.blade.php b/resources/views/admin/pireps/fields.blade.php index b268a602..376b683c 100644 --- a/resources/views/admin/pireps/fields.blade.php +++ b/resources/views/admin/pireps/fields.blade.php @@ -94,7 +94,7 @@
{{ Form::label('aircraft_id', 'Aircraft:') }} @if($pirep->read_only) -

{{ $pirep->aircraft->name }}

+

{{ optional($pirep->aircraft)->name }}

{{ Form::hidden('aircraft_id') }} @else {{ Form::select('aircraft_id', $aircraft_list, null, [