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