Fixing XSS vulnerability by using the proper output tags

This commit is contained in:
Nabeel Shahzad
2018-03-12 17:58:12 -05:00
parent 17f9464208
commit 8076c2d8c1
165 changed files with 1187 additions and 1187 deletions

View File

@@ -3,9 +3,9 @@
@section('content')
<div class="card border-blue-bottom">
<div class="content">
{!! Form::model($flight, ['route' => ['admin.flights.store']]) !!}
{{ Form::model($flight, ['route' => ['admin.flights.store']]) }}
@include('admin.flights.fields')
{!! Form::close() !!}
{{ Form::close() }}
</div>
</div>
@endsection

View File

@@ -4,9 +4,9 @@
@section('content')
<div class="card border-blue-bottom">
<div class="content">
{!! Form::model($flight, ['route' => ['admin.flights.update', $flight->id], 'method' => 'patch']) !!}
{{ Form::model($flight, ['route' => ['admin.flights.update', $flight->id], 'method' => 'patch']) }}
@include('admin.flights.fields')
{!! Form::close() !!}
{{ Form::close() }}
</div>
</div>

View File

@@ -31,28 +31,28 @@
<tbody>
@foreach($flight->fares as $atf)
<tr>
<td class="sorting_1">{!! $atf->name !!}</td>
<td style="text-align: center;">{!! $atf->code !!}</td>
<td class="sorting_1">{{ $atf->name }}</td>
<td style="text-align: center;">{{ $atf->code }}</td>
<td>
<a href="#" data-pk="{!! $atf->id !!}" data-name="capacity">{!! $atf->pivot->capacity !!}</a>
<a href="#" data-pk="{{ $atf->id }}" data-name="capacity">{{ $atf->pivot->capacity }}</a>
</td>
<td>
<a href="#" data-pk="{!! $atf->id !!}" data-name="price">{!! $atf->pivot->price !!}</a>
<a href="#" data-pk="{{ $atf->id }}" data-name="price">{{ $atf->pivot->price }}</a>
</td>
<td>
<a href="#" data-pk="{!! $atf->id !!}" data-name="cost">{!! $atf->pivot->cost !!}</a>
<a href="#" data-pk="{{ $atf->id }}" data-name="cost">{{ $atf->pivot->cost }}</a>
</td>
<td style="text-align: center; width:3%;">
{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/fares',
{{ Form::open(['url' => '/admin/flights/'.$flight->id.'/fares',
'method' => 'delete',
'class' => 'pjax_fares_form'
])
!!}
{!! Form::hidden('fare_id', $atf->id) !!}
{!! Form::button('<i class="fa fa-times"></i>',
}}
{{ Form::hidden('fare_id', $atf->id) }}
{{ Form::button('<i class="fa fa-times"></i>',
['type' => 'submit',
'class' => 'btn btn-danger btn-xs']) !!}
{!! Form::close() !!}
'class' => 'btn btn-danger btn-xs']) }}
{{ Form::close() }}
</td>
</tr>
@endforeach
@@ -62,21 +62,21 @@
<div class="row">
<div class="col-xs-12">
<div class="text-right">
{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/fares',
{{ Form::open(['url' => '/admin/flights/'.$flight->id.'/fares',
'method' => 'post',
'class' => 'pjax_fares_form form-inline'
])
!!}
{!! Form::select('fare_id', $avail_fares, null, [
}}
{{ Form::select('fare_id', $avail_fares, null, [
'placeholder' => 'Select Fare',
'class' => 'ac-fare-dropdown form-control input-lg select2',
])
!!}
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
}}
{{ Form::button('<i class="glyphicon glyphicon-plus"></i> add',
['type' => 'submit',
'class' => 'btn btn-success btn-s']) !!}
{!! Form::close() !!}
'class' => 'btn btn-success btn-s']) }}
{{ Form::close() }}
</div>
</div>
</div>

View File

