2017-06-18 06:25:36 +08:00
|
|
|
@extends('admin.app')
|
|
|
|
|
|
|
|
@section('content')
|
2020-02-02 02:05:56 +08:00
|
|
|
<section class="content-header">
|
2018-03-13 06:58:12 +08:00
|
|
|
<h1 class="pull-left">{{ $flight->airline->code }}{{ $flight->flight_number }}</h1>
|
2017-06-20 03:29:10 +08:00
|
|
|
<h1 class="pull-right">
|
2020-02-02 02:05:56 +08:00
|
|
|
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px"
|
|
|
|
href="{{ route('admin.flights.edit', $flight->id) }}">Edit</a>
|
2017-06-20 03:29:10 +08:00
|
|
|
</h1>
|
2020-02-02 02:05:56 +08:00
|
|
|
</section>
|
|
|
|
<section class="content">
|
2017-06-20 03:29:10 +08:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="row">
|
2020-02-02 02:05:56 +08:00
|
|
|
@include('admin.flights.show_fields')
|
2017-06-20 03:29:10 +08:00
|
|
|
</div>
|
|
|
|
<div class="box box-primary">
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<h3>assigned subfleets</h3>
|
|
|
|
<div class="box-body">
|
|
|
|
@include('admin.flights.subfleets')
|
2017-06-18 06:25:36 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</section>
|
2017-06-20 03:29:10 +08:00
|
|
|
@endsection
|
|
|
|
@section('scripts')
|
2020-02-02 02:05:56 +08:00
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(".select2_dropdown").select2();
|
2017-06-20 03:29:10 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
$(document).on('submit', 'form.pjax_form', function (event) {
|
2017-07-02 10:06:55 +08:00
|
|
|
event.preventDefault();
|
|
|
|
$.pjax.submit(event, '#subfleet_flight_wrapper', {push: false});
|
2020-02-02 02:05:56 +08:00
|
|
|
});
|
2017-07-02 10:06:55 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
$(document).on('pjax:complete', function () {
|
2017-07-02 10:06:55 +08:00
|
|
|
$(".select2_dropdown").select2();
|
2020-02-02 02:05:56 +08:00
|
|
|
});
|
2017-07-02 10:06:55 +08:00
|
|
|
});
|
2020-02-02 02:05:56 +08:00
|
|
|
</script>
|
2017-06-18 06:25:36 +08:00
|
|
|
@endsection
|