Fix active/inactive check on flight page

This commit is contained in:
Nabeel Shahzad 2018-04-24 11:16:16 -05:00
parent 203ee72052
commit 9502dd9835

View File

@ -225,11 +225,7 @@
<div class="col-sm-4">
{{ Form::label('active', 'Active:') }}
{{ Form::hidden('active', 0, false) }}
@if($flight!==null)
{{ Form::checkbox('active', $flight->active, ['class' => 'form-control icheck']) }}
@else
{{ Form::checkbox('active', null, ['class' => 'form-control icheck']) }}
@endif
{{ Form::checkbox('active', null, ['class' => 'form-control icheck']) }}
</div>
<div class="col-8">
<div class="text-right">