Fixing XSS vulnerability by using the proper output tags
This commit is contained in:
parent
17f9464208
commit
8076c2d8c1
@ -14,10 +14,10 @@
|
|||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"/>
|
href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"/>
|
||||||
<!-- CSS Files -->
|
<!-- CSS Files -->
|
||||||
<link href="{!! public_asset('/assets/frontend/css/bootstrap.min.css') !!}" rel="stylesheet"/>
|
<link href="{{ public_asset('/assets/frontend/css/bootstrap.min.css') }}" rel="stylesheet"/>
|
||||||
<link href="{!! public_asset('/assets/frontend/css/now-ui-kit.css') !!}" rel="stylesheet"/>
|
<link href="{{ public_asset('/assets/frontend/css/now-ui-kit.css') }}" rel="stylesheet"/>
|
||||||
<link href="{!! public_asset('/assets/frontend/css/styles.css') !!}" rel="stylesheet"/>
|
<link href="{{ public_asset('/assets/frontend/css/styles.css') }}" rel="stylesheet"/>
|
||||||
<link href="{!! public_asset('/assets/system/css/installer.css') !!}" rel="stylesheet"/>
|
<link href="{{ public_asset('/assets/system/css/installer.css') }}" rel="stylesheet"/>
|
||||||
{{--<link href="/assets/frontend/css/installer.css" rel="stylesheet"/>--}}
|
{{--<link href="/assets/frontend/css/installer.css" rel="stylesheet"/>--}}
|
||||||
|
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
@ -42,8 +42,8 @@
|
|||||||
<span class="navbar-toggler-bar bar3"></span>
|
<span class="navbar-toggler-bar bar3"></span>
|
||||||
</button>
|
</button>
|
||||||
<p class="navbar-brand text-white" data-placement="bottom" target="_blank">
|
<p class="navbar-brand text-white" data-placement="bottom" target="_blank">
|
||||||
<a href="{!! url('/') !!}">
|
<a href="{{ url('/') }}">
|
||||||
<img src="{!! public_asset('/assets/frontend/img/logo_blue_bg.svg') !!}" width="135px" style=""/>
|
<img src="{{ public_asset('/assets/frontend/img/logo_blue_bg.svg') }}" width="135px" style=""/>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
{{--<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>--}}
|
{{--<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>--}}
|
||||||
|
|
||||||
<script src="{!! public_asset('/assets/system/js/installer-vendor.js') !!}" type="text/javascript"></script>
|
<script src="{{ public_asset('/assets/system/js/installer-vendor.js') }}" type="text/javascript"></script>
|
||||||
{{--<script src="/assets/frontend/js/core/bootstrap.min.js" type="text/javascript"></script>--}}
|
{{--<script src="/assets/frontend/js/core/bootstrap.min.js" type="text/javascript"></script>--}}
|
||||||
{{--<script src="/assets/frontend/js/now-ui-kit.js" type="text/javascript"></script>--}}
|
{{--<script src="/assets/frontend/js/now-ui-kit.js" type="text/javascript"></script>--}}
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<h2>phpVMS already installed!</h2>
|
<h2>phpVMS already installed!</h2>
|
||||||
<p>phpVMS has already been installed! Please remove the modules/Installer folder.</p>
|
<p>phpVMS has already been installed! Please remove the modules/Installer folder.</p>
|
||||||
{!! Form::open(['url' => '/', 'method' => 'get']) !!}
|
{{ Form::open(['url' => '/', 'method' => 'get']) }}
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Go to your site >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Go to your site >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@if($errors->has($field))
|
@if($errors->has($field))
|
||||||
<p class="text-danger" style="margin-top: 10px;">{!! $errors->first($field); !!}</p>
|
<p class="text-danger" style="margin-top: 10px;">{{ $errors->first($field) }}</p>
|
||||||
{{--<div class="alert alert-danger" role="alert" style="margin-top: 10px;">
|
{{--<div class="alert alert-danger" role="alert" style="margin-top: 10px;">
|
||||||
{!! $errors->first($field); !!}
|
{{ $errors->first($field) }}
|
||||||
</div>--}}
|
</div>--}}
|
||||||
@endif
|
@endif
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<div class="alert alert-{!! $status !!}" role="alert">
|
<div class="alert alert-{{ $status }}" role="alert">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="alert-icon">
|
<div class="alert-icon">
|
||||||
<i class="now-ui-icons ui-1_bell-53"></i>
|
<i class="now-ui-icons ui-1_bell-53"></i>
|
||||||
</div>
|
</div>
|
||||||
{!! $message !!}
|
{{ $message }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="alert-icon">
|
<div class="alert-icon">
|
||||||
<i class="now-ui-icons ui-2_like"></i>
|
<i class="now-ui-icons ui-2_like"></i>
|
||||||
</div>
|
</div>
|
||||||
{!! $message['message'] !!}
|
{{ $message['message'] }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<h2>phpvms installer</h2>
|
<h2>phpvms installer</h2>
|
||||||
<p>Press continue to start</p>
|
<p>Press continue to start</p>
|
||||||
{!! Form::open(['route' => 'installer.step1', 'method' => 'post']) !!}
|
{{ Form::open(['route' => 'installer.step1', 'method' => 'post']) }}
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Start >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Start >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div style="align-content: center;">
|
<div style="align-content: center;">
|
||||||
{!! Form::open(['route' => 'installer.step2', 'method' => 'GET']) !!}
|
{{ Form::open(['route' => 'installer.step2', 'method' => 'GET']) }}
|
||||||
<table class="table" width="25%">
|
<table class="table" width="25%">
|
||||||
<tr><td colspan="2"><h4>php version</h4></td></tr>
|
<tr><td colspan="2"><h4>php version</h4></td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>PHP Version: {!! $php['version'] !!}</td>
|
<td>PHP Version: {{ $php['version'] }}</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
@if($php['passed'] === true)
|
@if($php['passed'] === true)
|
||||||
<span class="badge badge-success">OK!</span>
|
<span class="badge badge-success">OK!</span>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
<tr><td colspan="2"><h4>php extensions</h4></td></tr>
|
<tr><td colspan="2"><h4>php extensions</h4></td></tr>
|
||||||
@foreach($extensions as $ext)
|
@foreach($extensions as $ext)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $ext['ext'] !!}</td>
|
<td>{{ $ext['ext'] }}</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
@if($ext['passed'] === true)
|
@if($ext['passed'] === true)
|
||||||
<span class="badge badge-success">OK!</span>
|
<span class="badge badge-success">OK!</span>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
<tr><td colspan="2"><h4>directory permissions</h4></td></tr>
|
<tr><td colspan="2"><h4>directory permissions</h4></td></tr>
|
||||||
@foreach($directories as $dir)
|
@foreach($directories as $dir)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $dir['dir'] !!}</td>
|
<td>{{ $dir['dir'] }}</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
@if($dir['passed'] === true)
|
@if($dir['passed'] === true)
|
||||||
<span class="badge badge-success">OK!</span>
|
<span class="badge badge-success">OK!</span>
|
||||||
@ -47,12 +47,12 @@
|
|||||||
</table>
|
</table>
|
||||||
@if($passed === true)
|
@if($passed === true)
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Database Setup >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Database Setup >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
{{--{!! $php_version !!}
|
{{--{{ $php_version }}
|
||||||
{!! $extensions !!}
|
{{ $extensions }}
|
||||||
{!! $passed !!}--}}
|
{{ $passed }}--}}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
@section('title', 'Database Setup')
|
@section('title', 'Database Setup')
|
||||||
@section('content')
|
@section('content')
|
||||||
<div style="align-content: center;">
|
<div style="align-content: center;">
|
||||||
{!! Form::open(['route' => 'installer.envsetup', 'method' => 'POST']) !!}
|
{{ Form::open(['route' => 'installer.envsetup', 'method' => 'POST']) }}
|
||||||
<table class="table" width="25%">
|
<table class="table" width="25%">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<td>Site Name</td>
|
<td>Site Name</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'site_name', 'phpvms', ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'site_name', 'phpvms', ['class' => 'form-control']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<td>Site URL</td>
|
<td>Site URL</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'site_url', Request::root(), ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'site_url', Request::root(), ['class' => 'form-control']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<td><p>Select Database Type</p></td>
|
<td><p>Select Database Type</p></td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::select('db_conn', $db_types, null, ['class' => 'form-control', 'id' => 'db_conn']) !!}
|
{{ Form::select('db_conn', $db_types, null, ['class' => 'form-control', 'id' => 'db_conn']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<td>Database Host</td>
|
<td>Database Host</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'db_host', '127.0.0.1', ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'db_host', '127.0.0.1', ['class' => 'form-control']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -54,7 +54,7 @@
|
|||||||
<td>Database Port</td>
|
<td>Database Port</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'db_port', '3306', ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'db_port', '3306', ['class' => 'form-control']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -63,7 +63,7 @@
|
|||||||
<td>Database Name</td>
|
<td>Database Name</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'db_name', 'phpvms', ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'db_name', 'phpvms', ['class' => 'form-control']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -72,7 +72,7 @@
|
|||||||
<td>Database User</td>
|
<td>Database User</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'db_user', null, ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'db_user', null, ['class' => 'form-control']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -81,14 +81,14 @@
|
|||||||
<td>Database Password</td>
|
<td>Database Password</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'db_pass', null, ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'db_pass', null, ['class' => 'form-control']) }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" style="text-align: right;">
|
<td colspan="2" style="text-align: right;">
|
||||||
{!! Form::submit('Test Database Credentials', ['class' => 'btn btn-info', 'id' => 'dbtest_button']) !!}
|
{{ Form::submit('Test Database Credentials', ['class' => 'btn btn-info', 'id' => 'dbtest_button']) }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -101,7 +101,7 @@
|
|||||||
<td>Database Prefix</td>
|
<td>Database Prefix</td>
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'db_prefix', '', ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'db_prefix', '', ['class' => 'form-control']) }}
|
||||||
<p>Set this if you're sharing the database with another application.</p>
|
<p>Set this if you're sharing the database with another application.</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -110,9 +110,9 @@
|
|||||||
</table>
|
</table>
|
||||||
<div id="dbtest"></div>
|
<div id="dbtest"></div>
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Setup Database >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Setup Database >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ $(document).ready(function() {
|
|||||||
db_pass: $("input[name=db_pass]").val(),
|
db_pass: $("input[name=db_pass]").val(),
|
||||||
};
|
};
|
||||||
|
|
||||||
$.post("{!! route('installer.dbtest') !!}", opts, function(data) {
|
$.post("{{ route('installer.dbtest') }}", opts, function(data) {
|
||||||
$("#dbtest").html(data);
|
$("#dbtest").html(data);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -2,18 +2,18 @@
|
|||||||
@section('title', 'Database Setup Completed')
|
@section('title', 'Database Setup Completed')
|
||||||
@section('content')
|
@section('content')
|
||||||
<div style="align-content: center;">
|
<div style="align-content: center;">
|
||||||
{!! Form::open(['route' => 'installer.step3', 'method' => 'GET']) !!}
|
{{ Form::open(['route' => 'installer.step3', 'method' => 'GET']) }}
|
||||||
|
|
||||||
<pre class="lang-sh">
|
<pre class="lang-sh">
|
||||||
<code class="lang-sh">
|
<code class="lang-sh">
|
||||||
{{--<code class="language-bash">--}}
|
{{--<code class="language-bash">--}}
|
||||||
{!! $console_output !!}
|
{{ $console_output }}
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Continue >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Continue >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="row"><div class="col-md-12">
|
<div class="row"><div class="col-md-12">
|
||||||
<div style="align-content: center;">
|
<div style="align-content: center;">
|
||||||
{!! Form::open(['route' => 'installer.usersetup', 'method' => 'POST']) !!}
|
{{ Form::open(['route' => 'installer.usersetup', 'method' => 'POST']) }}
|
||||||
<table class="table" width="25%">
|
<table class="table" width="25%">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<td><p>Airline ICAO</p></td>
|
<td><p>Airline ICAO</p></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'airline_icao', null, ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'airline_icao', null, ['class' => 'form-control']) }}
|
||||||
@include('installer::flash/check_error', ['field' => 'airline_icao'])
|
@include('installer::flash/check_error', ['field' => 'airline_icao'])
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<td><p>Airline Name</p></td>
|
<td><p>Airline Name</p></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'airline_name', null, ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'airline_name', null, ['class' => 'form-control']) }}
|
||||||
@include('installer::flash/check_error', ['field' => 'airline_name'])
|
@include('installer::flash/check_error', ['field' => 'airline_name'])
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<td><p>Airline Country</p></td>
|
<td><p>Airline Country</p></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::select('airline_country', $countries, null, ['class' => 'form-control select2' ]); !!}
|
{{ Form::select('airline_country', $countries, null, ['class' => 'form-control select2' ]) }}
|
||||||
@include('installer::flash/check_error', ['field' => 'airline_country'])
|
@include('installer::flash/check_error', ['field' => 'airline_country'])
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -49,7 +49,7 @@
|
|||||||
<td><p>Name</p></td>
|
<td><p>Name</p></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'name', null, ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'name', null, ['class' => 'form-control']) }}
|
||||||
@include('installer::flash/check_error', ['field' => 'name'])
|
@include('installer::flash/check_error', ['field' => 'name'])
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -59,7 +59,7 @@
|
|||||||
<td><p>Email</p></td>
|
<td><p>Email</p></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::input('text', 'email', null, ['class' => 'form-control']) !!}
|
{{ Form::input('text', 'email', null, ['class' => 'form-control']) }}
|
||||||
@include('installer::flash/check_error', ['field' => 'email'])
|
@include('installer::flash/check_error', ['field' => 'email'])
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -68,7 +68,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><p>Password</p></td>
|
<td><p>Password</p></td>
|
||||||
<td>
|
<td>
|
||||||
{!! Form::password('password', ['class' => 'form-control']) !!}
|
{{ Form::password('password', ['class' => 'form-control']) }}
|
||||||
@include('installer::flash/check_error', ['field' => 'password'])
|
@include('installer::flash/check_error', ['field' => 'password'])
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -76,7 +76,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td width="40%"><p>Password Confirm</p></td>
|
<td width="40%"><p>Password Confirm</p></td>
|
||||||
<td>
|
<td>
|
||||||
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
|
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
|
||||||
@include('installer::flash/check_error', ['field' => 'password_confirmation'])
|
@include('installer::flash/check_error', ['field' => 'password_confirmation'])
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -90,8 +90,8 @@
|
|||||||
<td><p>Analytics</p></td>
|
<td><p>Analytics</p></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::hidden('analytics', 0) !!}
|
{{ Form::hidden('analytics', 0) }}
|
||||||
{!! Form::checkbox('analytics', 1, true, ['class' => 'form-control']) !!}
|
{{ Form::checkbox('analytics', 1, true, ['class' => 'form-control']) }}
|
||||||
<br />
|
<br />
|
||||||
<p>
|
<p>
|
||||||
Allows collection of analytics. They won't identify you, and helps us to track
|
Allows collection of analytics. They won't identify you, and helps us to track
|
||||||
@ -105,9 +105,9 @@
|
|||||||
</table>
|
</table>
|
||||||
<div id="dbtest"></div>
|
<div id="dbtest"></div>
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Complete Setup >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Complete Setup >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div style="align-content: center;">
|
<div style="align-content: center;">
|
||||||
{!! Form::open(['route' => 'installer.complete', 'method' => 'GET']) !!}
|
{{ Form::open(['route' => 'installer.complete', 'method' => 'GET']) }}
|
||||||
|
|
||||||
<h4>Installer Completed!</h4>
|
<h4>Installer Completed!</h4>
|
||||||
|
|
||||||
@ -11,10 +11,10 @@
|
|||||||
<p>Click the button to proceed to the login screen!</p>
|
<p>Click the button to proceed to the login screen!</p>
|
||||||
|
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Install Complete! Continue to Log-In >>',
|
{{ Form::submit('Install Complete! Continue to Log-In >>',
|
||||||
['class' => 'btn btn-success'])
|
['class' => 'btn btn-success'])
|
||||||
!!}
|
}}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<h2>phpvms updater</h2>
|
<h2>phpvms updater</h2>
|
||||||
<p>Press continue to check if there are any updates available.</p>
|
<p>Press continue to check if there are any updates available.</p>
|
||||||
{!! Form::open(['route' => 'update.step1', 'method' => 'post']) !!}
|
{{ Form::open(['route' => 'update.step1', 'method' => 'post']) }}
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Start >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Start >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<h2>phpvms updater</h2>
|
<h2>phpvms updater</h2>
|
||||||
<p>It seems like you're up to date!</p>
|
<p>It seems like you're up to date!</p>
|
||||||
{!! Form::open(['route' => 'update.complete', 'method' => 'GET']) !!}
|
{{ Form::open(['route' => 'update.complete', 'method' => 'GET']) }}
|
||||||
|
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Complete >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Complete >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<h2>phpvms updater</h2>
|
<h2>phpvms updater</h2>
|
||||||
<p>Updates have been found, click run to complete the update!.</p>
|
<p>Updates have been found, click run to complete the update!.</p>
|
||||||
{!! Form::open(['route' => 'update.run_migrations', 'method' => 'post']) !!}
|
{{ Form::open(['route' => 'update.run_migrations', 'method' => 'post']) }}
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Run >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Run >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -2,17 +2,17 @@
|
|||||||
@section('title', 'Update Completed')
|
@section('title', 'Update Completed')
|
||||||
@section('content')
|
@section('content')
|
||||||
<div style="align-content: center;">
|
<div style="align-content: center;">
|
||||||
{!! Form::open(['route' => 'update.complete', 'method' => 'GET']) !!}
|
{{ Form::open(['route' => 'update.complete', 'method' => 'GET']) }}
|
||||||
|
|
||||||
<pre class="lang-sh">
|
<pre class="lang-sh">
|
||||||
<code class="lang-sh">
|
<code class="lang-sh">
|
||||||
{!! $console_output !!}
|
{{ $console_output }}
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
{!! Form::submit('Complete >>', ['class' => 'btn btn-success']) !!}
|
{{ Form::submit('Complete >>', ['class' => 'btn btn-success']) }}
|
||||||
</p>
|
</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
@section('title', 'Sample')
|
@section('title', 'Sample')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! url('/admin/sample/create') !!}">
|
<a href="{{ url('/admin/sample/create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New</a>
|
Add New</a>
|
||||||
</li>
|
</li>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="header"><h4 class="title">Admin Scaffold!</h4></div>
|
<div class="header"><h4 class="title">Admin Scaffold!</h4></div>
|
||||||
<p>This view is loaded from module: {!! config('sample.name') !!}</p>
|
<p>This view is loaded from module: {{ config('sample.name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
<h1>Hello World</h1>
|
<h1>Hello World</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
This view is loaded from module: {!! config('sample.name') !!}
|
This view is loaded from module: {{ config('sample.name') }}
|
||||||
</p>
|
</p>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
@section('title', '$STUDLY_NAME$')
|
@section('title', '$STUDLY_NAME$')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! url('/$LOWER_NAME$/admin/create') !!}">
|
<a href="{{ url('/$LOWER_NAME$/admin/create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New</a>
|
Add New</a>
|
||||||
</li>
|
</li>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="header"><h4 class="title">Admin Scaffold!</h4></div>
|
<div class="header"><h4 class="title">Admin Scaffold!</h4></div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>This view is loaded from module: {!! config('$LOWER_NAME$.name') !!}</p>
|
<p>This view is loaded from module: {{ config('$LOWER_NAME$.name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
<h1>Hello World</h1>
|
<h1>Hello World</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
This view is loaded from module: {!! config('$LOWER_NAME$.name') !!}
|
This view is loaded from module: {{ config('$LOWER_NAME$.name') }}
|
||||||
</p>
|
</p>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
You must add a subfleet before you can add an aircraft!
|
You must add a subfleet before you can add an aircraft!
|
||||||
</p>
|
</p>
|
||||||
@else
|
@else
|
||||||
{!! Form::open(['route' => 'admin.aircraft.store']) !!}
|
{{ Form::open(['route' => 'admin.aircraft.store']) }}
|
||||||
@include('admin.aircraft.fields')
|
@include('admin.aircraft.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($aircraft, ['route' => ['admin.aircraft.update', $aircraft->id], 'method' => 'patch']) !!}
|
{{ Form::model($aircraft, ['route' => ['admin.aircraft.update', $aircraft->id], 'method' => 'patch']) }}
|
||||||
@include('admin.aircraft.fields')
|
@include('admin.aircraft.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
@if(count($aircraft->expenses))
|
@if(count($aircraft->expenses))
|
||||||
<thead>
|
<thead>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Cost <span class="small">{!! currency(config('phpvms.currency')) !!}</span></th>
|
<th>Cost <span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
@ -22,33 +22,33 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<a class="text" href="#" data-pk="{!! $expense->id !!}"
|
<a class="text" href="#" data-pk="{{ $expense->id }}"
|
||||||
data-name="name">{!! $expense->name !!}</a>
|
data-name="name">{{ $expense->name }}</a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<a class="text" href="#" data-pk="{!! $expense->id !!}"
|
<a class="text" href="#" data-pk="{{ $expense->id }}"
|
||||||
data-name="amount">{!! $expense->amount !!}</a>
|
data-name="amount">{{ $expense->amount }}</a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<a href="#"
|
<a href="#"
|
||||||
class="dropdown"
|
class="dropdown"
|
||||||
data-pk="{!! $expense->id !!}"
|
data-pk="{{ $expense->id }}"
|
||||||
data-name="type">{!! \App\Models\Enums\ExpenseType::label($expense->type) !!}</a>
|
data-name="type">{{ \App\Models\Enums\ExpenseType::label($expense->type) }}</a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
{!! Form::open(['url' => url('/admin/aircraft/'.$aircraft->id.'/expenses'),
|
{{ Form::open(['url' => url('/admin/aircraft/'.$aircraft->id.'/expenses'),
|
||||||
'method' => 'delete', 'class' => 'modify_expense form-inline']) !!}
|
'method' => 'delete', 'class' => 'modify_expense form-inline']) }}
|
||||||
{!! Form::hidden('expense_id', $expense->id) !!}
|
{{ Form::hidden('expense_id', $expense->id) }}
|
||||||
{!! Form::button('<i class="fa fa-times"></i>', ['type' => 'submit',
|
{{ Form::button('<i class="fa fa-times"></i>', ['type' => 'submit',
|
||||||
'class' => 'btn btn-sm btn-danger btn-icon',
|
'class' => 'btn btn-sm btn-danger btn-icon',
|
||||||
'onclick' => "return confirm('Are you sure?')",
|
'onclick' => "return confirm('Are you sure?')",
|
||||||
]) !!}
|
]) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -58,14 +58,14 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::open(['url' => url('/admin/aircraft/'.$aircraft->id.'/expenses'),
|
{{ Form::open(['url' => url('/admin/aircraft/'.$aircraft->id.'/expenses'),
|
||||||
'method' => 'post', 'class' => 'modify_expense form-inline']) !!}
|
'method' => 'post', 'class' => 'modify_expense form-inline']) }}
|
||||||
{!! Form::input('text', 'name', null, ['class' => 'form-control input-sm', 'placeholder' => 'Name']) !!}
|
{{ Form::input('text', 'name', null, ['class' => 'form-control input-sm', 'placeholder' => 'Name']) }}
|
||||||
{!! Form::number('amount', null, ['class' => 'form-control input-sm', 'placeholder' => 'Amount']) !!}
|
{{ Form::number('amount', null, ['class' => 'form-control input-sm', 'placeholder' => 'Amount']) }}
|
||||||
{!! Form::select('type', \App\Models\Enums\ExpenseType::select(), null, ['class' => 'select2']) !!}
|
{{ Form::select('type', \App\Models\Enums\ExpenseType::select(), null, ['class' => 'select2']) }}
|
||||||
{!! Form::button('<i class="fa fa-plus"></i> Add', ['type' => 'submit',
|
{{ Form::button('<i class="fa fa-plus"></i> Add', ['type' => 'submit',
|
||||||
'class' => 'btn btn-success btn-small']) !!}
|
'class' => 'btn btn-success btn-small']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
|
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
<p class="text-danger">{{ $errors->first('amount') }}</p>
|
<p class="text-danger">{{ $errors->first('amount') }}</p>
|
||||||
|
@ -1,43 +1,43 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('subfleet_id', 'Subfleet:') !!}
|
{{ Form::label('subfleet_id', 'Subfleet:') }}
|
||||||
{!! Form::select('subfleet_id', $subfleets, null, ['class' => 'form-control select2', 'placeholder' => 'Select Subfleet']) !!}
|
{{ Form::select('subfleet_id', $subfleets, null, ['class' => 'form-control select2', 'placeholder' => 'Select Subfleet']) }}
|
||||||
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('name', 'Name:') !!} <span class="required">*</span>
|
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('icao', 'ICAO:') !!}
|
{{ Form::label('icao', 'ICAO:') }}
|
||||||
{!! Form::text('icao', null, ['class' => 'form-control']) !!}
|
{{ Form::text('icao', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('zfw', 'Zero Fuel Weight:') !!}
|
{{ Form::label('zfw', 'Zero Fuel Weight:') }}
|
||||||
{!! Form::text('zfw', null, ['class' => 'form-control']) !!}
|
{{ Form::text('zfw', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('zfw') }}</p>
|
<p class="text-danger">{{ $errors->first('zfw') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Registration Field -->
|
<!-- Registration Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('registration', 'Registration:') !!}
|
{{ Form::label('registration', 'Registration:') }}
|
||||||
{{--<p class="text-success small">Enter the registration with the country prefix</p>--}}
|
{{--<p class="text-success small">Enter the registration with the country prefix</p>--}}
|
||||||
{!! Form::text('registration', null, ['class' => 'form-control']) !!}
|
{{ Form::text('registration', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('registration') }}</p>
|
<p class="text-danger">{{ $errors->first('registration') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Active Field -->
|
<!-- Active Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('status', 'Status:') !!}
|
{{ Form::label('status', 'Status:') }}
|
||||||
{!! Form::select('status', $statuses, null, ['class' => 'form-control select2', 'placeholder' => 'Select Status']) !!}
|
{{ Form::select('status', $statuses, null, ['class' => 'form-control select2', 'placeholder' => 'Select Status']) }}
|
||||||
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -45,8 +45,8 @@
|
|||||||
<!-- Submit Field -->
|
<!-- Submit Field -->
|
||||||
<div class="form-group col-sm-12">
|
<div class="form-group col-sm-12">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.aircraft.index') !!}" class="btn btn-default">Cancel</a>
|
<a href="{{ route('admin.aircraft.index') }}" class="btn btn-default">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
@section('title', 'Aircraft')
|
@section('title', 'Aircraft')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! url('/admin/subfleets') !!}">
|
<a href="{{ url('/admin/subfleets') }}">
|
||||||
<i class="ti-files"></i>
|
<i class="ti-files"></i>
|
||||||
Subfleets</a>
|
Subfleets</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! route('admin.aircraft.create') !!}">
|
<a href="{{ route('admin.aircraft.create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
New Aircraft</a>
|
New Aircraft</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -4,7 +4,7 @@ function setEditable() {
|
|||||||
@if(isset($aircraft))
|
@if(isset($aircraft))
|
||||||
$('#expenses a.text').editable({
|
$('#expenses a.text').editable({
|
||||||
emptytext: '0',
|
emptytext: '0',
|
||||||
url: '{!! url('/admin/aircraft/'.$aircraft->id.'/expenses') !!}',
|
url: '{{ url('/admin/aircraft/'.$aircraft->id.'/expenses') }}',
|
||||||
title: 'Enter override value',
|
title: 'Enter override value',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function (params) {
|
params: function (params) {
|
||||||
@ -19,8 +19,8 @@ function setEditable() {
|
|||||||
$('#expenses a.dropdown').editable({
|
$('#expenses a.dropdown').editable({
|
||||||
type: 'select',
|
type: 'select',
|
||||||
emptytext: '0',
|
emptytext: '0',
|
||||||
source: {!! json_encode(list_to_editable(\App\Models\Enums\ExpenseType::select())) !!},
|
source: {{ json_encode(list_to_editable(\App\Models\Enums\ExpenseType::select())) }},
|
||||||
url: '{!! url('/admin/aircraft/'.$aircraft->id.'/expenses') !!}',
|
url: '{{ url('/admin/aircraft/'.$aircraft->id.'/expenses') }}',
|
||||||
title: 'Enter override value',
|
title: 'Enter override value',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function (params) {
|
params: function (params) {
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1 class="pull-left">{!! $aircraft->name !!}</h1>
|
<h1 class="pull-left">{{ $aircraft->name }}</h1>
|
||||||
<h1 class="pull-right">
|
<h1 class="pull-right">
|
||||||
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{!! route('admin.aircraft.edit', $aircraft->id) !!}">Edit</a>
|
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{{ route('admin.aircraft.edit', $aircraft->id) }}">Edit</a>
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
@ -22,7 +22,7 @@ $(document).ready(function() {
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
mode: 'inline',
|
mode: 'inline',
|
||||||
emptytext: 'default',
|
emptytext: 'default',
|
||||||
url: '/admin/aircraft/{!! $aircraft->id !!}/fares',
|
url: '/admin/aircraft/{{ $aircraft->id }}/fares',
|
||||||
title: 'Enter override value',
|
title: 'Enter override value',
|
||||||
ajaxOptions: { 'type': 'put'},
|
ajaxOptions: { 'type': 'put'},
|
||||||
params: function(params) {
|
params: function(params) {
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title">{!! Form::label('airport_id', 'Location') !!}</h3>
|
<h3 class="box-title">{{ Form::label('airport_id', 'Location') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
@if($aircraft->airport)
|
@if($aircraft->airport)
|
||||||
{!! $aircraft->airport->icao !!}</p>
|
{{ $aircraft->airport->icao }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -18,9 +18,9 @@
|
|||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
{{--<i class="fa fa-text-width"></i>--}}
|
{{--<i class="fa fa-text-width"></i>--}}
|
||||||
<h3 class="box-title">{!! Form::label('name', 'Name') !!}</h3>
|
<h3 class="box-title">{{ Form::label('name', 'Name') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body"><p class="lead">{!! $aircraft->name !!}</p></div>
|
<div class="box-body"><p class="lead">{{ $aircraft->name }}</p></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -29,9 +29,9 @@
|
|||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
{{--<i class="fa fa-text-width"></i>--}}
|
{{--<i class="fa fa-text-width"></i>--}}
|
||||||
<h3 class="box-title">{!! Form::label('registration', 'Registration') !!}</h3>
|
<h3 class="box-title">{{ Form::label('registration', 'Registration') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body"><p class="lead">{!! $aircraft->registration !!}</p></div>
|
<div class="box-body"><p class="lead">{{ $aircraft->registration }}</p></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
{{--<i class="fa fa-text-width"></i>--}}
|
{{--<i class="fa fa-text-width"></i>--}}
|
||||||
<h3 class="box-title">{!! Form::label('active', 'Active:') !!}</h3>
|
<h3 class="box-title">{{ Form::label('active', 'Active:') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body"><p class="lead">@if ($aircraft->active == '1') yes @else no @endif</p></div>
|
<div class="box-body"><p class="lead">@if ($aircraft->active == '1') yes @else no @endif</p></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,37 +11,37 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($aircraft as $ac)
|
@foreach($aircraft as $ac)
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}">{!! $ac->name !!}</a></td>
|
<td><a href="{{ route('admin.aircraft.edit', [$ac->id]) }}">{{ $ac->name }}</a></td>
|
||||||
<td style="text-align: center;">{!! $ac->registration !!}</td>
|
<td style="text-align: center;">{{ $ac->registration }}</td>
|
||||||
<td>
|
<td>
|
||||||
@if($ac->subfleet_id && $ac->subfleet)
|
@if($ac->subfleet_id && $ac->subfleet)
|
||||||
<a href="{!! route('admin.subfleets.edit', [$ac->subfleet_id]) !!}">
|
<a href="{{ route('admin.subfleets.edit', [$ac->subfleet_id]) }}">
|
||||||
{!! $ac->subfleet->name !!}
|
{{ $ac->subfleet->name }}
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
-
|
-
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center;">{!! $ac->airport_id !!}</td>
|
<td style="text-align: center;">{{ $ac->airport_id }}</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
{!! Utils::minutesToTimeString($ac->flight_hours) !!}
|
{{ Utils::minutesToTimeString($ac->flight_hours) }}
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
@if($ac->status == \App\Models\Enums\AircraftStatus::ACTIVE)
|
@if($ac->status == \App\Models\Enums\AircraftStatus::ACTIVE)
|
||||||
<span class="label label-success">{!! \App\Models\Enums\AircraftStatus::label($ac->status); !!}</span>
|
<span class="label label-success">{{ \App\Models\Enums\AircraftStatus::label($ac->status) }}</span>
|
||||||
@else
|
@else
|
||||||
<span class="label label-default">
|
<span class="label label-default">
|
||||||
{!! \App\Models\Enums\AircraftStatus::label($ac->status) !!}
|
{{ \App\Models\Enums\AircraftStatus::label($ac->status) }}
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td style="width: 10%; text-align: right;">
|
<td style="width: 10%; text-align: right;">
|
||||||
{!! Form::open(['route' => ['admin.aircraft.destroy', $ac->id], 'method' => 'delete']) !!}
|
{{ Form::open(['route' => ['admin.aircraft.destroy', $ac->id], 'method' => 'delete']) }}
|
||||||
<a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}" class='btn btn-sm btn-success btn-icon'>
|
<a href="{{ route('admin.aircraft.edit', [$ac->id]) }}" class='btn btn-sm btn-success btn-icon'>
|
||||||
<i class="fas fa-pencil-alt"></i>
|
<i class="fas fa-pencil-alt"></i>
|
||||||
</a>
|
</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::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::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::open(['route' => 'admin.airlines.store']) !!}
|
{{ Form::open(['route' => 'admin.airlines.store']) }}
|
||||||
@include('admin.airlines.fields')
|
@include('admin.airlines.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($airline, ['route' => ['admin.airlines.update', $airline->id], 'method' => 'patch']) !!}
|
{{ Form::model($airline, ['route' => ['admin.airlines.update', $airline->id], 'method' => 'patch']) }}
|
||||||
@include('admin.airlines.fields')
|
@include('admin.airlines.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Code Field -->
|
<!-- Code Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('icao', 'Code:') !!} <span class="required">*</span>
|
{{ Form::label('icao', 'Code:') }} <span class="required">*</span>
|
||||||
{!! Form::text('icao', null, ['class' => 'form-control']) !!}
|
{{ Form::text('icao', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Name Field -->
|
<!-- Name Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('name', 'Name:') !!} <span class="required">*</span>
|
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('iata', 'IATA:') !!}
|
{{ Form::label('iata', 'IATA:') }}
|
||||||
{!! Form::text('iata', null, ['class' => 'form-control']) !!}
|
{{ Form::text('iata', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('iata') }}</p>
|
<p class="text-danger">{{ $errors->first('iata') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('logo', 'Logo URL:') !!}
|
{{ Form::label('logo', 'Logo URL:') }}
|
||||||
{!! Form::text('logo', null, ['class' => 'form-control']) !!}
|
{{ Form::text('logo', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('logo') }}</p>
|
<p class="text-danger">{{ $errors->first('logo') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -30,17 +30,17 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('country', 'Country:') !!} <br/>
|
{{ Form::label('country', 'Country:') }} <br/>
|
||||||
{!! Form::select('country', $countries, null, ['class' => 'form-control select2' ]); !!}
|
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
|
||||||
<p class="text-danger">{{ $errors->first('country') }}</p>
|
<p class="text-danger">{{ $errors->first('country') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('active', 'Active:') !!}
|
{{ Form::label('active', 'Active:') }}
|
||||||
<br />
|
<br />
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{!! Form::hidden('active', 0, false) !!}
|
{{ Form::hidden('active', 0, false) }}
|
||||||
{!! Form::checkbox('active', 1, null) !!}
|
{{ Form::checkbox('active', 1, null) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -48,8 +48,8 @@
|
|||||||
<!-- Submit Field -->
|
<!-- Submit Field -->
|
||||||
<div class="form-group col-sm-12">
|
<div class="form-group col-sm-12">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.airlines.index') !!}" class="btn btn-default">Cancel</a>
|
<a href="{{ route('admin.airlines.index') }}" class="btn btn-default">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
@section('title', 'Airlines')
|
@section('title', 'Airlines')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! route('admin.airlines.create') !!}">
|
<a href="{{ route('admin.airlines.create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New</a>
|
Add New</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="row" style="padding-left: 20px">
|
<div class="row" style="padding-left: 20px">
|
||||||
@include('admin.airlines.show_fields')
|
@include('admin.airlines.show_fields')
|
||||||
<a href="{!! route('admin.airlines.index') !!}" class="btn btn-default">Back</a>
|
<a href="{{ route('admin.airlines.index') }}" class="btn btn-default">Back</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,40 +1,40 @@
|
|||||||
<!-- Code Field -->
|
<!-- Code Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('icao', 'ICAO:') !!}
|
{{ Form::label('icao', 'ICAO:') }}
|
||||||
<p>{!! $airlines->icao !!}</p>
|
<p>{{ $airlines->icao }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('iata', 'IATA:') !!}
|
{{ Form::label('iata', 'IATA:') }}
|
||||||
<p>{!! $airlines->iata !!}</p>
|
<p>{{ $airlines->iata }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Name Field -->
|
<!-- Name Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('name', 'Name:') !!}
|
{{ Form::label('name', 'Name:') }}
|
||||||
<p>{!! $airlines->name !!}</p>
|
<p>{{ $airlines->name }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('logo', 'Logo URL:') !!}
|
{{ Form::label('logo', 'Logo URL:') }}
|
||||||
<p>{!! $airlines->logo !!}</p>
|
<p>{{ $airlines->logo }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Active Field -->
|
<!-- Active Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('active', 'Active:') !!}
|
{{ Form::label('active', 'Active:') }}
|
||||||
<p>{!! $airlines->active !!}</p>
|
<p>{{ $airlines->active }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Created At Field -->
|
<!-- Created At Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('created_at', 'Created At:') !!}
|
{{ Form::label('created_at', 'Created At:') }}
|
||||||
<p>{!! show_datetime($airlines->created_at) !!}</p>
|
<p>{{ show_datetime($airlines->created_at) }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Updated At Field -->
|
<!-- Updated At Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('updated_at', 'Updated At:') !!}
|
{{ Form::label('updated_at', 'Updated At:') }}
|
||||||
<p>{!! show_datetime($airlines->updated_at) !!}</p>
|
<p>{{ show_datetime($airlines->updated_at) }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@if(filled($al->country))
|
@if(filled($al->country))
|
||||||
<span class="flag-icon flag-icon-{!! $al->country !!}"></span>
|
<span class="flag-icon flag-icon-{{ $al->country }}"></span>
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
<a href="{!! route('admin.airlines.edit', [$al->id]) !!}">{!! $al->code !!}</a>
|
<a href="{{ route('admin.airlines.edit', [$al->id]) }}">{{ $al->code }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{!! $al->name !!}</td>
|
<td>{{ $al->name }}</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
@if($al->active == 1)
|
@if($al->active == 1)
|
||||||
<span class="label label-success">Active</span>
|
<span class="label label-success">Active</span>
|
||||||
@ -24,11 +24,11 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{!! Form::open(['route' => ['admin.airlines.destroy', $al->id], 'method' => 'delete']) !!}
|
{{ Form::open(['route' => ['admin.airlines.destroy', $al->id], 'method' => 'delete']) }}
|
||||||
<a href="{!! route('admin.airlines.edit', [$al->id]) !!}"
|
<a href="{{ route('admin.airlines.edit', [$al->id]) }}"
|
||||||
class='btn btn-sm btn-success btn-icon'><i class="fas fa-pencil-alt"></i></a>
|
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::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::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::open(['route' => 'admin.airports.store', 'id' => 'airportForm']) !!}
|
{{ Form::open(['route' => 'admin.airports.store', 'id' => 'airportForm']) }}
|
||||||
@include('admin.airports.fields')
|
@include('admin.airports.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($airport, [
|
{{ Form::model($airport, [
|
||||||
'route' => ['admin.airports.update', $airport->id],
|
'route' => ['admin.airports.update', $airport->id],
|
||||||
'method' => 'patch',
|
'method' => 'patch',
|
||||||
'id' => 'airportForm'])
|
'id' => 'airportForm'])
|
||||||
!!}
|
}}
|
||||||
@include('admin.airports.fields')
|
@include('admin.airports.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
@if(count($airport->expenses))
|
@if(count($airport->expenses))
|
||||||
<thead>
|
<thead>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Cost <span class="small">{!! currency(config('phpvms.currency')) !!}</span></th>
|
<th>Cost <span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
@ -22,33 +22,33 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<a class="text" href="#" data-pk="{!! $expense->id !!}"
|
<a class="text" href="#" data-pk="{{ $expense->id }}"
|
||||||
data-name="name">{!! $expense->name !!}</a>
|
data-name="name">{{ $expense->name }}</a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<a class="text" href="#" data-pk="{!! $expense->id !!}"
|
<a class="text" href="#" data-pk="{{ $expense->id }}"
|
||||||
data-name="amount">{!! $expense->amount !!}</a>
|
data-name="amount">{{ $expense->amount }}</a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<a href="#"
|
<a href="#"
|
||||||
class="dropdown"
|
class="dropdown"
|
||||||
data-pk="{!! $expense->id !!}"
|
data-pk="{{ $expense->id }}"
|
||||||
data-name="type">{!! \App\Models\Enums\ExpenseType::label($expense->type) !!}</a>
|
data-name="type">{{ \App\Models\Enums\ExpenseType::label($expense->type) }}</a>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
{!! Form::open(['url' => url('/admin/airports/'.$airport->id.'/expenses'),
|
{{ Form::open(['url' => url('/admin/airports/'.$airport->id.'/expenses'),
|
||||||
'method' => 'delete', 'class' => 'modify_expense form-inline']) !!}
|
'method' => 'delete', 'class' => 'modify_expense form-inline']) }}
|
||||||
{!! Form::hidden('expense_id', $expense->id) !!}
|
{{ Form::hidden('expense_id', $expense->id) }}
|
||||||
{!! Form::button('<i class="fa fa-times"></i>', ['type' => 'submit',
|
{{ Form::button('<i class="fa fa-times"></i>', ['type' => 'submit',
|
||||||
'class' => 'btn btn-sm btn-danger btn-icon',
|
'class' => 'btn btn-sm btn-danger btn-icon',
|
||||||
'onclick' => "return confirm('Are you sure?')",
|
'onclick' => "return confirm('Are you sure?')",
|
||||||
]) !!}
|
]) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -58,14 +58,14 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::open(['url' => url('/admin/airports/'.$airport->id.'/expenses'),
|
{{ Form::open(['url' => url('/admin/airports/'.$airport->id.'/expenses'),
|
||||||
'method' => 'post', 'class' => 'modify_expense form-inline']) !!}
|
'method' => 'post', 'class' => 'modify_expense form-inline']) }}
|
||||||
{!! Form::input('text', 'name', null, ['class' => 'form-control input-sm', 'placeholder' => 'Name']) !!}
|
{{ Form::input('text', 'name', null, ['class' => 'form-control input-sm', 'placeholder' => 'Name']) }}
|
||||||
{!! Form::number('amount', null, ['class' => 'form-control input-sm', 'placeholder' => 'Amount']) !!}
|
{{ Form::number('amount', null, ['class' => 'form-control input-sm', 'placeholder' => 'Amount']) }}
|
||||||
{!! Form::select('type', \App\Models\Enums\ExpenseType::select(), null, ['class' => 'select2']) !!}
|
{{ Form::select('type', \App\Models\Enums\ExpenseType::select(), null, ['class' => 'select2']) }}
|
||||||
{!! Form::button('<i class="fa fa-plus"></i> Add', ['type' => 'submit',
|
{{ Form::button('<i class="fa fa-plus"></i> Add', ['type' => 'submit',
|
||||||
'class' => 'btn btn-success btn-small']) !!}
|
'class' => 'btn btn-success btn-small']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
|
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
<p class="text-danger">{{ $errors->first('amount') }}</p>
|
<p class="text-danger">{{ $errors->first('amount') }}</p>
|
||||||
|
@ -3,17 +3,17 @@
|
|||||||
<!-- Icao Field -->
|
<!-- Icao Field -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('icao', 'ICAO:') !!} <span class="required">*</span>
|
{{ Form::label('icao', 'ICAO:') }} <span class="required">*</span>
|
||||||
<a href="#" class="airport_data_lookup">Lookup</a>
|
<a href="#" class="airport_data_lookup">Lookup</a>
|
||||||
{!! Form::text('icao', null, [
|
{{ Form::text('icao', null, [
|
||||||
'id' => 'airport_icao', 'class' => 'form-control'
|
'id' => 'airport_icao', 'class' => 'form-control'
|
||||||
]) !!}
|
]) }}
|
||||||
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('iata', 'IATA:') !!}
|
{{ Form::label('iata', 'IATA:') }}
|
||||||
{!! Form::text('iata', null, ['class' => 'form-control']) !!}
|
{{ Form::text('iata', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('iata') }}</p>
|
<p class="text-danger">{{ $errors->first('iata') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -21,19 +21,19 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('name', 'Name:') !!} <span class="required">*</span>
|
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('lat', 'Latitude:') !!} <span class="required">*</span>
|
{{ Form::label('lat', 'Latitude:') }} <span class="required">*</span>
|
||||||
{!! Form::number('lat', null, ['class' => 'form-control', 'step' => '0.000001', 'rv-value' => 'airport.lat']) !!}
|
{{ Form::number('lat', null, ['class' => 'form-control', 'step' => '0.000001', 'rv-value' => 'airport.lat']) }}
|
||||||
<p class="text-danger">{{ $errors->first('lat') }}</p>
|
<p class="text-danger">{{ $errors->first('lat') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('lon', 'Longitude:') !!} <span class="required">*</span>
|
{{ Form::label('lon', 'Longitude:') }} <span class="required">*</span>
|
||||||
{!! Form::number('lon', null, ['class' => 'form-control', 'step' => '0.000001', 'rv-value' => 'airport.lon']) !!}
|
{{ Form::number('lon', null, ['class' => 'form-control', 'step' => '0.000001', 'rv-value' => 'airport.lon']) }}
|
||||||
<p class="text-danger">{{ $errors->first('lon') }}</p>
|
<p class="text-danger">{{ $errors->first('lon') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -41,28 +41,28 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('country', 'Country:') !!}
|
{{ Form::label('country', 'Country:') }}
|
||||||
{!! Form::text('country', null, ['class' => 'form-control']) !!}
|
{{ Form::text('country', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('country') }}</p>
|
<p class="text-danger">{{ $errors->first('country') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('location', 'Location:') !!}
|
{{ Form::label('location', 'Location:') }}
|
||||||
{!! Form::text('location', null, ['class' => 'form-control']) !!}
|
{{ Form::text('location', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('location') }}</p>
|
<p class="text-danger">{{ $errors->first('location') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('timezone', 'Timezone:') !!}
|
{{ Form::label('timezone', 'Timezone:') }}
|
||||||
{!! Form::select('timezone', $timezones, null, ['id' => 'timezone', 'class' => 'select2']); !!}
|
{{ Form::select('timezone', $timezones, null, ['id' => 'timezone', 'class' => 'select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('timezone') }}</p>
|
<p class="text-danger">{{ $errors->first('timezone') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('ground_handling_cost', 'Ground Handling Cost:') !!}
|
{{ Form::label('ground_handling_cost', 'Ground Handling Cost:') }}
|
||||||
{!! Form::number('ground_handling_cost', null, ['class' => 'form-control']) !!}
|
{{ Form::number('ground_handling_cost', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('ground_handling_cost') }}</p>
|
<p class="text-danger">{{ $errors->first('ground_handling_cost') }}</p>
|
||||||
|
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
@ -79,15 +79,15 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('hub', 'Hub:') !!}
|
{{ Form::label('hub', 'Hub:') }}
|
||||||
{!! Form::hidden('hub', 0) !!}
|
{{ Form::hidden('hub', 0) }}
|
||||||
{!! Form::checkbox('hub', null) !!}
|
{{ Form::checkbox('hub', null) }}
|
||||||
</div>
|
</div>
|
||||||
<!-- Submit Field -->
|
<!-- Submit Field -->
|
||||||
<div class="form-group col-sm-8">
|
<div class="form-group col-sm-8">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.airports.index') !!}" class="btn btn-default">Cancel</a>
|
<a href="{{ route('admin.airports.index') }}" class="btn btn-default">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
@section('title', 'Airports')
|
@section('title', 'Airports')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! route('admin.airports.create') !!}">
|
<a href="{{ route('admin.airports.create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New</a>
|
Add New</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -4,7 +4,7 @@ function setEditable() {
|
|||||||
@if(isset($airport))
|
@if(isset($airport))
|
||||||
$('#airport-expenses a.text').editable({
|
$('#airport-expenses a.text').editable({
|
||||||
emptytext: '0',
|
emptytext: '0',
|
||||||
url: '{!! url('/admin/airports/'.$airport->id.'/expenses') !!}',
|
url: '{{ url('/admin/airports/'.$airport->id.'/expenses') }}',
|
||||||
title: 'Enter override value',
|
title: 'Enter override value',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function (params) {
|
params: function (params) {
|
||||||
@ -19,8 +19,8 @@ function setEditable() {
|
|||||||
$('#airport-expenses a.dropdown').editable({
|
$('#airport-expenses a.dropdown').editable({
|
||||||
type: 'select',
|
type: 'select',
|
||||||
emptytext: '0',
|
emptytext: '0',
|
||||||
source: {!! json_encode(list_to_editable(\App\Models\Enums\ExpenseType::select())) !!},
|
source: {{ json_encode(list_to_editable(\App\Models\Enums\ExpenseType::select())) }},
|
||||||
url: '{!! url('/admin/airports/'.$airport->id.'/expenses') !!}',
|
url: '{{ url('/admin/airports/'.$airport->id.'/expenses') }}',
|
||||||
title: 'Enter override value',
|
title: 'Enter override value',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function (params) {
|
params: function (params) {
|
||||||
@ -54,7 +54,7 @@ $(document).ready(function() {
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
mode: 'inline',
|
mode: 'inline',
|
||||||
emptytext: '0',
|
emptytext: '0',
|
||||||
url: '{!! url('/admin/airports/fuel') !!}',
|
url: '{{ url('/admin/airports/fuel') }}',
|
||||||
title: 'Enter price per unit of fuel',
|
title: 'Enter price per unit of fuel',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function(params) {
|
params: function(params) {
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::open(['route' => 'admin.airports.index', 'method' => 'GET', 'class'=>'form-inline pull-right']) !!}
|
{{ Form::open(['route' => 'admin.airports.index', 'method' => 'GET', 'class'=>'form-inline pull-right']) }}
|
||||||
|
|
||||||
{!! Form::label('icao', 'ICAO:') !!}
|
{{ Form::label('icao', 'ICAO:') }}
|
||||||
{!! Form::text('icao', null, ['class' => 'form-control']) !!}
|
{{ Form::text('icao', null, ['class' => 'form-control']) }}
|
||||||
|
|
||||||
<a href="{!! route('admin.airports.index') !!}">clear</a>
|
<a href="{{ route('admin.airports.index') }}">clear</a>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1 class="pull-left">{!! $airport->name !!} - {!! $airport->location !!}</h1>
|
<h1 class="pull-left">{{ $airport->name }} - {{ $airport->location }}</h1>
|
||||||
<h1 class="pull-right">
|
<h1 class="pull-right">
|
||||||
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{!! route('admin.airports.edit', $airport->id) !!}">Edit</a>
|
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{{ route('admin.airports.edit', $airport->id) }}">Edit</a>
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
@ -26,10 +26,10 @@
|
|||||||
</section>
|
</section>
|
||||||
@endsection
|
@endsection
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
phpvms_render_airspace_map({
|
phpvms_render_airspace_map({
|
||||||
lat: {!! $airport->lat !!},
|
lat: {{ $airport->lat }},
|
||||||
lon: {!! $airport->lon !!},
|
lon: {{ $airport->lon }},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<h3 class="box-title">ICAO</h3>
|
<h3 class="box-title">ICAO</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<p class="lead">{!! $airport->icao !!}<strong></p>
|
<p class="lead">{{ $airport->icao }}<strong></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<h3 class="box-title">Coordinates</h3>
|
<h3 class="box-title">Coordinates</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<p class="lead">{!! $airport->lat!!}/{!! $airport->lon !!}</p>
|
<p class="lead">{{ $airport->lat}}/{{ $airport->lon }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,31 +14,31 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($airports as $airport)
|
@foreach($airports as $airport)
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{!! route('admin.airports.edit', [$airport->id]) !!}">{!! $airport->icao !!}</a></td>
|
<td><a href="{{ route('admin.airports.edit', [$airport->id]) }}">{{ $airport->icao }}</a></td>
|
||||||
<td>{!! $airport->name !!}</td>
|
<td>{{ $airport->name }}</td>
|
||||||
<td>{!! $airport->location !!}</td>
|
<td>{{ $airport->location }}</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
@if($airport->hub === true)
|
@if($airport->hub === true)
|
||||||
<span class="label label-success">Hub</span>
|
<span class="label label-success">Hub</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
{!! $airport->ground_handling_cost !!}
|
{{ $airport->ground_handling_cost }}
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
<a class="inline" href="#" data-pk="{!! $airport->id !!}" data-name="fuel_100ll_cost">{!! $airport->fuel_100ll_cost !!}</a>
|
<a class="inline" href="#" data-pk="{{ $airport->id }}" data-name="fuel_100ll_cost">{{ $airport->fuel_100ll_cost }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
<a class="inline" href="#" data-pk="{!! $airport->id !!}" data-name="fuel_jeta_cost">{!! $airport->fuel_jeta_cost !!}</a>
|
<a class="inline" href="#" data-pk="{{ $airport->id }}" data-name="fuel_jeta_cost">{{ $airport->fuel_jeta_cost }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
<a class="inline" href="#" data-pk="{!! $airport->id !!}" data-name="fuel_mogas_cost">{!! $airport->fuel_mogas_cost !!}</a>
|
<a class="inline" href="#" data-pk="{{ $airport->id }}" data-name="fuel_mogas_cost">{{ $airport->fuel_mogas_cost }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: right;">
|
<td style="text-align: right;">
|
||||||
{!! Form::open(['route' => ['admin.airports.destroy', $airport->id], 'method' => 'delete']) !!}
|
{{ Form::open(['route' => ['admin.airports.destroy', $airport->id], 'method' => 'delete']) }}
|
||||||
<a href="{!! route('admin.airports.edit', [$airport->id]) !!}" class='btn btn-sm btn-success btn-icon'><i class="fas fa-pencil-alt"></i></a>
|
<a href="{{ route('admin.airports.edit', [$airport->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::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::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>@yield('title') - {!! config('app.name') !!} admin</title>
|
<title>@yield('title') - {{ config('app.name') }} admin</title>
|
||||||
|
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||||
@ -9,9 +9,9 @@
|
|||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||||
|
|
||||||
<script src="{!! public_asset('/assets/system/js/jquery.js') !!}"></script>
|
<script src="{{ public_asset('/assets/system/js/jquery.js') }}"></script>
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="{!! public_asset('/assets/admin/img/favicon.png') !!}">
|
<link rel="icon" type="image/png" href="{{ public_asset('/assets/admin/img/favicon.png') }}">
|
||||||
|
|
||||||
<link href='https://fonts.googleapis.com/css?family=Muli:400,300' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Muli:400,300' rel='stylesheet' type='text/css'>
|
||||||
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,300" rel="stylesheet" type="text/css">
|
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,300" rel="stylesheet" type="text/css">
|
||||||
@ -31,9 +31,9 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const BASE_URL ='{!! url('/') !!}';
|
const BASE_URL ='{{ url('/') }}';
|
||||||
@if (Auth::user())
|
@if (Auth::user())
|
||||||
const PHPVMS_USER_API_KEY = "{!! Auth::user()->api_key !!}";
|
const PHPVMS_USER_API_KEY = "{{ Auth::user()->api_key }}";
|
||||||
@else
|
@else
|
||||||
const PHPVMS_USER_API_KEY = false;
|
const PHPVMS_USER_API_KEY = false;
|
||||||
@endif
|
@endif
|
||||||
@ -95,9 +95,9 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
|
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
|
||||||
<script src="{!! public_asset('/assets/admin/js/vendor.js') !!}"></script>
|
<script src="{{ public_asset('/assets/admin/js/vendor.js') }}"></script>
|
||||||
<script src="{!! public_asset('/assets/system/js/phpvms.js') !!}"></script>
|
<script src="{{ public_asset('/assets/system/js/phpvms.js') }}"></script>
|
||||||
<script src="{!! public_asset('/assets/admin/js/admin.js') !!}"></script>
|
<script src="{{ public_asset('/assets/admin/js/admin.js') }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const getStorage = function(key) {
|
const getStorage = function(key) {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<div class="numbers">
|
<div class="numbers">
|
||||||
<p>{{$type}}</p>
|
<p>{{$type}}</p>
|
||||||
@if(isset($link))
|
@if(isset($link))
|
||||||
<a href="{!! $link !!}">
|
<a href="{{ $link }}">
|
||||||
@endif
|
@endif
|
||||||
{{$pending}} pending
|
{{$pending}} pending
|
||||||
@if(isset($link))
|
@if(isset($link))
|
||||||
|
@ -8,27 +8,27 @@
|
|||||||
@foreach($news as $item)
|
@foreach($news as $item)
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h4 class="title">{!! $item->subject !!}</h4>
|
<h4 class="title">{{ $item->subject }}</h4>
|
||||||
<p class="category">{!! $item->user->name !!} - {!! show_datetime($item->created_at) !!}</p>
|
<p class="category">{{ $item->user->name }} - {{ show_datetime($item->created_at) }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!! $item->body !!}
|
{{ $item->body }}
|
||||||
|
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::open(['route' => 'admin.dashboard.news',
|
{{ Form::open(['route' => 'admin.dashboard.news',
|
||||||
'method' => 'delete',
|
'method' => 'delete',
|
||||||
'class' => 'pjax_news_form',
|
'class' => 'pjax_news_form',
|
||||||
]) !!}
|
]) }}
|
||||||
{!! Form::hidden('news_id', $item->id) !!}
|
{{ Form::hidden('news_id', $item->id) }}
|
||||||
{!!
|
{{
|
||||||
Form::button('<i class="far fa-trash-alt"></i> delete',
|
Form::button('<i class="far fa-trash-alt"></i> delete',
|
||||||
['type' => 'submit',
|
['type' => 'submit',
|
||||||
'class' => ' btn btn-danger btn-xs text-small',
|
'class' => ' btn btn-danger btn-xs text-small',
|
||||||
'onclick' => "return confirm('Are you sure?')"
|
'onclick' => "return confirm('Are you sure?')"
|
||||||
])
|
])
|
||||||
|
|
||||||
!!}
|
}}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
@ -37,29 +37,29 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<h4 class="title">Add News</h4>
|
<h4 class="title">Add News</h4>
|
||||||
</div>
|
</div>
|
||||||
{!! Form::open(['route' => 'admin.dashboard.news',
|
{{ Form::open(['route' => 'admin.dashboard.news',
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'class' => 'pjax_news_form',
|
'class' => 'pjax_news_form',
|
||||||
]) !!}
|
]) }}
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! Form::label('subject', 'Subject:') !!}</td>
|
<td>{{ Form::label('subject', 'Subject:') }}</td>
|
||||||
<td>{!! Form::text('subject', '', ['class' => 'form-control']) !!}</td>
|
<td>{{ Form::text('subject', '', ['class' => 'form-control']) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! Form::label('body', 'Body:') !!}</td>
|
<td>{{ Form::label('body', 'Body:') }}</td>
|
||||||
<td>{!! Form::textarea('body', '', ['class' => 'form-control']) !!}</td>
|
<td>{{ Form::textarea('body', '', ['class' => 'form-control']) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!!
|
{{
|
||||||
Form::button('<i class="fas fa-plus-circle"></i> add',
|
Form::button('<i class="fas fa-plus-circle"></i> add',
|
||||||
['type' => 'submit',
|
['type' => 'submit',
|
||||||
'class' => 'btn btn-success btn-s'])
|
'class' => 'btn btn-success btn-s'])
|
||||||
|
|
||||||
!!}
|
}}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::open(['route' => 'admin.expenses.store']) !!}
|
{{ Form::open(['route' => 'admin.expenses.store']) }}
|
||||||
@include('admin.expenses.fields')
|
@include('admin.expenses.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($expense, ['route' => ['admin.expenses.update', $expense->id], 'method' => 'patch']) !!}
|
{{ Form::model($expense, ['route' => ['admin.expenses.update', $expense->id], 'method' => 'patch']) }}
|
||||||
@include('admin.expenses.fields')
|
@include('admin.expenses.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Code Field -->
|
<!-- Code Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('airline_id', 'Airline:') !!}
|
{{ Form::label('airline_id', 'Airline:') }}
|
||||||
|
|
||||||
{!! Form::select('airline_id', $airlines_list, null , ['class' => 'form-control select2']) !!}
|
{{ Form::select('airline_id', $airlines_list, null , ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
If an airline is selected, then the expense will only be applied
|
If an airline is selected, then the expense will only be applied
|
||||||
@ -13,21 +13,21 @@
|
|||||||
|
|
||||||
<!-- Name Field -->
|
<!-- Name Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('type', 'Expense Type:') !!} <span class="required">*</span>
|
{{ Form::label('type', 'Expense Type:') }} <span class="required">*</span>
|
||||||
{!! Form::select('type', $expense_types, null , ['class' => 'form-control select2']) !!}
|
{{ Form::select('type', $expense_types, null , ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('type') }}</p>
|
<p class="text-danger">{{ $errors->first('type') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('name', 'Expense Name:') !!}
|
{{ Form::label('name', 'Expense Name:') }}
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('amount', 'Amount:') !!}
|
{{ Form::label('amount', 'Amount:') }}
|
||||||
{!! Form::number('amount', null, ['class' => 'form-control', 'min' => 0]) !!}
|
{{ Form::number('amount', null, ['class' => 'form-control', 'min' => 0]) }}
|
||||||
<p class="text-danger">{{ $errors->first('amount') }}</p>
|
<p class="text-danger">{{ $errors->first('amount') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -36,10 +36,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
{!! Form::label('multiplier', 'Multiplier:') !!}
|
{{ Form::label('multiplier', 'Multiplier:') }}
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{!! Form::hidden('multiplier', 0, false) !!}
|
{{ Form::hidden('multiplier', 0, false) }}
|
||||||
{!! Form::checkbox('multiplier', 1, null) !!}
|
{{ Form::checkbox('multiplier', 1, null) }}
|
||||||
</label>
|
</label>
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
If checked, with a PIREP, this expense can be modified by a multiplier
|
If checked, with a PIREP, this expense can be modified by a multiplier
|
||||||
@ -48,17 +48,17 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
{!! Form::label('active', 'Active:') !!}
|
{{ Form::label('active', 'Active:') }}
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{!! Form::hidden('active', 0, false) !!}
|
{{ Form::hidden('active', 0, false) }}
|
||||||
{!! Form::checkbox('active', 1, null) !!}
|
{{ Form::checkbox('active', 1, null) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.expenses.index') !!}" class="btn btn-default">Cancel</a>
|
<a href="{{ route('admin.expenses.index') }}" class="btn btn-default">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
@section('title', 'Expenses')
|
@section('title', 'Expenses')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! route('admin.expenses.create') !!}">
|
<a href="{{ route('admin.expenses.create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New</a>
|
Add New</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -10,29 +10,29 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($expenses as $expense)
|
@foreach($expenses as $expense)
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{!! route('admin.expenses.edit', [$expense->id]) !!}">
|
<td><a href="{{ route('admin.expenses.edit', [$expense->id]) }}">
|
||||||
{!! $expense->name !!}</a>
|
{{ $expense->name }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{!! \App\Models\Enums\ExpenseType::label($expense->type) !!}</td>
|
<td>{{ \App\Models\Enums\ExpenseType::label($expense->type) }}</td>
|
||||||
<td style="text-align: center;">{!! $expense->amount !!}</td>
|
<td style="text-align: center;">{{ $expense->amount }}</td>
|
||||||
<td>
|
<td>
|
||||||
@if(filled($expense->airline))
|
@if(filled($expense->airline))
|
||||||
{!! $expense->airline->name !!}
|
{{ $expense->airline->name }}
|
||||||
@else
|
@else
|
||||||
<span class="description">-</span>
|
<span class="description">-</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<span class="label label-{!! $expense->active?'success':'default' !!}">
|
<span class="label label-{{ $expense->active?'success':'default' }}">
|
||||||
{!! \App\Models\Enums\ActiveState::label($expense->active) !!}
|
{{ \App\Models\Enums\ActiveState::label($expense->active) }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{!! Form::open(['route' => ['admin.expenses.destroy', $expense->id], 'method' => 'delete']) !!}
|
{{ Form::open(['route' => ['admin.expenses.destroy', $expense->id], 'method' => 'delete']) }}
|
||||||
<a href="{!! route('admin.expenses.edit', [$expense->id]) !!}"
|
<a href="{{ route('admin.expenses.edit', [$expense->id]) }}"
|
||||||
class='btn btn-sm btn-success btn-icon'><i class="fas fa-pencil-alt"></i></a>
|
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::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::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::open(['route' => 'admin.fares.store']) !!}
|
{{ Form::open(['route' => 'admin.fares.store']) }}
|
||||||
@include('admin.fares.fields')
|
@include('admin.fares.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($fare, ['route' => ['admin.fares.update', $fare->id], 'method' => 'patch']) !!}
|
{{ Form::model($fare, ['route' => ['admin.fares.update', $fare->id], 'method' => 'patch']) }}
|
||||||
@include('admin.fares.fields')
|
@include('admin.fares.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -10,70 +10,70 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('code', 'Code:') !!} <span class="required">*</span>
|
{{ Form::label('code', 'Code:') }} <span class="required">*</span>
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
How this fare class will show up on a ticket
|
How this fare class will show up on a ticket
|
||||||
@endcomponent
|
@endcomponent
|
||||||
{!! Form::text('code', null, ['class' => 'form-control']) !!}
|
{{ Form::text('code', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('code') }}</p>
|
<p class="text-danger">{{ $errors->first('code') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('name', 'Name:') !!} <span class="required">*</span>
|
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
The fare class name, E.g, "Economy" or "First"
|
The fare class name, E.g, "Economy" or "First"
|
||||||
@endcomponent
|
@endcomponent
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('price', 'Price:') !!}
|
{{ Form::label('price', 'Price:') }}
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
This is the price of a ticket for a passenger
|
This is the price of a ticket for a passenger
|
||||||
@endcomponent
|
@endcomponent
|
||||||
{!! Form::text('price', null, ['class' => 'form-control', 'placeholder' => 0]) !!}
|
{{ Form::text('price', null, ['class' => 'form-control', 'placeholder' => 0]) }}
|
||||||
<p class="text-danger">{{ $errors->first('price') }}</p>
|
<p class="text-danger">{{ $errors->first('price') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('cost', 'Cost:') !!}
|
{{ Form::label('cost', 'Cost:') }}
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
The operating cost
|
The operating cost
|
||||||
@endcomponent
|
@endcomponent
|
||||||
{!! Form::text('cost', null, ['class' => 'form-control', 'placeholder' => 0]) !!}
|
{{ Form::text('cost', null, ['class' => 'form-control', 'placeholder' => 0]) }}
|
||||||
<p class="text-danger">{{ $errors->first('cost') }}</p>
|
<p class="text-danger">{{ $errors->first('cost') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('capacity', 'Capacity:') !!}
|
{{ Form::label('capacity', 'Capacity:') }}
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
The number of seats available in this class.
|
The number of seats available in this class.
|
||||||
@endcomponent
|
@endcomponent
|
||||||
{!! Form::text('capacity', null, ['class' => 'form-control', 'placeholder' => 0]) !!}
|
{{ Form::text('capacity', null, ['class' => 'form-control', 'placeholder' => 0]) }}
|
||||||
<p class="text-danger">{{ $errors->first('capacity') }}</p>
|
<p class="text-danger">{{ $errors->first('capacity') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('notes', 'Notes:') !!}
|
{{ Form::label('notes', 'Notes:') }}
|
||||||
{!! Form::text('notes', null, ['class' => 'form-control']) !!}
|
{{ Form::text('notes', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Active Field -->
|
<!-- Active Field -->
|
||||||
<div class="form-group col-sm-12">
|
<div class="form-group col-sm-12">
|
||||||
{!! Form::label('active', 'Active:') !!}
|
{{ Form::label('active', 'Active:') }}
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{!! Form::hidden('active', 0, false) !!}
|
{{ Form::hidden('active', 0, false) }}
|
||||||
{!! Form::checkbox('active', 1, null) !!}
|
{{ Form::checkbox('active', 1, null) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Submit Field -->
|
<!-- Submit Field -->
|
||||||
<div class="form-group col-sm-12">
|
<div class="form-group col-sm-12">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.fares.index') !!}" class="btn btn-warn">Cancel</a>
|
<a href="{{ route('admin.fares.index') }}" class="btn btn-warn">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
@section('title', 'Fares')
|
@section('title', 'Fares')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! route('admin.fares.create') !!}">
|
<a href="{{ route('admin.fares.create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New
|
Add New
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,35 +1,35 @@
|
|||||||
<!-- Code Field -->
|
<!-- Code Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('code', 'Code:') !!}
|
{{ Form::label('code', 'Code:') }}
|
||||||
<p>{!! $fare->code !!}</p>
|
<p>{{ $fare->code }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Name Field -->
|
<!-- Name Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('name', 'Name:') !!}
|
{{ Form::label('name', 'Name:') }}
|
||||||
<p>{!! $fare->name !!}</p>
|
<p>{{ $fare->name }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Price Field -->
|
<!-- Price Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('price', 'Price:') !!}
|
{{ Form::label('price', 'Price:') }}
|
||||||
<p>{!! $fare->price !!}</p>
|
<p>{{ $fare->price }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Cost Field -->
|
<!-- Cost Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('cost', 'Cost:') !!}
|
{{ Form::label('cost', 'Cost:') }}
|
||||||
<p>{!! $fare->cost !!}</p>
|
<p>{{ $fare->cost }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Notes Field -->
|
<!-- Notes Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('notes', 'Notes:') !!}
|
{{ Form::label('notes', 'Notes:') }}
|
||||||
<p>{!! $fare->notes !!}</p>
|
<p>{{ $fare->notes }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Active Field -->
|
<!-- Active Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('active', 'Active:') !!}
|
{{ Form::label('active', 'Active:') }}
|
||||||
<p>{!! $fare->active !!}</p>
|
<p>{{ $fare->active }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($fares as $fare)
|
@foreach($fares as $fare)
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{!! route('admin.fares.edit', [$fare->id]) !!}">{!! $fare->code !!}</a></td>
|
<td><a href="{{ route('admin.fares.edit', [$fare->id]) }}">{{ $fare->code }}</a></td>
|
||||||
<td>{!! $fare->name !!}</td>
|
<td>{{ $fare->name }}</td>
|
||||||
<td>{!! $fare->price !!}</td>
|
<td>{{ $fare->price }}</td>
|
||||||
<td>{!! $fare->cost !!}</td>
|
<td>{{ $fare->cost }}</td>
|
||||||
<td>{!! $fare->notes !!}</td>
|
<td>{{ $fare->notes }}</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
@if($fare->active == 1)
|
@if($fare->active == 1)
|
||||||
<span class="label label-success">Active</span>
|
<span class="label label-success">Active</span>
|
||||||
@ -24,11 +24,11 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{!! Form::open(['route' => ['admin.fares.destroy', $fare->id], 'method' => 'delete']) !!}
|
{{ Form::open(['route' => ['admin.fares.destroy', $fare->id], 'method' => 'delete']) }}
|
||||||
<a href="{!! route('admin.fares.edit', [$fare->id]) !!}" class='btn btn-sm btn-success btn-icon'>
|
<a href="{{ route('admin.fares.edit', [$fare->id]) }}" class='btn btn-sm btn-success btn-icon'>
|
||||||
<i class="fas fa-pencil-alt"></i></a>
|
<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::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::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -2,18 +2,18 @@
|
|||||||
|
|
||||||
@section('title', 'Financial Reports')
|
@section('title', 'Financial Reports')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li><a href="{!! route('admin.finances.index') !!}"><i class="ti-menu-alt"></i>Overview</a></li>
|
<li><a href="{{ route('admin.finances.index') }}"><i class="ti-menu-alt"></i>Overview</a></li>
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
{!! Form::select(
|
{{ Form::select(
|
||||||
'month_select',
|
'month_select',
|
||||||
$months_list,
|
$months_list,
|
||||||
$current_month,
|
$current_month,
|
||||||
['id' => 'month_select']
|
['id' => 'month_select']
|
||||||
) !!}
|
) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@include('admin.finances.table')
|
@include('admin.finances.table')
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
@foreach($transaction_groups as $group)
|
@foreach($transaction_groups as $group)
|
||||||
|
|
||||||
<h3>{!! $group['airline']->icao !!} - {!! $group['airline']->name !!}</h3>
|
<h3>{{ $group['airline']->icao }} - {{ $group['airline']->name }}</h3>
|
||||||
|
|
||||||
<table
|
<table
|
||||||
id="finances-table"
|
id="finances-table"
|
||||||
@ -17,16 +17,16 @@
|
|||||||
@foreach($group['transactions'] as $ta)
|
@foreach($group['transactions'] as $ta)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{!! $ta->transaction_group !!}
|
{{ $ta->transaction_group }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if($ta->sum_credits)
|
@if($ta->sum_credits)
|
||||||
{!! money($ta->sum_credits, $ta->currency) !!}
|
{{ money($ta->sum_credits, $ta->currency) }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if($ta->sum_debits)
|
@if($ta->sum_debits)
|
||||||
<i>{!! money($ta->sum_debits, $ta->currency) !!}</i>
|
<i>{{ money($ta->sum_debits, $ta->currency) }}</i>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -36,10 +36,10 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>
|
<td>
|
||||||
{!! $group['credits'] !!}
|
{{ $group['credits'] }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<i>{!! $group['debits'] !!}</i>
|
<i>{{ $group['debits'] }}</i>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -50,7 +50,7 @@
|
|||||||
<b>Total</b>
|
<b>Total</b>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{!! $group['credits']->subtract($group['debits']) !!}
|
{{ $group['credits']->subtract($group['debits']) }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@if($errors->has($field))
|
@if($errors->has($field))
|
||||||
<p class="text-danger" style="margin-top: 10px;">{!! $errors->first($field); !!}</p>
|
<p class="text-danger" style="margin-top: 10px;">{{ $errors->first($field) }}</p>
|
||||||
{{--<div class="alert alert-danger" role="alert" style="margin-top: 10px;">
|
{{--<div class="alert alert-danger" role="alert" style="margin-top: 10px;">
|
||||||
{!! $errors->first($field); !!}
|
{{ $errors->first($field) }}
|
||||||
</div>--}}
|
</div>--}}
|
||||||
@endif
|
@endif
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
data-dismiss="alert"
|
data-dismiss="alert"
|
||||||
aria-hidden="true">×</button>
|
aria-hidden="true">×</button>
|
||||||
|
|
||||||
{!! $message['message'] !!}
|
{{ $message['message'] }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($flight, ['route' => ['admin.flights.store']]) !!}
|
{{ Form::model($flight, ['route' => ['admin.flights.store']]) }}
|
||||||
@include('admin.flights.fields')
|
@include('admin.flights.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<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')
|
@include('admin.flights.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -31,28 +31,28 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($flight->fares as $atf)
|
@foreach($flight->fares as $atf)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="sorting_1">{!! $atf->name !!}</td>
|
<td class="sorting_1">{{ $atf->name }}</td>
|
||||||
<td style="text-align: center;">{!! $atf->code !!}</td>
|
<td style="text-align: center;">{{ $atf->code }}</td>
|
||||||
<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>
|
||||||
<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>
|
||||||
<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>
|
||||||
<td style="text-align: center; width:3%;">
|
<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',
|
'method' => 'delete',
|
||||||
'class' => 'pjax_fares_form'
|
'class' => 'pjax_fares_form'
|
||||||
])
|
])
|
||||||
!!}
|
}}
|
||||||
{!! Form::hidden('fare_id', $atf->id) !!}
|
{{ Form::hidden('fare_id', $atf->id) }}
|
||||||
{!! Form::button('<i class="fa fa-times"></i>',
|
{{ Form::button('<i class="fa fa-times"></i>',
|
||||||
['type' => 'submit',
|
['type' => 'submit',
|
||||||
'class' => 'btn btn-danger btn-xs']) !!}
|
'class' => 'btn btn-danger btn-xs']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -62,21 +62,21 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/fares',
|
{{ Form::open(['url' => '/admin/flights/'.$flight->id.'/fares',
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'class' => 'pjax_fares_form form-inline'
|
'class' => 'pjax_fares_form form-inline'
|
||||||
])
|
])
|
||||||
!!}
|
}}
|
||||||
{!! Form::select('fare_id', $avail_fares, null, [
|
{{ Form::select('fare_id', $avail_fares, null, [
|
||||||
'placeholder' => 'Select Fare',
|
'placeholder' => 'Select Fare',
|
||||||
'class' => 'ac-fare-dropdown form-control input-lg select2',
|
'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',
|
['type' => 'submit',
|
||||||
'class' => 'btn btn-success btn-s']) !!}
|
'class' => 'btn btn-success btn-s']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,29 +1,29 @@
|
|||||||
<!-- Airline Id Field -->
|
<!-- Airline Id Field -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('airline_id', 'Airline:') !!} <span class="required">*</span>
|
{{ Form::label('airline_id', 'Airline:') }} <span class="required">*</span>
|
||||||
{!! Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) !!}
|
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Flight Number Field -->
|
<!-- Flight Number Field -->
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('flight_number', 'Flight Number:') !!} <span class="required">*</span>
|
{{ Form::label('flight_number', 'Flight Number:') }} <span class="required">*</span>
|
||||||
{!! Form::text('flight_number', null, ['class' => 'form-control']) !!}
|
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
|
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Route Code Field -->
|
<!-- Route Code Field -->
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('route_code', 'Route Code:') !!}
|
{{ Form::label('route_code', 'Route Code:') }}
|
||||||
{!! Form::text('route_code', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}
|
{{ Form::text('route_code', null, ['class'=>'form-control', 'placeholder'=>'optional']) }}
|
||||||
<p class="text-danger">{{ $errors->first('route_code') }}</p>
|
<p class="text-danger">{{ $errors->first('route_code') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Route Leg Field -->
|
<!-- Route Leg Field -->
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('route_leg', 'Route Leg:') !!}
|
{{ Form::label('route_leg', 'Route Leg:') }}
|
||||||
{!! Form::text('route_leg', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}
|
{{ Form::text('route_leg', null, ['class'=>'form-control', 'placeholder'=>'optional']) }}
|
||||||
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
|
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -31,28 +31,28 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('level', 'Flight Type:') !!} <span class="required">*</span>
|
{{ Form::label('level', 'Flight Type:') }} <span class="required">*</span>
|
||||||
{!! Form::select('flight_type', $flight_types, null, ['class' => 'form-control select2']) !!}
|
{{ Form::select('flight_type', $flight_types, null, ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('flight_type') }}</p>
|
<p class="text-danger">{{ $errors->first('flight_type') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('dpt_airport_id', 'Departure Airport:') !!} <span class="required">*</span>
|
{{ Form::label('dpt_airport_id', 'Departure Airport:') }} <span class="required">*</span>
|
||||||
{!! Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
|
{{ Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
|
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Arr Airport Id Field -->
|
<!-- Arr Airport Id Field -->
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('arr_airport_id', 'Arrival Airport:') !!} <span class="required">*</span>
|
{{ Form::label('arr_airport_id', 'Arrival Airport:') }} <span class="required">*</span>
|
||||||
{!! Form::select('arr_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
|
{{ Form::select('arr_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
|
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Alt Airport Id Field -->
|
<!-- Alt Airport Id Field -->
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('alt_airport_id', 'Alt Airport:') !!}
|
{{ Form::label('alt_airport_id', 'Alt Airport:') }}
|
||||||
{!! Form::select('alt_airport_id', $alt_airports, null , ['class' => 'form-control select2']) !!}
|
{{ Form::select('alt_airport_id', $alt_airports, null , ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('alt_airport_id') }}</p>
|
<p class="text-danger">{{ $errors->first('alt_airport_id') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -61,44 +61,44 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="form-group col-sm-2">
|
<div class="form-group col-sm-2">
|
||||||
{!! Form::label('dpt_time', 'Departure Time:') !!}
|
{{ Form::label('dpt_time', 'Departure Time:') }}
|
||||||
{!! Form::text('dpt_time', null, ['class' => 'form-control']) !!}
|
{{ Form::text('dpt_time', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('dpt_time') }}</p>
|
<p class="text-danger">{{ $errors->first('dpt_time') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-2">
|
<div class="form-group col-sm-2">
|
||||||
{!! Form::label('arr_time', 'Arrival Time:') !!}
|
{{ Form::label('arr_time', 'Arrival Time:') }}
|
||||||
{!! Form::text('arr_time', null, ['class' => 'form-control']) !!}
|
{{ Form::text('arr_time', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('arr_time') }}</p>
|
<p class="text-danger">{{ $errors->first('arr_time') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
<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">
|
<div style="float: left">
|
||||||
{!! Form::number('hours', null, [
|
{{ Form::number('hours', null, [
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'placeholder' => 'hours'
|
'placeholder' => 'hours'
|
||||||
]) !!}
|
]) }}
|
||||||
</div>
|
</div>
|
||||||
<div style="float: left">
|
<div style="float: left">
|
||||||
{!! Form::number('minutes', null, [
|
{{ Form::number('minutes', null, [
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'placeholder' => 'minutes'
|
'placeholder' => 'minutes'
|
||||||
]) !!}
|
]) }}
|
||||||
</div>
|
</div>
|
||||||
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
||||||
<p class="text-danger">{{ $errors->first('minutes') }}</p>
|
<p class="text-danger">{{ $errors->first('minutes') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-2">
|
<div class="form-group col-sm-2">
|
||||||
{!! Form::label('level', 'Flight Level:') !!}
|
{{ Form::label('level', 'Flight Level:') }}
|
||||||
{!! Form::text('level', null, ['class' => 'form-control']) !!}
|
{{ Form::text('level', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('level') }}</p>
|
<p class="text-danger">{{ $errors->first('level') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-2">
|
<div class="form-group col-sm-2">
|
||||||
{!! Form::label('distance', 'Distance:') !!} <span class="small">in nautical miles</span>
|
{{ Form::label('distance', 'Distance:') }} <span class="small">in nautical miles</span>
|
||||||
{!! Form::text('distance', null, ['class' => 'form-control']) !!}
|
{{ Form::text('distance', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('distance') }}</p>
|
<p class="text-danger">{{ $errors->first('distance') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -106,15 +106,15 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Route Field -->
|
<!-- Route Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('route', 'Route:') !!}
|
{{ Form::label('route', 'Route:') }}
|
||||||
{!! Form::textarea('route', null, ['class' => 'form-control']) !!}
|
{{ Form::textarea('route', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('route') }}</p>
|
<p class="text-danger">{{ $errors->first('route') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Notes Field -->
|
<!-- Notes Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('notes', 'Notes:') !!}
|
{{ Form::label('notes', 'Notes:') }}
|
||||||
{!! Form::textarea('notes', null, ['class' => 'form-control']) !!}
|
{{ Form::textarea('notes', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -122,18 +122,18 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Active Field -->
|
<!-- Active Field -->
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
{!! Form::label('active', 'Active:') !!}
|
{{ Form::label('active', 'Active:') }}
|
||||||
{!! Form::hidden('active', 0, false) !!}
|
{{ Form::hidden('active', 0, false) }}
|
||||||
@if($flight!==null)
|
@if($flight!==null)
|
||||||
{!! Form::checkbox('active', $flight->active, ['class' => 'form-control icheck']) !!}
|
{{ Form::checkbox('active', $flight->active, ['class' => 'form-control icheck']) }}
|
||||||
@else
|
@else
|
||||||
{!! Form::checkbox('active', null, ['class' => 'form-control icheck']) !!}
|
{{ Form::checkbox('active', null, ['class' => 'form-control icheck']) }}
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.flights.index') !!}" class="btn btn-default">Cancel</a>
|
<a href="{{ route('admin.flights.index') }}" class="btn btn-default">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,23 +11,23 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($flight->fields as $field)
|
@foreach($flight->fields as $field)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $field->name !!}</td>
|
<td>{{ $field->name }}</td>
|
||||||
<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>
|
||||||
<td style="width: 10%; text-align: center;" class="form-inline">
|
<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',
|
'method' => 'delete',
|
||||||
'class' => 'pjax_form pjax_flight_fields'
|
'class' => 'pjax_form pjax_flight_fields'
|
||||||
]) !!}
|
]) }}
|
||||||
{!! Form::hidden('field_id', $field->id) !!}
|
{{ Form::hidden('field_id', $field->id) }}
|
||||||
<div class='btn-group'>
|
<div class='btn-group'>
|
||||||
{!! Form::button('<i class="fa fa-times"></i>',
|
{{ Form::button('<i class="fa fa-times"></i>',
|
||||||
['type' => 'submit',
|
['type' => 'submit',
|
||||||
'class' => 'btn btn-danger btn-xs'])
|
'class' => 'btn btn-danger btn-xs'])
|
||||||
!!}
|
}}
|
||||||
</div>
|
</div>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -37,25 +37,25 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::open([
|
{{ Form::open([
|
||||||
'url' => '/admin/flights/'.$flight->id.'/fields',
|
'url' => '/admin/flights/'.$flight->id.'/fields',
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'class' => 'pjax_form form-inline pjax_flight_fields'
|
'class' => 'pjax_form form-inline pjax_flight_fields'
|
||||||
])
|
])
|
||||||
!!}
|
}}
|
||||||
|
|
||||||
{!! Form::label('name', 'Name:') !!}
|
{{ Form::label('name', 'Name:') }}
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
|
|
||||||
{!! Form::label('value', 'Value:') !!}
|
{{ Form::label('value', 'Value:') }}
|
||||||
{!! Form::text('value', null, ['class' => 'form-control']) !!}
|
{{ Form::text('value', null, ['class' => 'form-control']) }}
|
||||||
|
|
||||||
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
|
{{ Form::button('<i class="glyphicon glyphicon-plus"></i> add',
|
||||||
['type' => 'submit',
|
['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('name') }}</p>
|
||||||
<p class="text-danger">{{ $errors->first('value') }}</p>
|
<p class="text-danger">{{ $errors->first('value') }}</p>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
@section('title', 'Flights')
|
@section('title', 'Flights')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! route('admin.flights.create') !!}">
|
<a href="{{ route('admin.flights.create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New</a>
|
Add New</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -6,7 +6,7 @@ function setEditable() {
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
mode: 'inline',
|
mode: 'inline',
|
||||||
emptytext: 'inherited',
|
emptytext: 'inherited',
|
||||||
url: '{!! url('/admin/flights/'.$flight->id.'/fares') !!}',
|
url: '{{ url('/admin/flights/'.$flight->id.'/fares') }}',
|
||||||
title: 'Enter override value',
|
title: 'Enter override value',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function (params) {
|
params: function (params) {
|
||||||
@ -27,7 +27,7 @@ $(document).ready(function () {
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
mode: 'inline',
|
mode: 'inline',
|
||||||
emptytext: '0',
|
emptytext: '0',
|
||||||
url: '/admin/flights/{!! $flight->id !!}/fields',
|
url: '/admin/flights/{{ $flight->id }}/fields',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function (params) {
|
params: function (params) {
|
||||||
return {
|
return {
|
||||||
|
@ -2,21 +2,21 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="form-group">
|
<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::label('flight_number', 'Flight Number:') }}
|
||||||
{!! Form::text('flight_number', null, ['class' => 'form-control']) !!}
|
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
|
||||||
|
|
||||||
{!! Form::label('dep_icao', 'Departure:') !!}
|
{{ Form::label('dep_icao', 'Departure:') }}
|
||||||
{!! Form::select('dep_icao', $airports, null , ['class' => 'form-control']) !!}
|
{{ Form::select('dep_icao', $airports, null , ['class' => 'form-control']) }}
|
||||||
|
|
||||||
{!! Form::label('arr_icao', 'Arrival:') !!}
|
{{ Form::label('arr_icao', 'Arrival:') }}
|
||||||
{!! Form::select('arr_icao', $airports, null , ['class' => 'form-control']) !!}
|
{{ Form::select('arr_icao', $airports, null , ['class' => 'form-control']) }}
|
||||||
|
|
||||||
{!! Form::submit('find', ['class' => 'btn btn-primary']) !!}
|
{{ Form::submit('find', ['class' => 'btn btn-primary']) }}
|
||||||
|
|
||||||
<a href="{!! route('admin.flights.index') !!}">clear</a>
|
<a href="{{ route('admin.flights.index') }}">clear</a>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<section class="content-header">
|
<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">
|
<h1 class="pull-right">
|
||||||
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px"
|
<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>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
{{--<i class="fa fa-text-width"></i>--}}
|
{{--<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>
|
||||||
<div class="box-body"><p class="lead">
|
<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>
|
</p></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -14,10 +14,10 @@
|
|||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
{{--<i class="fa fa-text-width"></i>--}}
|
{{--<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>
|
||||||
<div class="box-body"><p class="lead">
|
<div class="box-body"><p class="lead">
|
||||||
{!! $flight->arr_airport->icao !!} - {!! $flight->arr_airport->name !!}
|
{{ $flight->arr_airport->icao }} - {{ $flight->arr_airport->name }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -29,52 +29,52 @@
|
|||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<!-- Route Code Field -->
|
<!-- Route Code Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('route_code', 'Route Code:') !!}
|
{{ Form::label('route_code', 'Route Code:') }}
|
||||||
{!! $flight->route_code !!}
|
{{ $flight->route_code }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Route Leg Field -->
|
<!-- Route Leg Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('route_leg', 'Route Leg:') !!}
|
{{ Form::label('route_leg', 'Route Leg:') }}
|
||||||
{!! $flight->route_leg !!}
|
{{ $flight->route_leg }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Alt Airport Id Field -->
|
<!-- Alt Airport Id Field -->
|
||||||
@if($flight->alt_airport_id)
|
@if($flight->alt_airport_id)
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('alt_airport_id', 'Alt Airport Id:') !!}
|
{{ Form::label('alt_airport_id', 'Alt Airport Id:') }}
|
||||||
<p>{!! $flight->alt_airport->icao !!}</p>
|
<p>{{ $flight->alt_airport->icao }}</p>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<!-- Route Field -->
|
<!-- Route Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('route', 'Route:') !!}
|
{{ Form::label('route', 'Route:') }}
|
||||||
<p>{!! $flight->route !!}</p>
|
<p>{{ $flight->route }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Dpt Time Field -->
|
<!-- Dpt Time Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('dpt_time', 'Departure Time:') !!}
|
{{ Form::label('dpt_time', 'Departure Time:') }}
|
||||||
{!! $flight->dpt_time !!}
|
{{ $flight->dpt_time }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Arr Time Field -->
|
<!-- Arr Time Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('arr_time', 'Arrival Time:') !!}
|
{{ Form::label('arr_time', 'Arrival Time:') }}
|
||||||
{!! $flight->arr_time !!}
|
{{ $flight->arr_time }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Notes Field -->
|
<!-- Notes Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('notes', 'Notes:') !!}
|
{{ Form::label('notes', 'Notes:') }}
|
||||||
<p>{!! $flight->notes !!}</p>
|
<p>{{ $flight->notes }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Active Field -->
|
<!-- Active Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('active', 'Active:') !!}
|
{{ Form::label('active', 'Active:') }}
|
||||||
<p>{!! $flight->active !!}</p>
|
<p>{{ $flight->active }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,20 +14,20 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($flight->subfleets as $sf)
|
@foreach($flight->subfleets as $sf)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $sf->type !!}</td>
|
<td>{{ $sf->type }}</td>
|
||||||
<td>{!! $sf->name !!}</td>
|
<td>{{ $sf->name }}</td>
|
||||||
<td style="width: 10%; text-align: center;" class="form-inline">
|
<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',
|
'method' => 'delete',
|
||||||
'class' => 'pjax_subfleet_form']) !!}
|
'class' => 'pjax_subfleet_form']) }}
|
||||||
{!! Form::hidden('subfleet_id', $sf->id) !!}
|
{{ Form::hidden('subfleet_id', $sf->id) }}
|
||||||
<div class='btn-group'>
|
<div class='btn-group'>
|
||||||
{!! Form::button('<i class="fa fa-times"></i>',
|
{{ Form::button('<i class="fa fa-times"></i>',
|
||||||
['type' => 'submit',
|
['type' => 'submit',
|
||||||
'class' => 'btn btn-danger btn-xs'])
|
'class' => 'btn btn-danger btn-xs'])
|
||||||
!!}
|
}}
|
||||||
</div>
|
</div>
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -37,21 +37,21 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::open([
|
{{ Form::open([
|
||||||
'url' => '/admin/flights/'.$flight->id.'/subfleets',
|
'url' => '/admin/flights/'.$flight->id.'/subfleets',
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'class' => 'pjax_form form-inline pjax_subfleet_form'
|
'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',
|
'placeholder' => 'Select Subfleet',
|
||||||
'class' => 'select2 form-control input-lg',
|
'class' => 'select2 form-control input-lg',
|
||||||
])
|
])
|
||||||
!!}
|
}}
|
||||||
{!! Form::button('<i class="fas fa-plus"></i> add',
|
{{ Form::button('<i class="fas fa-plus"></i> add',
|
||||||
['type' => 'submit',
|
['type' => 'submit',
|
||||||
'class' => 'btn btn-success btn-s']) !!}
|
'class' => 'btn btn-success btn-s']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,24 +15,24 @@
|
|||||||
@foreach($flights as $flight)
|
@foreach($flights as $flight)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{!! route('admin.flights.edit', [$flight->id]) !!}">
|
<a href="{{ route('admin.flights.edit', [$flight->id]) }}">
|
||||||
{!! $flight->airline->code !!}{!! $flight->flight_number !!}
|
{{ $flight->airline->code }}{{ $flight->flight_number }}
|
||||||
@if($flight->route_code)
|
@if($flight->route_code)
|
||||||
(C: {!! $flight->route_code !!} L: {!! $flight->route_leg !!})
|
(C: {{ $flight->route_code }} L: {{ $flight->route_leg }})
|
||||||
@endif
|
@endif
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{!! $flight->dpt_airport->icao !!}</td>
|
<td>{{ $flight->dpt_airport->icao }}</td>
|
||||||
<td>
|
<td>
|
||||||
{!! $flight->arr_airport->icao !!}
|
{{ $flight->arr_airport->icao }}
|
||||||
@if($flight->alt_airport)
|
@if($flight->alt_airport)
|
||||||
(Alt: {!! $flight->alt_airport->icao !!})
|
(Alt: {{ $flight->alt_airport->icao }})
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
{{--<td>{!! $flight->route !!}</td>--}}
|
{{--<td>{{ $flight->route }}</td>--}}
|
||||||
<td>{!! $flight->dpt_time !!}</td>
|
<td>{{ $flight->dpt_time }}</td>
|
||||||
<td>{!! $flight->arr_time !!}</td>
|
<td>{{ $flight->arr_time }}</td>
|
||||||
<td>{!! $flight->notes !!}</td>
|
<td>{{ $flight->notes }}</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
@if($flight->active == 1)
|
@if($flight->active == 1)
|
||||||
<span class="label label-success">Active</span>
|
<span class="label label-success">Active</span>
|
||||||
@ -41,10 +41,10 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: right;">
|
<td style="text-align: right;">
|
||||||
{!! Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) !!}
|
{{ 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>
|
<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::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::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! url('/admin/dashboard') !!}"><i class="pe-7s-display1"></i>dashboard</a>
|
<a href="{{ url('/admin/dashboard') }}"><i class="pe-7s-display1"></i>dashboard</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
@ -10,15 +10,15 @@
|
|||||||
|
|
||||||
<div class="collapse" id="operations_menu" aria-expanded="true">
|
<div class="collapse" id="operations_menu" aria-expanded="true">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li><a href="{!! url('/admin/pireps') !!}"><i class="pe-7s-cloud-upload"></i>flight reports
|
<li><a href="{{ url('/admin/pireps') }}"><i class="pe-7s-cloud-upload"></i>flight reports
|
||||||
<span data-toggle="tooltip" title="3 New"
|
<span data-toggle="tooltip" title="3 New"
|
||||||
class="badge bg-light-blue pull-right">3</span>
|
class="badge bg-light-blue pull-right">3</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="{!! url('/admin/flights') !!}"><i class="pe-7s-vector"></i>flights</a></li>
|
<li><a href="{{ url('/admin/flights') }}"><i class="pe-7s-vector"></i>flights</a></li>
|
||||||
<li><a href="{!! url('/admin/aircraft') !!}"><i class="pe-7s-plane"></i>fleet</a></li>
|
<li><a href="{{ url('/admin/aircraft') }}"><i class="pe-7s-plane"></i>fleet</a></li>
|
||||||
<li><a href="{!! url('/admin/fares') !!}"><i class="pe-7s-graph2"></i>fares</a></li>
|
<li><a href="{{ url('/admin/fares') }}"><i class="pe-7s-graph2"></i>fares</a></li>
|
||||||
<li><a href="{!! url('/admin/finances') !!}"><i class="pe-7s-display1"></i>finances</a></li>
|
<li><a href="{{ url('/admin/finances') }}"><i class="pe-7s-display1"></i>finances</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@ -30,14 +30,14 @@
|
|||||||
|
|
||||||
<div class="collapse" id="config_menu" aria-expanded="true">
|
<div class="collapse" id="config_menu" aria-expanded="true">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li><a href="{!! url('/admin/airlines') !!}"><i
|
<li><a href="{{ url('/admin/airlines') }}"><i
|
||||||
class="pe-7s-paper-plane"></i>airlines</a></li>
|
class="pe-7s-paper-plane"></i>airlines</a></li>
|
||||||
<li><a href="{!! url('/admin/airports') !!}"><i
|
<li><a href="{{ url('/admin/airports') }}"><i
|
||||||
class="pe-7s-map-marker"></i>airports</a></li>
|
class="pe-7s-map-marker"></i>airports</a></li>
|
||||||
<li><a href="{!! url('/admin/expenses') !!}"><i class="pe-7s-cash"></i>expenses</a></li>
|
<li><a href="{{ url('/admin/expenses') }}"><i class="pe-7s-cash"></i>expenses</a></li>
|
||||||
<li><a href="{!! url('/admin/users') !!}"><i class="pe-7s-users"></i>users</a></li>
|
<li><a href="{{ url('/admin/users') }}"><i class="pe-7s-users"></i>users</a></li>
|
||||||
<li><a href="{!! url('/admin/ranks') !!}"><i class="pe-7s-graph1"></i>ranks</a></li>
|
<li><a href="{{ url('/admin/ranks') }}"><i class="pe-7s-graph1"></i>ranks</a></li>
|
||||||
<li><a href="{!! url('/admin/settings') !!}"><i class="pe-7s-config"></i>settings</a></li>
|
<li><a href="{{ url('/admin/settings') }}"><i class="pe-7s-config"></i>settings</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
<div class="collapse" id="addons_menu" aria-expanded="true">
|
<div class="collapse" id="addons_menu" aria-expanded="true">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
@foreach($moduleSvc->getAdminLinks() as &$link)
|
@foreach($moduleSvc->getAdminLinks() as &$link)
|
||||||
<li><a href="{!! url($link['url']) !!}"><i class="{!! $link['icon'] !!}"></i>{!! $link['title'] !!}</a></li>
|
<li><a href="{{ url($link['url']) }}"><i class="{{ $link['icon'] }}"></i>{{ $link['title'] }}</a></li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::open(['route' => 'admin.pirepfields.store']) !!}
|
{{ Form::open(['route' => 'admin.pirepfields.store']) }}
|
||||||
@include('admin.pirepfields.fields')
|
@include('admin.pirepfields.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($field, ['route' => ['admin.pirepfields.update', $field->id], 'method' => 'patch']) !!}
|
{{ Form::model($field, ['route' => ['admin.pirepfields.update', $field->id], 'method' => 'patch']) }}
|
||||||
@include('admin.pirepfields.fields')
|
@include('admin.pirepfields.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('name', 'Name:') !!} <span class="required">*</span>
|
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Required Field -->
|
<!-- Required Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('required', 'Required:') !!}
|
{{ Form::label('required', 'Required:') }}
|
||||||
{!! Form::hidden('required', 0) !!}
|
{{ Form::hidden('required', 0) }}
|
||||||
{!! Form::checkbox('required', null) !!}
|
{{ Form::checkbox('required', null) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Submit Field -->
|
<!-- Submit Field -->
|
||||||
<div class="form-group col-sm-12">
|
<div class="form-group col-sm-12">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.pirepfields.index') !!}" class="btn btn-default">Cancel</a>
|
<a href="{{ route('admin.pirepfields.index') }}" class="btn btn-default">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@extends('admin.app')
|
@extends('admin.app')
|
||||||
@section('title', 'PIREP Fields')
|
@section('title', 'PIREP Fields')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li><a href="{!! route('admin.pirepfields.create') !!}"><i class="ti-plus"></i>Add
|
<li><a href="{{ route('admin.pirepfields.create') }}"><i class="ti-plus"></i>Add
|
||||||
Field</a></li>
|
Field</a></li>
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1>{!! $pirepFields->name !!}</h1>
|
<h1>{{ $pirepFields->name }}</h1>
|
||||||
</section>
|
</section>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="box box-primary">
|
<div class="box box-primary">
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="row" style="padding-left: 20px">
|
<div class="row" style="padding-left: 20px">
|
||||||
@include('admin.pirepfields.show_fields')
|
@include('admin.pirepfields.show_fields')
|
||||||
<a href="{!! route('admin.pirepfields.index') !!}" class="btn btn-default">Back</a>
|
<a href="{{ route('admin.pirepfields.index') }}" class="btn btn-default">Back</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
<!-- Id Field -->
|
<!-- Id Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('id', 'Id:') !!}
|
{{ Form::label('id', 'Id:') }}
|
||||||
<p>{!! $field->id !!}</p>
|
<p>{{ $field->id }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Name Field -->
|
<!-- Name Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('name', 'Name:') !!}
|
{{ Form::label('name', 'Name:') }}
|
||||||
<p>{!! $field->name !!}</p>
|
<p>{{ $field->name }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Required Field -->
|
<!-- Required Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('required', 'Required:') !!}
|
{{ Form::label('required', 'Required:') }}
|
||||||
<p>{!! $field->required !!}</p>
|
<p>{{ $field->required }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Created At Field -->
|
<!-- Created At Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('created_at', 'Created At:') !!}
|
{{ Form::label('created_at', 'Created At:') }}
|
||||||
<p>{!! show_datetime($field->created_at) !!}</p>
|
<p>{{ show_datetime($field->created_at) }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Updated At Field -->
|
<!-- Updated At Field -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::label('updated_at', 'Updated At:') !!}
|
{{ Form::label('updated_at', 'Updated At:') }}
|
||||||
<p>{!! show_datetime($field->updated_at) !!}</p>
|
<p>{{ show_datetime($field->updated_at) }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -15,22 +15,22 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($fields as $field)
|
@foreach($fields as $field)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $field->name !!}</td>
|
<td>{{ $field->name }}</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
@if($field->required === true)
|
@if($field->required === true)
|
||||||
<span class="label label-success">Required</span>
|
<span class="label label-success">Required</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{!! Form::open(['route' => ['admin.pirepfields.destroy', $field->id], 'method' => 'delete']) !!}
|
{{ Form::open(['route' => ['admin.pirepfields.destroy', $field->id], 'method' => 'delete']) }}
|
||||||
<a href="{!! route('admin.pirepfields.edit', [$field->id]) !!}"
|
<a href="{{ route('admin.pirepfields.edit', [$field->id]) }}"
|
||||||
class='btn btn-sm btn-success btn-icon'>
|
class='btn btn-sm btn-success btn-icon'>
|
||||||
<i class="fas fa-pencil-alt"></i></a>
|
<i class="fas fa-pencil-alt"></i></a>
|
||||||
|
|
||||||
{!! Form::button('<i class="fa fa-times"></i>',
|
{{ Form::button('<i class="fa fa-times"></i>',
|
||||||
['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon',
|
['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon',
|
||||||
'onclick' => "return confirm('Are you sure?')"]) !!}
|
'onclick' => "return confirm('Are you sure?')"]) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -2,34 +2,34 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::REJECTED)
|
@if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::REJECTED)
|
||||||
{!! Form::open(['url' => route('admin.pirep.status', ['id' => $pirep->id]),
|
{{ Form::open(['url' => route('admin.pirep.status', ['id' => $pirep->id]),
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'name' => 'accept_'.$pirep->id,
|
'name' => 'accept_'.$pirep->id,
|
||||||
'id' => $pirep->id.'_accept',
|
'id' => $pirep->id.'_accept',
|
||||||
'pirep_id' => $pirep->id,
|
'pirep_id' => $pirep->id,
|
||||||
'new_status' => PirepState::ACCEPTED,
|
'new_status' => PirepState::ACCEPTED,
|
||||||
'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) !!}
|
'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) }}
|
||||||
{!! Form::button('Accept', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Accept', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td>
|
<td>
|
||||||
@if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED)
|
@if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED)
|
||||||
{!! Form::open(['url' => route('admin.pirep.status', ['id' => $pirep->id]),
|
{{ Form::open(['url' => route('admin.pirep.status', ['id' => $pirep->id]),
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'name' => 'reject_'.$pirep->id,
|
'name' => 'reject_'.$pirep->id,
|
||||||
'id' => $pirep->id.'_reject',
|
'id' => $pirep->id.'_reject',
|
||||||
'pirep_id' => $pirep->id,
|
'pirep_id' => $pirep->id,
|
||||||
'new_status' => PirepState::REJECTED,
|
'new_status' => PirepState::REJECTED,
|
||||||
'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) !!}
|
'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) }}
|
||||||
{!! Form::button('Reject', ['type' => 'submit', 'class' => 'btn btn-danger']) !!}
|
{{ Form::button('Reject', ['type' => 'submit', 'class' => 'btn btn-danger']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{!! route('admin.pireps.edit', [$pirep->id]) !!}"
|
<a href="{{ route('admin.pireps.edit', [$pirep->id]) }}"
|
||||||
class='btn btn-info btn-icon'>
|
class='btn btn-info btn-icon'>
|
||||||
<i class="fas fa-pencil-alt"></i> Edit</a>
|
<i class="fas fa-pencil-alt"></i> Edit</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -9,23 +9,23 @@
|
|||||||
@foreach($pirep->comments as $comment)
|
@foreach($pirep->comments as $comment)
|
||||||
<tr>
|
<tr>
|
||||||
<td width="1%" nowrap="" style="vertical-align: text-top">
|
<td width="1%" nowrap="" style="vertical-align: text-top">
|
||||||
<a href="{!! route('admin.users.show', [$comment->user_id]) !!}">
|
<a href="{{ route('admin.users.show', [$comment->user_id]) }}">
|
||||||
{!! $comment->user->name !!}
|
{{ $comment->user->name }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>{!! $comment->comment !!}</p>
|
<p>{{ $comment->comment }}</p>
|
||||||
<p class="small">{!! show_datetime($comment->created_at) !!}</p>
|
<p class="small">{{ show_datetime($comment->created_at) }}</p>
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
{!! Form::open(['url' => url('/admin/pireps/'.$pirep->id.'/comments'),
|
{{ Form::open(['url' => url('/admin/pireps/'.$pirep->id.'/comments'),
|
||||||
'method' => 'delete', 'class' => 'pjax_form form-inline']) !!}
|
'method' => 'delete', 'class' => 'pjax_form form-inline']) }}
|
||||||
{!! Form::hidden('comment_id', $comment->id) !!}
|
{{ Form::hidden('comment_id', $comment->id) }}
|
||||||
{!! Form::button('<i class="fa fa-times"></i>', ['type' => 'submit',
|
{{ Form::button('<i class="fa fa-times"></i>', ['type' => 'submit',
|
||||||
'class' => 'btn btn-danger btn-small',
|
'class' => 'btn btn-danger btn-small',
|
||||||
'onclick' => "return confirm('Are you sure?')",
|
'onclick' => "return confirm('Are you sure?')",
|
||||||
]) !!}
|
]) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -35,12 +35,12 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::open(['url' => url('/admin/pireps/'.$pirep->id.'/comments'),
|
{{ Form::open(['url' => url('/admin/pireps/'.$pirep->id.'/comments'),
|
||||||
'method' => 'post', 'class' => 'pjax_form form-inline']) !!}
|
'method' => 'post', 'class' => 'pjax_form form-inline']) }}
|
||||||
{!! Form::input('text', 'comment', null, ['class' => 'form-control input-sm']) !!}
|
{{ Form::input('text', 'comment', null, ['class' => 'form-control input-sm']) }}
|
||||||
{!! Form::button('<i class="fa fa-plus"></i> Add', ['type' => 'submit',
|
{{ Form::button('<i class="fa fa-plus"></i> Add', ['type' => 'submit',
|
||||||
'class' => 'btn btn-success btn-small']) !!}
|
'class' => 'btn btn-success btn-small']) }}
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::open(['route' => 'admin.pireps.store']) !!}
|
{{ Form::open(['route' => 'admin.pireps.store']) }}
|
||||||
@include('admin.pireps.fields')
|
@include('admin.pireps.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<h5 style="margin-top: 0px;">
|
<h5 style="margin-top: 0px;">
|
||||||
Filed By: <a href="{!! route('admin.users.edit', [$pirep->user_id]) !!}" target="_blank">
|
Filed By: <a href="{{ route('admin.users.edit', [$pirep->user_id]) }}" target="_blank">
|
||||||
{!! $pirep->user->pilot_id !!} {!! $pirep->user->name !!}
|
{{ $pirep->user->pilot_id }} {{ $pirep->user->name }}
|
||||||
</a>
|
</a>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
@ -22,9 +22,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!! Form::model($pirep, ['route' => ['admin.pireps.update', $pirep->id], 'method' => 'patch']) !!}
|
{{ Form::model($pirep, ['route' => ['admin.pireps.update', $pirep->id], 'method' => 'patch']) }}
|
||||||
@include('admin.pireps.fields')
|
@include('admin.pireps.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -47,7 +47,7 @@
|
|||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<button id="recalculate-finances"
|
<button id="recalculate-finances"
|
||||||
class="btn btn-success"
|
class="btn btn-success"
|
||||||
data-pirep-id="{!! $pirep->id !!}">Recalcuate Finances</button>
|
data-pirep-id="{{ $pirep->id }}">Recalcuate Finances</button>
|
||||||
</div>
|
</div>
|
||||||
<h4>transactions</h4>
|
<h4>transactions</h4>
|
||||||
@include('admin.pireps.transactions')
|
@include('admin.pireps.transactions')
|
||||||
|
@ -8,17 +8,17 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($aircraft->subfleet->fares as $fare)
|
@foreach($aircraft->subfleet->fares as $fare)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $fare->name !!} ({!! $fare->code !!})</td>
|
<td>{{ $fare->name }} ({{ $fare->code }})</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@if($read_only)
|
@if($read_only)
|
||||||
<p>{!! $pirep->{'fare_'.$fare->id} !!}</p>
|
<p>{{ $pirep->{'fare_'.$fare->id} }}</p>
|
||||||
{!! Form::hidden('fare_'.$fare->id) !!}
|
{{ Form::hidden('fare_'.$fare->id) }}
|
||||||
@else
|
@else
|
||||||
{!! Form::number('fare_'.$fare->id, null, [
|
{{ Form::number('fare_'.$fare->id, null, [
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'min' => 0,
|
'min' => 0,
|
||||||
'readonly' => $read_only]) !!}
|
'readonly' => $read_only]) }}
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -8,21 +8,21 @@
|
|||||||
@foreach($pirep->fields as $field)
|
@foreach($pirep->fields as $field)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{!! $field->name !!}
|
{{ $field->name }}
|
||||||
@if($field->required === true)
|
@if($field->required === true)
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{!! Form::text($field->slug, null, [
|
{{ Form::text($field->slug, null, [
|
||||||
'class' => 'form-control'
|
'class' => 'form-control'
|
||||||
]) !!}
|
]) }}
|
||||||
</div>
|
</div>
|
||||||
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
|
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{!! PirepSource::label($field->source) !!}
|
{{ PirepSource::label($field->source) }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -9,31 +9,31 @@
|
|||||||
@endif
|
@endif
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('flight_number', 'Flight Number/Route Code/Leg') !!}
|
{{ Form::label('flight_number', 'Flight Number/Route Code/Leg') }}
|
||||||
@if($read_only)
|
@if($read_only)
|
||||||
<p>{!! $pirep->ident !!}
|
<p>{{ $pirep->ident }}
|
||||||
{!! Form::hidden('flight_number') !!}
|
{{ Form::hidden('flight_number') }}
|
||||||
{!! Form::hidden('flight_code') !!}
|
{{ Form::hidden('flight_code') }}
|
||||||
{!! Form::hidden('flight_leg') !!}
|
{{ Form::hidden('flight_leg') }}
|
||||||
</p>
|
</p>
|
||||||
@else
|
@else
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
{!! Form::text('flight_number', null, [
|
{{ Form::text('flight_number', null, [
|
||||||
'placeholder' => 'Flight Number',
|
'placeholder' => 'Flight Number',
|
||||||
'class' => 'form-control']) !!}
|
'class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
|
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
{!! Form::text('route_code', null, [
|
{{ Form::text('route_code', null, [
|
||||||
'placeholder' => 'Code (optional)',
|
'placeholder' => 'Code (optional)',
|
||||||
'class' => 'form-control']) !!}
|
'class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('route_code') }}</p>
|
<p class="text-danger">{{ $errors->first('route_code') }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
{!! Form::text('route_leg', null, [
|
{{ Form::text('route_leg', null, [
|
||||||
'placeholder' => 'Leg (optional)',
|
'placeholder' => 'Leg (optional)',
|
||||||
'class' => 'form-control']) !!}
|
'class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
|
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -41,59 +41,59 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
<p class="description">Filed Via:</p>
|
<p class="description">Filed Via:</p>
|
||||||
{!! PirepSource::label($pirep->source) !!}
|
{{ PirepSource::label($pirep->source) }}
|
||||||
@if(filled($pirep->source_name))
|
@if(filled($pirep->source_name))
|
||||||
({!! $pirep->source_name !!})
|
({{ $pirep->source_name }})
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('airline_id', 'Airline') !!}
|
{{ Form::label('airline_id', 'Airline') }}
|
||||||
@if($read_only)
|
@if($read_only)
|
||||||
<p>{!! $pirep->airline->name !!}</p>
|
<p>{{ $pirep->airline->name }}</p>
|
||||||
{!! Form::hidden('airline_id') !!}
|
{{ Form::hidden('airline_id') }}
|
||||||
@else
|
@else
|
||||||
{!! Form::select('airline_id', $airlines_list, null, [
|
{{ Form::select('airline_id', $airlines_list, null, [
|
||||||
'class' => 'form-control select2',
|
'class' => 'form-control select2',
|
||||||
'readonly' => $read_only]) !!}
|
'readonly' => $read_only]) }}
|
||||||
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('aircraft_id', 'Aircraft:') !!}
|
{{ Form::label('aircraft_id', 'Aircraft:') }}
|
||||||
@if($read_only)
|
@if($read_only)
|
||||||
<p>{!! $pirep->aircraft->name !!}</p>
|
<p>{{ $pirep->aircraft->name }}</p>
|
||||||
{!! Form::hidden('aircraft_id') !!}
|
{{ Form::hidden('aircraft_id') }}
|
||||||
@else
|
@else
|
||||||
{!! Form::select('aircraft_id', $aircraft_list, null, [
|
{{ Form::select('aircraft_id', $aircraft_list, null, [
|
||||||
'id' => 'aircraft_select',
|
'id' => 'aircraft_select',
|
||||||
'class' => 'form-control select2',
|
'class' => 'form-control select2',
|
||||||
'readonly' => $read_only
|
'readonly' => $read_only
|
||||||
]) !!}
|
]) }}
|
||||||
<p class="text-danger">{{ $errors->first('aircraft_id') }}</p>
|
<p class="text-danger">{{ $errors->first('aircraft_id') }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('dpt_airport_id', 'Departure Airport:') !!}
|
{{ Form::label('dpt_airport_id', 'Departure Airport:') }}
|
||||||
@if($read_only)
|
@if($read_only)
|
||||||
<p>{!! $pirep->dpt_airport->id !!} - {!! $pirep->dpt_airport->name !!}</p>
|
<p>{{ $pirep->dpt_airport->id }} - {{ $pirep->dpt_airport->name }}</p>
|
||||||
{!! Form::hidden('dpt_airport_id') !!}
|
{{ Form::hidden('dpt_airport_id') }}
|
||||||
@else
|
@else
|
||||||
{!! Form::select('dpt_airport_id', $airports_list, null, [
|
{{ Form::select('dpt_airport_id', $airports_list, null, [
|
||||||
'class' => 'form-control select2',
|
'class' => 'form-control select2',
|
||||||
'readonly' => $read_only]) !!}
|
'readonly' => $read_only]) }}
|
||||||
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
|
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
{!! Form::label('arr_airport_id', 'Arrival Airport:') !!}
|
{{ Form::label('arr_airport_id', 'Arrival Airport:') }}
|
||||||
@if($read_only)
|
@if($read_only)
|
||||||
<p>{!! $pirep->arr_airport->id !!} - {!! $pirep->arr_airport->name !!}</p>
|
<p>{{ $pirep->arr_airport->id }} - {{ $pirep->arr_airport->name }}</p>
|
||||||
{!! Form::hidden('arr_airport_id') !!}
|
{{ Form::hidden('arr_airport_id') }}
|
||||||
@else
|
@else
|
||||||
{!! Form::select('arr_airport_id', $airports_list, null, ['class' => 'form-control select2']) !!}
|
{{ Form::select('arr_airport_id', $airports_list, null, ['class' => 'form-control select2']) }}
|
||||||
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
|
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@ -101,26 +101,26 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Flight Time Field -->
|
<!-- Flight Time Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('flight_time', 'Flight Time (hours & minutes):') !!}
|
{{ Form::label('flight_time', 'Flight Time (hours & minutes):') }}
|
||||||
@if($read_only)
|
@if($read_only)
|
||||||
<p>
|
<p>
|
||||||
{!! $pirep->hours !!} hours, {!! $pirep->minutes !!} minutes
|
{{ $pirep->hours }} hours, {{ $pirep->minutes }} minutes
|
||||||
{!! Form::hidden('hours') !!}
|
{{ Form::hidden('hours') }}
|
||||||
{!! Form::hidden('minutes') !!}
|
{{ Form::hidden('minutes') }}
|
||||||
</p>
|
</p>
|
||||||
@else
|
@else
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
{!! Form::number('hours', null, [
|
{{ Form::number('hours', null, [
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'placeholder' => 'hours',
|
'placeholder' => 'hours',
|
||||||
'readonly' => $read_only]) !!}
|
'readonly' => $read_only]) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
{!! Form::number('minutes', null, [
|
{{ Form::number('minutes', null, [
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'placeholder' => 'minutes',
|
'placeholder' => 'minutes',
|
||||||
'readonly' => $read_only]) !!}
|
'readonly' => $read_only]) }}
|
||||||
</div>
|
</div>
|
||||||
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
||||||
<p class="text-danger">{{ $errors->first('minutes') }}</p>
|
<p class="text-danger">{{ $errors->first('minutes') }}</p>
|
||||||
@ -130,10 +130,10 @@
|
|||||||
|
|
||||||
<!-- Level Field -->
|
<!-- Level Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('level', 'Flight Level:') !!}
|
{{ Form::label('level', 'Flight Level:') }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
{!! Form::number('level', null, ['class' => 'form-control', 'min' => 0]) !!}
|
{{ Form::number('level', null, ['class' => 'form-control', 'min' => 0]) }}
|
||||||
<p class="text-danger">{{ $errors->first('level') }}</p>
|
<p class="text-danger">{{ $errors->first('level') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -142,15 +142,15 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Route Field -->
|
<!-- Route Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('route', 'Route:') !!}
|
{{ Form::label('route', 'Route:') }}
|
||||||
{!! Form::textarea('route', null, ['class' => 'form-control']) !!}
|
{{ Form::textarea('route', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('route') }}</p>
|
<p class="text-danger">{{ $errors->first('route') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Notes Field -->
|
<!-- Notes Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('notes', 'Notes:') !!}
|
{{ Form::label('notes', 'Notes:') }}
|
||||||
{!! Form::textarea('notes', null, ['class' => 'form-control']) !!}
|
{{ Form::textarea('notes', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -185,8 +185,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-12">
|
<div class="form-group col-sm-12">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
<a href="{!! route('admin.pireps.index') !!}" class="btn btn-warn">Cancel</a>
|
<a href="{{ route('admin.pireps.index') }}" class="btn btn-warn">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($pirep->acars_logs as $log)
|
@foreach($pirep->acars_logs as $log)
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="true">{!! show_datetime($log->created_at) !!}</td>
|
<td nowrap="true">{{ show_datetime($log->created_at) }}</td>
|
||||||
<td>{!! $log->log !!}</td>
|
<td>{{ $log->log }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
@section('title', 'Pilot Reports')
|
@section('title', 'Pilot Reports')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li><a href="{!! route('admin.pirepfields.index') !!}"><i class="ti-menu-alt"></i>PIREP Fields</a></li>
|
<li><a href="{{ route('admin.pirepfields.index') }}"><i class="ti-menu-alt"></i>PIREP Fields</a></li>
|
||||||
<li><a href="{!! route('admin.pireps.index') !!}?search=status:0"><i class="ti-plus"></i>Pending</a></li>
|
<li><a href="{{ route('admin.pireps.index') }}?search=status:0"><i class="ti-plus"></i>Pending</a></li>
|
||||||
<li><a href="{!! route('admin.pireps.index') !!}"><i class="ti-plus"></i>View All</a></li>
|
<li><a href="{{ route('admin.pireps.index') }}"><i class="ti-plus"></i>View All</a></li>
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
@include('admin.pireps.table')
|
@include('admin.pireps.table')
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<div id="pirep_{!! $pirep->id !!}_container">
|
<div id="pirep_{{ $pirep->id }}_container">
|
||||||
<div class="card border-blue-bottom pirep_card_container">
|
<div class="card border-blue-bottom pirep_card_container">
|
||||||
<div class="card-block" style="min-height: 0px">
|
<div class="card-block" style="min-height: 0px">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-2 text-center">
|
<div class="col-sm-2 text-center">
|
||||||
<h5>
|
<h5>
|
||||||
<a class="text-c"
|
<a class="text-c"
|
||||||
href="{!! route('admin.pireps.edit', [$pirep->id]) !!}">
|
href="{{ route('admin.pireps.edit', [$pirep->id]) }}">
|
||||||
{!! $pirep->ident !!}
|
{{ $pirep->ident }}
|
||||||
</a>
|
</a>
|
||||||
</h5>
|
</h5>
|
||||||
<div>
|
<div>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
@else
|
@else
|
||||||
<div class="badge badge-info">
|
<div class="badge badge-info">
|
||||||
@endif
|
@endif
|
||||||
{!! PirepState::label($pirep->state) !!}</div>
|
{{ PirepState::label($pirep->state) }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
@ -28,39 +28,39 @@
|
|||||||
<div>
|
<div>
|
||||||
<span class="description">
|
<span class="description">
|
||||||
<b>DEP</b>
|
<b>DEP</b>
|
||||||
{!! $pirep->dpt_airport->icao !!}
|
{{ $pirep->dpt_airport->icao }}
|
||||||
<b>ARR</b>
|
<b>ARR</b>
|
||||||
{!! $pirep->arr_airport->icao !!}
|
{{ $pirep->arr_airport->icao }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="description"><b>Flight Time</b>
|
<span class="description"><b>Flight Time</b>
|
||||||
{!! Utils::minutesToTimeString($pirep->flight_time) !!}
|
{{ Utils::minutesToTimeString($pirep->flight_time) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div><span class="description"><b>Aircraft</b>
|
<div><span class="description"><b>Aircraft</b>
|
||||||
{!! $pirep->aircraft->registration !!}
|
{{ $pirep->aircraft->registration }}
|
||||||
({!! $pirep->aircraft->name !!})
|
({{ $pirep->aircraft->name }})
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@if(filled($pirep->level))
|
@if(filled($pirep->level))
|
||||||
<div>
|
<div>
|
||||||
<span class="description"><b>Flight Level</b>
|
<span class="description"><b>Flight Level</b>
|
||||||
{!! $pirep->level !!}
|
{{ $pirep->level }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div>
|
<div>
|
||||||
<span class="description"><b>Filed Using</b>
|
<span class="description"><b>Filed Using</b>
|
||||||
{!! PirepSource::label($pirep->source) !!}
|
{{ PirepSource::label($pirep->source) }}
|
||||||
@if(filled($pirep->source_name))
|
@if(filled($pirep->source_name))
|
||||||
({!! $pirep->source_name !!})
|
({{ $pirep->source_name }})
|
||||||
@endif
|
@endif
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="description"><b>File Date</b>
|
<span class="description"><b>File Date</b>
|
||||||
{!! show_datetime($pirep->created_at) !!}
|
{{ show_datetime($pirep->created_at) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div id="pirep_{!! $pirep->id !!}_actionbar" class="pull-right">
|
<div id="pirep_{{ $pirep->id }}_actionbar" class="pull-right">
|
||||||
@include('admin.pireps.actions', ['pirep' => $pirep, 'on_edit_page' => false])
|
@include('admin.pireps.actions', ['pirep' => $pirep, 'on_edit_page' => false])
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,10 +25,10 @@ $(document).ready(() => {
|
|||||||
console.log('aircraft select change: ', aircraft_id);
|
console.log('aircraft select change: ', aircraft_id);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{!! url('/admin/pireps/fares') !!}?aircraft_id=" + aircraft_id,
|
url: "{{ url('/admin/pireps/fares') }}?aircraft_id=" + aircraft_id,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'x-api-key': '{!! Auth::user()->api_key !!}'
|
'x-api-key': '{{ Auth::user()->api_key }}'
|
||||||
},
|
},
|
||||||
success: (data) => {
|
success: (data) => {
|
||||||
console.log('returned new fares', data);
|
console.log('returned new fares', data);
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
{{--<i class="fa fa-text-width"></i>--}}
|
{{--<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>
|
||||||
<div class="box-body"><p class="lead">
|
<div class="box-body"><p class="lead">
|
||||||
{!! $pirep->dpt_airport->icao !!} - {!! $pirep->dpt_airport->name !!}
|
{{ $pirep->dpt_airport->icao }} - {{ $pirep->dpt_airport->name }}
|
||||||
</p></div>
|
</p></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -15,17 +15,17 @@
|
|||||||
<div class="box box-solid">
|
<div class="box box-solid">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
{{--<i class="fa fa-text-width"></i>--}}
|
{{--<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>
|
||||||
<div class="box-body"><p class="lead">
|
<div class="box-body"><p class="lead">
|
||||||
{!! $pirep->arr_airport->icao !!} - {!! $pirep->arr_airport->name !!}
|
{{ $pirep->arr_airport->icao }} - {{ $pirep->arr_airport->name }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-3">
|
<div class="form-group col-sm-3">
|
||||||
<div id="pirep_{!! $pirep->id !!}_actionbar" class="pull-right">
|
<div id="pirep_{{ $pirep->id }}_actionbar" class="pull-right">
|
||||||
@include('admin.pireps.actions')
|
@include('admin.pireps.actions')
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -35,49 +35,49 @@
|
|||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Pilot</td>
|
<td>Pilot</td>
|
||||||
<td><a href="{!! route('admin.users.show', ['id' => $pirep->pilot->id]) !!}"
|
<td><a href="{{ route('admin.users.show', ['id' => $pirep->pilot->id]) }}"
|
||||||
target="_blank">{!! $pirep->user->name !!}</a>
|
target="_blank">{{ $pirep->user->name }}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Flight</td>
|
<td>Flight</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{!! route('admin.flights.show', [$pirep->flight_id]) !!}"
|
<a href="{{ route('admin.flights.show', [$pirep->flight_id]) }}"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
{!! $pirep->ident !!}
|
{{ $pirep->ident }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Aircraft</td>
|
<td>Aircraft</td>
|
||||||
<td>{!! $pirep->aircraft->subfleet->name !!}, {!! $pirep->aircraft->name !!}
|
<td>{{ $pirep->aircraft->subfleet->name }}, {{ $pirep->aircraft->name }}
|
||||||
({!! $pirep->aircraft->registration !!})
|
({{ $pirep->aircraft->registration }})
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Flight Time</td>
|
<td>Flight Time</td>
|
||||||
<td>{!! Utils::minutesToTimeString($pirep->flight_time) !!}</td>
|
<td>{{ Utils::minutesToTimeString($pirep->flight_time) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Flight Level</td>
|
<td>Flight Level</td>
|
||||||
<td>{!! $pirep->level !!}</td>
|
<td>{{ $pirep->level }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Route</td>
|
<td>Route</td>
|
||||||
<td>{!! $pirep->route !!}</td>
|
<td>{{ $pirep->route }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Notes</td>
|
<td>Notes</td>
|
||||||
<td>{!! $pirep->notes !!}</td>
|
<td>{{ $pirep->notes }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Filed On</td>
|
<td>Filed On</td>
|
||||||
<td>{!! show_datetime($pirep->created_at) !!}</td>
|
<td>{{ show_datetime($pirep->created_at) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Updated On</td>
|
<td>Updated On</td>
|
||||||
<td>{!! show_datetime($pirep->updated_at) !!}</td>
|
<td>{{ show_datetime($pirep->updated_at) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($journal['transactions'] as $entry)
|
@foreach($journal['transactions'] as $entry)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $entry->memo !!}</td>
|
<td>{{ $entry->memo }}</td>
|
||||||
<td>
|
<td>
|
||||||
@if($entry->credit)
|
@if($entry->credit)
|
||||||
{!! money($entry->credit, config('phpvms.currency')) !!}
|
{{ money($entry->credit, config('phpvms.currency')) }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if($entry->debit)
|
@if($entry->debit)
|
||||||
{!! money($entry->debit, config('phpvms.currency')) !!}
|
{{ money($entry->debit, config('phpvms.currency')) }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -22,10 +22,10 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>
|
<td>
|
||||||
{!! $journal['credits'] !!}
|
{{ $journal['credits'] }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<i>{!! $journal['debits'] !!}</i>
|
<i>{{ $journal['debits'] }}</i>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<b>Total</b>
|
<b>Total</b>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{!! $journal['credits']->subtract($journal['debits']) !!}
|
{{ $journal['credits']->subtract($journal['debits']) }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::open(['route' => 'admin.ranks.store', 'class' => 'add_rank', 'method'=>'POST']) !!}
|
{{ Form::open(['route' => 'admin.ranks.store', 'class' => 'add_rank', 'method'=>'POST']) }}
|
||||||
@include('admin.ranks.fields')
|
@include('admin.ranks.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{!! Form::model($rank, ['route' => ['admin.ranks.update', $rank->id], 'method' => 'patch']) !!}
|
{{ Form::model($rank, ['route' => ['admin.ranks.update', $rank->id], 'method' => 'patch']) }}
|
||||||
@include('admin.ranks.fields')
|
@include('admin.ranks.fields')
|
||||||
{!! Form::close() !!}
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Name Field -->
|
<!-- Name Field -->
|
||||||
<div class="form-group col-sm-6">
|
<div class="form-group col-sm-6">
|
||||||
{!! Form::label('name', 'Name:') !!}
|
{{ Form::label('name', 'Name:') }}
|
||||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
{!! Form::label('image_link', 'Image Link:') !!}
|
{{ Form::label('image_link', 'Image Link:') }}
|
||||||
{!! Form::text('image_link', null, ['class' => 'form-control']) !!}
|
{{ Form::text('image_link', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('image_link') }}</p>
|
<p class="text-danger">{{ $errors->first('image_link') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Hours Field -->
|
<!-- Hours Field -->
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{!! Form::label('hours', 'Hours:') !!}
|
{{ Form::label('hours', 'Hours:') }}
|
||||||
{!! Form::number('hours', null, ['class' => 'form-control']) !!}
|
{{ Form::number('hours', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
{!! Form::label('acars_base_pay_rate', 'ACARS Base Pay Rate:') !!}
|
{{ Form::label('acars_base_pay_rate', 'ACARS Base Pay Rate:') }}
|
||||||
{!! Form::number('acars_base_pay_rate', null, ['min' => 0, 'class' => 'form-control']) !!}
|
{{ Form::number('acars_base_pay_rate', null, ['min' => 0, 'class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('acars_base_pay_rate') }}</p>
|
<p class="text-danger">{{ $errors->first('acars_base_pay_rate') }}</p>
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
Base rate, per-flight hour, for ACARS PIREPs.
|
Base rate, per-flight hour, for ACARS PIREPs.
|
||||||
@ -31,8 +31,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
{!! Form::label('manual_base_pay_rate', 'Manual Base Pay Rate:') !!}
|
{{ Form::label('manual_base_pay_rate', 'Manual Base Pay Rate:') }}
|
||||||
{!! Form::number('manual_base_pay_rate', null, ['min' => 0, 'class' => 'form-control']) !!}
|
{{ Form::number('manual_base_pay_rate', null, ['min' => 0, 'class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('manual_base_pay_rate') }}</p>
|
<p class="text-danger">{{ $errors->first('manual_base_pay_rate') }}</p>
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
Base rate, per-flight hour, for manually-filed PIREPs.
|
Base rate, per-flight hour, for manually-filed PIREPs.
|
||||||
@ -46,9 +46,9 @@
|
|||||||
<div class="form-group col-sm-4 text-center">
|
<div class="form-group col-sm-4 text-center">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{!! Form::hidden('auto_approve_acars', false) !!}
|
{{ Form::hidden('auto_approve_acars', false) }}
|
||||||
{!! Form::checkbox('auto_approve_acars') !!}
|
{{ Form::checkbox('auto_approve_acars') }}
|
||||||
{!! Form::label('auto_approve_acars', 'Auto Approve ACARS PIREPs') !!}
|
{{ Form::label('auto_approve_acars', 'Auto Approve ACARS PIREPs') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -57,9 +57,9 @@
|
|||||||
<div class="form-group col-sm-4 text-center">
|
<div class="form-group col-sm-4 text-center">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{!! Form::hidden('auto_approve_manual', false) !!}
|
{{ Form::hidden('auto_approve_manual', false) }}
|
||||||
{!! Form::checkbox('auto_approve_manual') !!}
|
{{ Form::checkbox('auto_approve_manual') }}
|
||||||
{!! Form::label('auto_approve_manual', 'Auto Approve Manual PIREPs') !!}
|
{{ Form::label('auto_approve_manual', 'Auto Approve Manual PIREPs') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -68,9 +68,9 @@
|
|||||||
<div class="form-group col-sm-4 text-center">
|
<div class="form-group col-sm-4 text-center">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{!! Form::hidden('auto_promote', false) !!}
|
{{ Form::hidden('auto_promote', false) }}
|
||||||
{!! Form::checkbox('auto_promote') !!}
|
{{ Form::checkbox('auto_promote') }}
|
||||||
{!! Form::label('auto_promote', 'Auto Promote') !!}
|
{{ Form::label('auto_promote', 'Auto Promote') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
@section('title', 'Ranks')
|
@section('title', 'Ranks')
|
||||||
@section('actions')
|
@section('actions')
|
||||||
<li>
|
<li>
|
||||||
<a href="{!! route('admin.ranks.create') !!}">
|
<a href="{{ route('admin.ranks.create') }}">
|
||||||
<i class="ti-plus"></i>
|
<i class="ti-plus"></i>
|
||||||
Add New</a>
|
Add New</a>
|
||||||
</li>
|
</li>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user