set country on the airline, in admin and installer #191
This commit is contained in:
@@ -29,9 +29,15 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- Active Field -->
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('country', 'Country:') !!} <br/>
|
||||
{!! Form::select('country', $countries, null, ['class' => 'form-control select2' ]); !!}
|
||||
<p class="text-danger">{{ $errors->first('country') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('active', 'Active:') !!}
|
||||
<br />
|
||||
<label class="checkbox-inline">
|
||||
{!! Form::hidden('active', 0, false) !!}
|
||||
{!! Form::checkbox('active', 1, null) !!}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<table class="table table-hover table-responsive" id="airlines-table">
|
||||
<thead>
|
||||
<th>Code</th>
|
||||
<th>IATA</th>
|
||||
<th>Name</th>
|
||||
<th class="text-center">Active</th>
|
||||
<th></th>
|
||||
@@ -9,8 +8,13 @@
|
||||
<tbody>
|
||||
@foreach($airlines as $al)
|
||||
<tr>
|
||||
<td>{!! $al->code !!}</td>
|
||||
<td>{!! $al->iata !!}</td>
|
||||
<td>
|
||||
@if(filled($al->country))
|
||||
<span class="flag-icon flag-icon-{!! $al->country !!}"></span>
|
||||
|
||||
@endif
|
||||
<a href="{!! route('admin.airlines.edit', [$al->id]) !!}">{!! $al->code !!}</a>
|
||||
</td>
|
||||
<td>{!! $al->name !!}</td>
|
||||
<td class="text-center">
|
||||
@if($al->active == 1)
|
||||
|
||||
Reference in New Issue
Block a user