From 85615300e0b7cdc953c39775d74db10f55870741 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 11 Jul 2018 08:35:26 -0500 Subject: [PATCH] Wrap ifs --- resources/views/admin/pireps/fields.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/pireps/fields.blade.php b/resources/views/admin/pireps/fields.blade.php index dd1b67ca..2e733648 100644 --- a/resources/views/admin/pireps/fields.blade.php +++ b/resources/views/admin/pireps/fields.blade.php @@ -108,7 +108,8 @@
{{ Form::label('dpt_airport_id', 'Departure Airport:') }} @if($pirep->read_only) -

{{ $pirep->dpt_airport->id }} - {{ $pirep->dpt_airport->name }}

+

{{ $pirep->dpt_airport_id }}@if($pirep->dpt_airport->name) - {{ $pirep->dpt_airport->name }}@endif +

{{ Form::hidden('dpt_airport_id') }} @else {{ Form::select('dpt_airport_id', $airports_list, null, [ @@ -121,7 +122,8 @@
{{ Form::label('arr_airport_id', 'Arrival Airport:') }} @if($pirep->read_only) -

{{ $pirep->arr_airport->id }} - {{ $pirep->arr_airport->name }}

+

{{ $pirep->arr_airport->id }}@if($pirep->arr_airport->name) - {{ $pirep->arr_airport->name }}@endif +

{{ Form::hidden('arr_airport_id') }} @else {{ Form::select('arr_airport_id', $airports_list, null, ['class' => 'form-control select2']) }}