@@ -1,29 +1,29 @@
<!-- Airline Id Field -->
<div class="row">
<div class="form-group col-sm-3">
{!! Form::label('airline_id', 'Airline:') !!}&nbsp;<span class="required">*</span>
{!! Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) !!}
{{ Form::label('airline_id', 'Airline:') }}&nbsp;<span class="required">*</span>
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
</div>
<!-- Flight Number Field -->
<div class="form-group col-sm-3">
{!! Form::label('flight_number', 'Flight Number:') !!}&nbsp;<span class="required">*</span>
{!! Form::text('flight_number', null, ['class' => 'form-control']) !!}
{{ Form::label('flight_number', 'Flight Number:') }}&nbsp;<span class="required">*</span>
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
</div>
<!-- Route Code Field -->
<div class="form-group col-sm-3">
{!! Form::label('route_code', 'Route Code:') !!}
{!! Form::text('route_code', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}
{{ Form::label('route_code', 'Route Code:') }}
{{ Form::text('route_code', null, ['class'=>'form-control', 'placeholder'=>'optional']) }}
<p class="text-danger">{{ $errors->first('route_code') }}</p>
</div>
<!-- Route Leg Field -->
<div class="form-group col-sm-3">
{!! Form::label('route_leg', 'Route Leg:') !!}
{!! Form::text('route_leg', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}
{{ Form::label('route_leg', 'Route Leg:') }}
{{ Form::text('route_leg', null, ['class'=>'form-control', 'placeholder'=>'optional']) }}
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
</div>
</div>
@@ -31,28 +31,28 @@
<div class="row">
<div class="form-group col-sm-3">
{!! Form::label('level', 'Flight Type:') !!}&nbsp;<span class="required">*</span>
{!! Form::select('flight_type', $flight_types, null, ['class' => 'form-control select2']) !!}
{{ Form::label('level', 'Flight Type:') }}&nbsp;<span class="required">*</span>
{{ Form::select('flight_type', $flight_types, null, ['class' => 'form-control select2']) }}
<p class="text-danger">{{ $errors->first('flight_type') }}</p>
</div>
<div class="form-group col-sm-3">
{!! Form::label('dpt_airport_id', 'Departure Airport:') !!}&nbsp;<span class="required">*</span>
{!! Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
{{ Form::label('dpt_airport_id', 'Departure Airport:') }}&nbsp;<span class="required">*</span>
{{ Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) }}
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
</div>
<!-- Arr Airport Id Field -->
<div class="form-group col-sm-3">
{!! Form::label('arr_airport_id', 'Arrival Airport:') !!}&nbsp;<span class="required">*</span>
{!! Form::select('arr_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
{{ Form::label('arr_airport_id', 'Arrival Airport:') }}&nbsp;<span class="required">*</span>
{{ Form::select('arr_airport_id', $airports, null , ['class' => 'form-control select2']) }}
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
</div>
<!-- Alt Airport Id Field -->
<div class="form-group col-sm-3">
{!! Form::label('alt_airport_id', 'Alt Airport:') !!}
{!! Form::select('alt_airport_id', $alt_airports, null , ['class' => 'form-control select2']) !!}
{{ Form::label('alt_airport_id', 'Alt Airport:') }}
{{ Form::select('alt_airport_id', $alt_airports, null , ['class' => 'form-control select2']) }}
<p class="text-danger">{{ $errors->first('alt_airport_id') }}</p>
</div>
</div>
@@ -61,44 +61,44 @@
<div class="row">
<div class="form-group col-sm-2">
{!! Form::label('dpt_time', 'Departure Time:') !!}
{!! Form::text('dpt_time', null, ['class' => 'form-control']) !!}
{{ Form::label('dpt_time', 'Departure Time:') }}
{{ Form::text('dpt_time', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('dpt_time') }}</p>
</div>
<div class="form-group col-sm-2">
{!! Form::label('arr_time', 'Arrival Time:') !!}
{!! Form::text('arr_time', null, ['class' => 'form-control']) !!}
{{ Form::label('arr_time', 'Arrival Time:') }}
{{ Form::text('arr_time', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('arr_time') }}</p>
</div>
<div class="form-group col-sm-4">
{!! Form::label('flight_time', 'Flight Time (hours & minutes):') !!}
{{ Form::label('flight_time', 'Flight Time (hours & minutes):') }}
<div style="float: left">
{!! Form::number('hours', null, [
{{ Form::number('hours', null, [
'class' => 'form-control',
'placeholder' => 'hours'
]) !!}
]) }}
</div>
<div style="float: left">
{!! Form::number('minutes', null, [
{{ Form::number('minutes', null, [
'class' => 'form-control',
'placeholder' => 'minutes'
]) !!}
]) }}
</div>
<p class="text-danger">{{ $errors->first('hours') }}</p>
<p class="text-danger">{{ $errors->first('minutes') }}</p>
</div>
<div class="form-group col-sm-2">
{!! Form::label('level', 'Flight Level:') !!}
{!! Form::text('level', null, ['class' => 'form-control']) !!}
{{ Form::label('level', 'Flight Level:') }}
{{ Form::text('level', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('level') }}</p>
</div>
<div class="form-group col-sm-2">
{!! Form::label('distance', 'Distance:') !!} <span class="small">in nautical miles</span>
{!! Form::text('distance', null, ['class' => 'form-control']) !!}
{{ Form::label('distance', 'Distance:') }} <span class="small">in nautical miles</span>
{{ Form::text('distance', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('distance') }}</p>
</div>
</div>
@@ -106,15 +106,15 @@
<div class="row">
<!-- Route Field -->
<div class="form-group col-sm-6">
{!! Form::label('route', 'Route:') !!}
{!! Form::textarea('route', null, ['class' => 'form-control']) !!}
{{ Form::label('route', 'Route:') }}
{{ Form::textarea('route', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('route') }}</p>
</div>
<!-- Notes Field -->
<div class="form-group col-sm-6">
{!! Form::label('notes', 'Notes:') !!}
{!! Form::textarea('notes', null, ['class' => 'form-control']) !!}
{{ Form::label('notes', 'Notes:') }}
{{ Form::textarea('notes', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('notes') }}</p>
</div>
</div>
@@ -122,18 +122,18 @@
<div class="row">
<!-- Active Field -->
<div class="col-sm-4">
{!! Form::label('active', 'Active:') !!}
{!! Form::hidden('active', 0, false) !!}
{{ Form::label('active', 'Active:') }}
{{ Form::hidden('active', 0, false) }}
@if($flight!==null)
{!! Form::checkbox('active', $flight->active, ['class' => 'form-control icheck']) !!}
{{ Form::checkbox('active', $flight->active, ['class' => 'form-control icheck']) }}
@else
{!! Form::checkbox('active', null, ['class' => 'form-control icheck']) !!}
{{ Form::checkbox('active', null, ['class' => 'form-control icheck']) }}
@endif
</div>
<div class="col-8">
<div class="text-right">
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
<a href="{!! route('admin.flights.index') !!}" class="btn btn-default">Cancel</a>
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
<a href="{{ route('admin.flights.index') }}" class="btn btn-default">Cancel</a>
</div>
</div>
</div>

View File

@@ -11,23 +11,23 @@
<tbody>
@foreach($flight->fields as $field)
<tr>
<td>{!! $field->name !!}</td>
<td>{{ $field->name }}</td>
<td>
<a class="inline" href="#" data-pk="{!! $field->id !!}" data-name="{!! $field->name !!}">{!! $field->value !!}</a>
<a class="inline" href="#" data-pk="{{ $field->id }}" data-name="{{ $field->name }}">{{ $field->value }}</a>
</td>
<td style="width: 10%; text-align: center;" class="form-inline">
{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/fields',
{{ Form::open(['url' => '/admin/flights/'.$flight->id.'/fields',
'method' => 'delete',
'class' => 'pjax_form pjax_flight_fields'
]) !!}
{!! Form::hidden('field_id', $field->id) !!}
]) }}
{{ Form::hidden('field_id', $field->id) }}
<div class='btn-group'>
{!! Form::button('<i class="fa fa-times"></i>',
{{ Form::button('<i class="fa fa-times"></i>',
['type' => 'submit',
'class' => 'btn btn-danger btn-xs'])
!!}
}}
</div>
{!! Form::close() !!}
{{ Form::close() }}
</td>
</tr>
@endforeach
@@ -37,25 +37,25 @@
<div class="row">
<div class="col-md-12">
<div class="text-right">
{!! Form::open([
{{ Form::open([
'url' => '/admin/flights/'.$flight->id.'/fields',
'method' => 'post',
'class' => 'pjax_form form-inline pjax_flight_fields'
])
!!}
}}
{!! Form::label('name', 'Name:') !!}
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{{ Form::label('name', 'Name:') }}
{{ Form::text('name', null, ['class' => 'form-control']) }}
&nbsp;&nbsp;
{!! Form::label('value', 'Value:') !!}
{!! Form::text('value', null, ['class' => 'form-control']) !!}
{{ Form::label('value', 'Value:') }}
{{ Form::text('value', null, ['class' => 'form-control']) }}
&nbsp;&nbsp;
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
{{ Form::button('<i class="glyphicon glyphicon-plus"></i> add',
['type' => 'submit',
'class' => 'btn btn-success btn-s']) !!}
'class' => 'btn btn-success btn-s']) }}
<p class="text-danger">{{ $errors->first('name') }}</p>
<p class="text-danger">{{ $errors->first('value') }}</p>
{!! Form::close() !!}
{{ Form::close() }}
</div>
</div>
</div>

View File

@@ -3,7 +3,7 @@
@section('title', 'Flights')
@section('actions')
<li>
<a href="{!! route('admin.flights.create') !!}">
<a href="{{ route('admin.flights.create') }}">
<i class="ti-plus"></i>
Add New</a>
</li>

View File

@@ -6,7 +6,7 @@ function setEditable() {
type: 'text',
mode: 'inline',
emptytext: 'inherited',
url: '{!! url('/admin/flights/'.$flight->id.'/fares') !!}',
url: '{{ url('/admin/flights/'.$flight->id.'/fares') }}',
title: 'Enter override value',
ajaxOptions: {'type': 'put'},
params: function (params) {
@@ -27,7 +27,7 @@ $(document).ready(function () {
type: 'text',
mode: 'inline',
emptytext: '0',
url: '/admin/flights/{!! $flight->id !!}/fields',
url: '/admin/flights/{{ $flight->id }}/fields',
ajaxOptions: {'type': 'put'},
params: function (params) {
return {

View File

@@ -2,21 +2,21 @@
<div class="row">
<div class="col-sm-12">
<div class="form-group">
{!! Form::open(['route' => 'admin.flights.index', 'method' => 'GET', 'class'=>'form-inline pull-right']) !!}
{{ Form::open(['route' => 'admin.flights.index', 'method' => 'GET', 'class'=>'form-inline pull-right']) }}
{!! Form::label('flight_number', 'Flight Number:') !!}
{!! Form::text('flight_number', null, ['class' => 'form-control']) !!}
{{ Form::label('flight_number', 'Flight Number:') }}
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
&nbsp;
{!! Form::label('dep_icao', 'Departure:') !!}
{!! Form::select('dep_icao', $airports, null , ['class' => 'form-control']) !!}
{{ Form::label('dep_icao', 'Departure:') }}
{{ Form::select('dep_icao', $airports, null , ['class' => 'form-control']) }}
&nbsp;
{!! Form::label('arr_icao', 'Arrival:') !!}
{!! Form::select('arr_icao', $airports, null , ['class' => 'form-control']) !!}
{{ Form::label('arr_icao', 'Arrival:') }}
{{ Form::select('arr_icao', $airports, null , ['class' => 'form-control']) }}
&nbsp;
{!! Form::submit('find', ['class' => 'btn btn-primary']) !!}
{{ Form::submit('find', ['class' => 'btn btn-primary']) }}
&nbsp;
<a href="{!! route('admin.flights.index') !!}">clear</a>
{!! Form::close() !!}
<a href="{{ route('admin.flights.index') }}">clear</a>
{{ Form::close() }}
</div>
</div>
</div>

View File

@@ -2,10 +2,10 @@
@section('content')
<section class="content-header">
<h1 class="pull-left">{!! $flight->airline->code !!}{!! $flight->flight_number !!}</h1>
<h1 class="pull-left">{{ $flight->airline->code }}{{ $flight->flight_number }}</h1>
<h1 class="pull-right">
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px"
href="{!! route('admin.flights.edit', $flight->id) !!}">Edit</a>
href="{{ route('admin.flights.edit', $flight->id) }}">Edit</a>
</h1>
</section>
<section class="content">

View File

@@ -2,10 +2,10 @@
<div class="box box-solid">
<div class="box-header with-border">
{{--<i class="fa fa-text-width"></i>--}}
<h3 class="box-title">{!! Form::label('dpt_airport_id', 'Dep ICAO') !!}</h3>
<h3 class="box-title">{{ Form::label('dpt_airport_id', 'Dep ICAO') }}</h3>
</div>
<div class="box-body"><p class="lead">
{!! $flight->dpt_airport->icao !!} - {!! $flight->dpt_airport->name !!}
{{ $flight->dpt_airport->icao }} - {{ $flight->dpt_airport->name }}
</p></div>
</div>
</div>
@@ -14,10 +14,10 @@
<div class="box box-solid">
<div class="box-header with-border">
{{--<i class="fa fa-text-width"></i>--}}
<h3 class="box-title">{!! Form::label('arr_airport_id', 'Arrival ICAO') !!}</h3>
<h3 class="box-title">{{ Form::label('arr_airport_id', 'Arrival ICAO') }}</h3>
</div>
<div class="box-body"><p class="lead">
{!! $flight->arr_airport->icao !!} - {!! $flight->arr_airport->name !!}
{{ $flight->arr_airport->icao }} - {{ $flight->arr_airport->name }}
</p>
</div>
</div>
@@ -29,52 +29,52 @@
<div class="box-body">
<!-- Route Code Field -->
<div class="form-group">
{!! Form::label('route_code', 'Route Code:') !!}
{!! $flight->route_code !!}
{{ Form::label('route_code', 'Route Code:') }}
{{ $flight->route_code }}
</div>
<!-- Route Leg Field -->
<div class="form-group">
{!! Form::label('route_leg', 'Route Leg:') !!}
{!! $flight->route_leg !!}
{{ Form::label('route_leg', 'Route Leg:') }}
{{ $flight->route_leg }}
</div>
<!-- Alt Airport Id Field -->
@if($flight->alt_airport_id)
<div class="form-group">
{!! Form::label('alt_airport_id', 'Alt Airport Id:') !!}
<p>{!! $flight->alt_airport->icao !!}</p>
{{ Form::label('alt_airport_id', 'Alt Airport Id:') }}
<p>{{ $flight->alt_airport->icao }}</p>
</div>
@endif
<!-- Route Field -->
<div class="form-group">
{!! Form::label('route', 'Route:') !!}
<p>{!! $flight->route !!}</p>
{{ Form::label('route', 'Route:') }}
<p>{{ $flight->route }}</p>
</div>
<!-- Dpt Time Field -->
<div class="form-group">
{!! Form::label('dpt_time', 'Departure Time:') !!}
{!! $flight->dpt_time !!}
{{ Form::label('dpt_time', 'Departure Time:') }}
{{ $flight->dpt_time }}
</div>
<!-- Arr Time Field -->
<div class="form-group">
{!! Form::label('arr_time', 'Arrival Time:') !!}
{!! $flight->arr_time !!}
{{ Form::label('arr_time', 'Arrival Time:') }}
{{ $flight->arr_time }}
</div>
<!-- Notes Field -->
<div class="form-group">
{!! Form::label('notes', 'Notes:') !!}
<p>{!! $flight->notes !!}</p>
{{ Form::label('notes', 'Notes:') }}
<p>{{ $flight->notes }}</p>
</div>
<!-- Active Field -->
<div class="form-group">
{!! Form::label('active', 'Active:') !!}
<p>{!! $flight->active !!}</p>
{{ Form::label('active', 'Active:') }}
<p>{{ $flight->active }}</p>
</div>
</div>
</div>

View File

@@ -14,20 +14,20 @@
<tbody>
@foreach($flight->subfleets as $sf)
<tr>
<td>{!! $sf->type !!}</td>
<td>{!! $sf->name !!}</td>
<td>{{ $sf->type }}</td>
<td>{{ $sf->name }}</td>
<td style="width: 10%; text-align: center;" class="form-inline">
{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/subfleets',
{{ Form::open(['url' => '/admin/flights/'.$flight->id.'/subfleets',
'method' => 'delete',
'class' => 'pjax_subfleet_form']) !!}
{!! Form::hidden('subfleet_id', $sf->id) !!}
'class' => 'pjax_subfleet_form']) }}
{{ Form::hidden('subfleet_id', $sf->id) }}
<div class='btn-group'>
{!! Form::button('<i class="fa fa-times"></i>',
{{ Form::button('<i class="fa fa-times"></i>',
['type' => 'submit',
'class' => 'btn btn-danger btn-xs'])
!!}
}}
</div>
{!! Form::close() !!}
{{ Form::close() }}
</td>
</tr>
@endforeach
@@ -37,21 +37,21 @@
<div class="row">
<div class="col-xs-12">
<div class="text-right">
{!! Form::open([
{{ Form::open([
'url' => '/admin/flights/'.$flight->id.'/subfleets',
'method' => 'post',
'class' => 'pjax_form form-inline pjax_subfleet_form'
])
!!}
{!! Form::select('subfleet_id', $avail_subfleets, null, [
}}
{{ Form::select('subfleet_id', $avail_subfleets, null, [
'placeholder' => 'Select Subfleet',
'class' => 'select2 form-control input-lg',
])
!!}&nbsp;
{!! Form::button('<i class="fas fa-plus"></i> add',
}}&nbsp;
{{ Form::button('<i class="fas fa-plus"></i> add',
['type' => 'submit',
'class' => 'btn btn-success btn-s']) !!}
{!! Form::close() !!}
'class' => 'btn btn-success btn-s']) }}
{{ Form::close() }}
</div>
</div>
</div>

View File

@@ -15,24 +15,24 @@
@foreach($flights as $flight)
<tr>
<td>
<a href="{!! route('admin.flights.edit', [$flight->id]) !!}">
{!! $flight->airline->code !!}{!! $flight->flight_number !!}
<a href="{{ route('admin.flights.edit', [$flight->id]) }}">
{{ $flight->airline->code }}{{ $flight->flight_number }}
@if($flight->route_code)
(C: {!! $flight->route_code !!} L: {!! $flight->route_leg !!})
(C: {{ $flight->route_code }} L: {{ $flight->route_leg }})
@endif
</a>
</td>
<td>{!! $flight->dpt_airport->icao !!}</td>
<td>{{ $flight->dpt_airport->icao }}</td>
<td>
{!! $flight->arr_airport->icao !!}
{{ $flight->arr_airport->icao }}
@if($flight->alt_airport)
(Alt: {!! $flight->alt_airport->icao !!})
(Alt: {{ $flight->alt_airport->icao }})
@endif
</td>
{{--<td>{!! $flight->route !!}</td>--}}
<td>{!! $flight->dpt_time !!}</td>
<td>{!! $flight->arr_time !!}</td>
<td>{!! $flight->notes !!}</td>
{{--<td>{{ $flight->route }}</td>--}}
<td>{{ $flight->dpt_time }}</td>
<td>{{ $flight->arr_time }}</td>
<td>{{ $flight->notes }}</td>
<td style="text-align: center;">
@if($flight->active == 1)
<span class="label label-success">Active</span>
@@ -41,10 +41,10 @@
@endif
</td>
<td style="text-align: right;">
{!! Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) !!}
<a href="{!! route('admin.flights.edit', [$flight->id]) !!}" class='btn btn-sm btn-success btn-icon'><i class="fas fa-pencil-alt"></i></a>
{!! Form::button('<i class="fa fa-times"></i>', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) !!}
{!! Form::close() !!}
{{ Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) }}
<a href="{{ route('admin.flights.edit', [$flight->id]) }}" class='btn btn-sm btn-success btn-icon'><i class="fas fa-pencil-alt"></i></a>
{{ Form::button('<i class="fa fa-times"></i>', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) }}
{{ Form::close() }}
</td>
</tr>
@endforeach