2017-06-18 06:25:36 +08:00
|
|
|
@extends('admin.app')
|
|
|
|
|
|
|
|
@section('content')
|
2017-06-20 03:29:10 +08:00
|
|
|
<section class="content-header">
|
|
|
|
<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>
|
|
|
|
</h1>
|
|
|
|
</section>
|
|
|
|
<section class="content">
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="row">
|
|
|
|
@include('admin.flights.show_fields')
|
|
|
|
</div>
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
2017-06-24 06:33:18 +08:00
|
|
|
<h3>assigned subfleets</h3>
|
2017-06-20 03:29:10 +08:00
|
|
|
<div class="box-body">
|
2017-06-24 06:33:18 +08:00
|
|
|
@include('admin.flights.subfleets')
|
2017-06-20 03:29:10 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-20 03:29:10 +08:00
|
|
|
</section>
|
|
|
|
@endsection
|
|
|
|
@section('scripts')
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(".ac-flight-dropdown").select2();
|
|
|
|
|
2017-06-24 06:33:18 +08:00
|
|
|
$(document).on('submit', 'form.flight_subfleet', function (event) {
|
2017-06-20 03:29:10 +08:00
|
|
|
event.preventDefault();
|
2017-06-24 06:33:18 +08:00
|
|
|
$.pjax.submit(event, '#subfleet_flight_wrapper', {push: false});
|
2017-06-20 03:29:10 +08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-06-18 06:25:36 +08:00
|
|
|
@endsection
|