frontend translation + other stuff
This commit is contained in:
committed by
Nabeel Shahzad
parent
ba8a819c7d
commit
a346b0df2e
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __('Live Map'))
|
||||
@section('title', trans('frontend.global.livemap'))
|
||||
|
||||
@section('content')
|
||||
{{ Widget::liveMap() }}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{{-- There are files uploaded and a user is logged in--}}
|
||||
@if(count($airport->files) > 0 && Auth::check())
|
||||
<div class="col-12">
|
||||
<h3>{{ __trans_choice('Download', 2) }}</h3>
|
||||
<h3>{{ trans_choice('frontend.global.download', 2) }}</h3>
|
||||
@include('downloads.table', ['files' => $airport->files])
|
||||
</div>
|
||||
@endif
|
||||
@@ -36,19 +36,19 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<h5>{{ __('Inbound Flights') }}</h5>
|
||||
<h5>@lang('frontend.airports.inboundflights')</h5>
|
||||
@if(!$inbound_flights)
|
||||
<div class="jumbotron text-center">
|
||||
{{ __('No Flight Found') }}
|
||||
@lang('frontend.airports.noflightfound')
|
||||
</div>
|
||||
@else
|
||||
<table class="table table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">{{ __('Ident') }}</th>
|
||||
<th class="text-left">{{ __('From') }}</th>
|
||||
<th>{{ __('Departure') }}</th>
|
||||
<th>{{ __('Arrival') }}</th>
|
||||
<th class="text-left">@lang('frontend.airports.ident')</th>
|
||||
<th class="text-left">@lang('frontend.global.from')</th>
|
||||
<th>@lang('frontend.global.departure')</th>
|
||||
<th>@lang('frontend.global.arrival')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach($inbound_flights as $flight)
|
||||
@@ -71,19 +71,19 @@
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<h5>{{ __('Outbound Flights') }}</h5>
|
||||
<h5>@lang('frontend.airports.outboundflights')</h5>
|
||||
@if(!$outbound_flights)
|
||||
<div class="jumbotron text-center">
|
||||
{{ __('No Flight Found') }}
|
||||
@lang('frontend.airports.noflightfound')
|
||||
</div>
|
||||
@else
|
||||
<table class="table table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">{{ __('Ident') }}</th>
|
||||
<th class="text-left">{{ __('To') }}</th>
|
||||
<th>{{ __('Departure') }}</th>
|
||||
<th>{{ __('Arrival') }}</th>
|
||||
<th class="text-left">@lang('frontend.airports.ident')</th>
|
||||
<th class="text-left">@lang('frontend.global.to')</th>
|
||||
<th>@lang('frontend.global.departure')</th>
|
||||
<th>@lang('frontend.global.arrival')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach($outbound_flights as $flight)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script src="{{ public_asset('/assets/frontend/js/core/jquery-3.3.1.min.js') }}" type="text/javascript"></script>
|
||||
<script src="{{ public_asset('/assets/global/js/jquery.js') }}" type="text/javascript"></script>
|
||||
|
||||
@yield('scripts')
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{{
|
||||
Form::text('email', old('email'), [
|
||||
'id' => 'email',
|
||||
'placeholder' => 'Email',
|
||||
'placeholder' => trans('frontend.global.email'),
|
||||
'class' => 'form-control',
|
||||
'required' => true,
|
||||
])
|
||||
@@ -38,7 +38,7 @@
|
||||
Form::password('password', [
|
||||
'name' => 'password',
|
||||
'class' => 'form-control',
|
||||
'placeholder' => 'Password',
|
||||
'placeholder' => trans('frontend.auth.password'),
|
||||
'required' => true,
|
||||
])
|
||||
}}
|
||||
@@ -51,16 +51,16 @@
|
||||
|
||||
</div>
|
||||
<div class="footer text-center">
|
||||
<button href="#pablo" class="btn btn-primary btn-round btn-lg btn-block">{{ __('Login') }}</button>
|
||||
<button href="#pablo" class="btn btn-primary btn-round btn-lg btn-block">@lang('frontend.auth.login')</button>
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<h6>
|
||||
<a href="{{ url('/register') }}" class="link">{{ __('Create Account') }}</a>
|
||||
<a href="{{ url('/register') }}" class="link">@lang('frontend.auth.createaccount')</a>
|
||||
</h6>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<h6>
|
||||
<a href="{{ url('/password/reset') }}" class="link">{{ __('Forgot Password') }}?</a>
|
||||
<a href="{{ url('/password/reset') }}" class="link">@lang('frontend.auth.forgotpassword')?</a>
|
||||
</h6>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
@extends('app')
|
||||
@section('title', __('Registration Pending'))
|
||||
@section('title', trans('frontend.auth.registrationpending'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12 " style="text-align: center;">
|
||||
<div class="flex-center position-ref full-height">
|
||||
<div class="title m-b-md">
|
||||
<h2 class="description">{{ __('Your registration is pending approval. Please check your email!') }}</h2>
|
||||
<h2 class="description">@lang('frontend.auth.pendingmessage')</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __('Register'))
|
||||
@section('title', trans('frontend.global.register'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
<div class="panel periodic-login">
|
||||
<div class="panel-body">
|
||||
<h2>{{ __('Register') }}</h2>
|
||||
<label for="name" class="control-label">{{ __('Full Name') }}</label>
|
||||
<h2>@lang('frontend.global.register')</h2>
|
||||
<label for="name" class="control-label">@lang('frontend.auth.fullname')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('name') ? 'has-danger' : '' }}">
|
||||
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -19,7 +19,7 @@
|
||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||
@endif
|
||||
|
||||
<label for="email" class="control-label">{{ __('Email Address') }}</label>
|
||||
<label for="email" class="control-label">@lang('frontend.auth.emailaddress')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('email') ? 'has-danger' : '' }}">
|
||||
{{ Form::text('email', null, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -27,7 +27,7 @@
|
||||
<p class="text-danger">{{ $errors->first('email') }}</p>
|
||||
@endif
|
||||
|
||||
<label for="airline" class="control-label">{{ __('Airline') }}</label>
|
||||
<label for="airline" class="control-label">@lang('frontend.global.airline')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('airline') ? 'has-danger' : '' }}">
|
||||
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
||||
</div>
|
||||
@@ -35,7 +35,7 @@
|
||||
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
||||
@endif
|
||||
|
||||
<label for="home_airport" class="control-label">{{ __('Home Airport') }}</label>
|
||||
<label for="home_airport" class="control-label">@lang('frontend.global.homeairport')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('home_airport') ? 'has-danger' : '' }}">
|
||||
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
<p class="text-danger">{{ $errors->first('home_airport_id') }}</p>
|
||||
@endif
|
||||
|
||||
<label for="country" class="control-label">{{ __('Country') }}</label>
|
||||
<label for="country" class="control-label">@lang('frontend.global.country')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('country') ? 'has-danger' : '' }}">
|
||||
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<p class="text-danger">{{ $errors->first('country') }}</p>
|
||||
@endif
|
||||
|
||||
<label for="timezone" class="control-label">{{ __('Timezone') }}</label>
|
||||
<label for="timezone" class="control-label">@lang('frontend.global.timezone')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('timezone') ? 'has-danger' : '' }}">
|
||||
{{ Form::select('timezone', $timezones, null, ['id'=>'timezone', 'class' => 'form-control select2' ]) }}
|
||||
</div>
|
||||
@@ -59,7 +59,7 @@
|
||||
<p class="text-danger">{{ $errors->first('timezone') }}</p>
|
||||
@endif
|
||||
|
||||
<label for="password" class="control-label">{{ __('Password') }}</label>
|
||||
<label for="password" class="control-label">@lang('frontend.auth.password')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('password') ? 'has-danger' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -67,7 +67,7 @@
|
||||
<p class="text-danger">{{ $errors->first('password') }}</p>
|
||||
@endif
|
||||
|
||||
<label for="password_confirmation" class="control-label">{{ __('Confirm Password') }}</label>
|
||||
<label for="password_confirmation" class="control-label">@lang('frontend.global.confirmpassword')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('password_confirmation') ? 'has-danger' : '' }}">
|
||||
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -76,7 +76,7 @@
|
||||
@endif
|
||||
|
||||
@if(config('captcha.enabled'))
|
||||
<label for="g-recaptcha-response" class="control-label">{{ __('Fill out the captcha') }}</label>
|
||||
<label for="g-recaptcha-response" class="control-label">@lang('frontend.auth.fillcaptcha')</label>
|
||||
<div class="input-group form-group-no-border {{ $errors->has('g-recaptcha-response') ? 'has-danger' : '' }}">
|
||||
{!! NoCaptcha::display(config('captcha.attributes')) !!}
|
||||
</div>
|
||||
@@ -88,8 +88,8 @@
|
||||
@include('auth.toc')
|
||||
|
||||
<div style="width: 100%; text-align: right; padding-top: 20px;">
|
||||
{{ __('By registering, you agree to the Terms and Conditions.') }}<br /><br />
|
||||
{{ Form::submit(__('Register!'), ['class' => 'btn btn-primary']) }}
|
||||
@lang('frontend.auth.tocaccept')<br /><br />
|
||||
{{ Form::submit(trans('frontend.auth.register'), ['class' => 'btn btn-primary']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@extends('app')
|
||||
@section('title', __('Registration Submitted'))
|
||||
@section('title', trans('frontend.auth.registrationsubmitted'))
|
||||
|
||||
@section('content')
|
||||
<div class="container registered-page">
|
||||
<h3>{{ __('Registration Confirmation') }}</h3>
|
||||
<h3>@lang('frontend.auth.registrationconfirmation')</h3>
|
||||
<p>
|
||||
__('Your application has been submitted. It requires staff member approval, once a\nstaff member has reviewed your application, you will receive a confirmation email.') }}
|
||||
@lang('frontend.auth.confirmationmessage')
|
||||
</p>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __('Registration Denied'))
|
||||
@section('title', trans('frontend.auth.registrationdenied'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="flex-center position-ref full-height">
|
||||
<div class="title m-b-md">
|
||||
<h2 class="description">
|
||||
{{ __('Your registration was denied. Please contact an administrator.') }}
|
||||
@lang('frontend.auth.deniedmessage')
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __('Account Suspended'))
|
||||
@section('title', trans('frontend.auth.accountsuspended'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="flex-center position-ref full-height">
|
||||
<div class="title m-b-md">
|
||||
<h2 class="description">
|
||||
{{ __('Your account has been suspended. Please contact an administrator.') }}
|
||||
@lang('frontend.auth.suspendedmessage')
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,69 +1,6 @@
|
||||
<h4>{{ __('Terms and Conditions') }}</h4>
|
||||
<textarea class="form-control" style="height: 150px; border: 1px #ccc solid;">
|
||||
{{ config('app.name') }} offers this Web site, including all information, software,
|
||||
products and services available from this Web site or offered as part of or in conjunction
|
||||
with this Web site (the “Web site”), to you, the user, conditioned upon your acceptance of
|
||||
all of the terms, conditions, policies and notices stated here. {{ config('app.name') }}
|
||||
reserves the right to make changes to these Terms and Conditions immediately by posting the
|
||||
changed Terms and Conditions in this location.
|
||||
|
||||
Your continued use of the Web site constitutes your agreement to all such terms, conditions
|
||||
and notices, and any changes to the Terms and Conditions made by {{ config('app.name') }}.
|
||||
|
||||
The term ‘genericwebsite.com’ or ‘us’ or ‘we’ refers to the owner of the website. The term
|
||||
‘you’ refers to the user or viewer of our website.
|
||||
|
||||
The use of this website is subject to the following terms of use:
|
||||
|
||||
Use the website at your own risk. This website is provided to you “as is,” without warranty
|
||||
of any kind either express or implied. Neither {{ config('app.name') }} nor its employees,
|
||||
agents, third-party information providers, merchants, licensors or the like warrant that the
|
||||
Web site or its operation will be accurate, reliable, uninterrupted or error-free. No agent
|
||||
or representative has the authority to create any warranty regarding the Web site on behalf
|
||||
of {{ config('app.name') }}. {{ config('app.name') }} reserves the right to change or
|
||||
discontinue at any time any aspect or feature of the Web site.
|
||||
|
||||
Exclusion of Liability
|
||||
|
||||
The content of the pages of this website is for your general information and use only. It is
|
||||
subject to change without notice.
|
||||
|
||||
Neither we nor any third parties provide any warranty or guarantee as to the accuracy,
|
||||
timeliness, performance, completeness or suitability of the information and materials found or
|
||||
offered on this website for any particular purpose. You acknowledge that such information and
|
||||
materials may contain inaccuracies or errors and we expressly exclude liability for any such
|
||||
inaccuracies or errors to the fullest extent permitted by law.
|
||||
|
||||
Indemnification
|
||||
|
||||
Your use of any information or materials on this website is entirely at your own risk, for which
|
||||
we shall not be liable. It shall be your own responsibility to ensure that any products, services
|
||||
or information available through this website meet your specific requirements.
|
||||
|
||||
This website contains material which is owned by or licensed to us. This material includes, but is
|
||||
not limited to, the design, layout, look, appearance and graphics. Reproduction is prohibited other
|
||||
than in accordance with the copyright notice, which forms part of these terms and conditions.
|
||||
|
||||
All trade marks reproduced in this website which are not the property of, or licensed to, the
|
||||
operator are acknowledged on the website.
|
||||
|
||||
Unauthorized use of this website may give rise to a claim for damages and/or be a criminal offense.
|
||||
|
||||
From time to time this website may also include links to other websites. These links are provided
|
||||
for your convenience to provide further information. They do not signify that we endorse the
|
||||
website(s). We have no responsibility for the content of the linked website(s).
|
||||
|
||||
Copyright
|
||||
Except for material in the public domain under United States copyright law, all material contained
|
||||
on the Web site (including all software, HTML code, Java applets, Active X controls and other code)
|
||||
is protected by United States and foreign copyright laws. Except as otherwise expressly provided
|
||||
in these terms and conditions, you may not copy, distribute, transmit, display, perform, reproduce,
|
||||
publish, license, modify, rewrite, create derivative works from, transfer, or sell any material
|
||||
contained on the Web site without the prior consent of the copyright owner.
|
||||
|
||||
None of the material contained on {{ config('app.name') }} may be reverse-engineered, disassembled,
|
||||
decompiled, transcribed, stored in a retrieval system, translated into any language or computer language,
|
||||
retransmitted in any form or by any means (electronic, mechanical, photo reproduction, recordation or
|
||||
otherwise), resold or redistributed without the prior written consent of {{ config('app.name') }}.
|
||||
Violation of this provision may result in severe civil and criminal penalties.
|
||||
<h4>@lang('frontend.toc.toctitle')</h4>
|
||||
<textarea class="form-control" style="height: 150px; border: 1px #ccc solid; background-color: transparent" readonly>
|
||||
@foreach (trans('frontend.toc.toctext') as $line)
|
||||
{{ str_replace(':appname', config('app.name'), $line) }}
|
||||
@endforeach
|
||||
</textarea>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __('Dashboard'))
|
||||
@section('title', trans('frontend.global.dashboard'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -14,7 +14,7 @@
|
||||
<i class="fas fa-plane icon"></i>
|
||||
</div>
|
||||
<h3 class="header">{{ $user->flights }}</h3>
|
||||
<h5 class="description">{{ __trans_choice('Flight', $user->flights) }}</h5>
|
||||
<h5 class="description">{{ trans_choice('frontend.global.flight', $user->flights) }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -26,7 +26,7 @@
|
||||
<i class="far fa-clock icon"></i>
|
||||
</div>
|
||||
<h3 class="header">{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false)}}</h3>
|
||||
<h5 class="description">{{ __('Total Hours') }}</h5>
|
||||
<h5 class="description">@lang('frontend.dashboard.totalhours')</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -37,7 +37,7 @@
|
||||
<i class="fas fa-money-bill-alt icon"></i>
|
||||
</div>
|
||||
<h3 class="header">{{ $user->journal->balance }}</h3>
|
||||
<h5 class="description">{{ __('Your Balance') }}</h5>
|
||||
<h5 class="description">@lang('frontend.dashboard.yourbalance')</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -53,7 +53,7 @@
|
||||
@else
|
||||
<h3 class="header">{{ $user->home_airport_id }}</h3>
|
||||
@endif
|
||||
<h5 class="description">{{ __('Current Airport') }}</h5>
|
||||
<h5 class="description">@lang('frontend.global.currentairport')</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -62,11 +62,11 @@
|
||||
|
||||
<div class="card">
|
||||
<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
|
||||
{{ __('Your Last Report') }}
|
||||
@lang('frontend.dashboard.yourlastreport')
|
||||
</div>
|
||||
@if($last_pirep === null)
|
||||
<div class="card-block" style="text-align:center;">
|
||||
{{ __('No reports yet.') }} <a href="{{ route('frontend.pireps.create') }}">{{ __('File one now.') }}</a>
|
||||
@lang('frontend.dashboard.noreportsyet') <a href="{{ route('frontend.pireps.create') }}">@lang('frontend.dashboard.fileonenow')</a>
|
||||
</div>
|
||||
@else
|
||||
@include('pireps.pirep_card', ['pirep' => $last_pirep])
|
||||
@@ -81,7 +81,7 @@
|
||||
<div class="col-sm-4">
|
||||
<div class="card">
|
||||
<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
|
||||
{{ __('Weather at :ICAO', ['ICAO' => $current_airport]) }}
|
||||
@lang('frontend.dashboard.weatherat', ['ICAO' => $current_airport])
|
||||
</div>
|
||||
<div class="card-block">
|
||||
<!-- Tab panes -->
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
<div class="card">
|
||||
<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
|
||||
{{ __('Recent Reports') }}
|
||||
@lang('frontend.dashboard.recentreports')
|
||||
</div>
|
||||
<div class="card-block">
|
||||
<!-- Tab panes -->
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
<div class="card">
|
||||
<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
|
||||
{{ __('Newest Pilots') }}
|
||||
@lang('frontend.global.newestpilots')
|
||||
</div>
|
||||
<div class="card-block">
|
||||
<!-- Tab panes -->
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
@extends('app')
|
||||
@section('title', __trans_choice('Download', 2))
|
||||
@section('title', trans_choice('frontend.global.download', 2))
|
||||
|
||||
@section('content')
|
||||
@include('flash::message')
|
||||
<div class="row">
|
||||
<div class="row-sm-12">
|
||||
<h2>{{ __trans_choice('Download', 2) }}</h2>
|
||||
<h2>{{ trans_choice('frontend.global.download', 2) }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
@if(!$grouped_files || \count($grouped_files) === 0)
|
||||
<div class="jumbotron text-center">{{ __('There are no downloads!') }}</div>
|
||||
<div class="jumbotron text-center">@lang('frontend.downloads.nodownloads')</div>
|
||||
@else
|
||||
@foreach($grouped_files as $group => $files)
|
||||
<div class="row" style="margin-bottom: 40px;">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
@if($file->description)
|
||||
- {{$file->description}}
|
||||
@endif
|
||||
<span style="margin-left: 20px">{{ $file->download_count.' '.__trans_choice('Download', $file->download_count) }}</span>
|
||||
<span style="margin-left: 20px">{{ $file->download_count.' '.trans_choice('frontend.global.download', $file->download_count) }}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('Close') }}</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">@lang('frontend.global.close')</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@extends('app')
|
||||
@section('title', __trans_choice('Flight', 2))
|
||||
@section('title', trans_choice('frontend.global.flight', 2))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('flash::message')
|
||||
<div class="col-md-9">
|
||||
<h2>{{ $title ?? __trans_choice('Flight', 2) }}</h2>
|
||||
<h2>{{ $title ?? trans_choice('frontend.global.flight', 2) }}</h2>
|
||||
@include('flights.table')
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="card">
|
||||
<div class="card-block" style="min-height: 0px">
|
||||
<div class="form-group text-right">
|
||||
<a href="{{ route('frontend.flights.bids') }}">{{ __trans_choice('My Bid', 2) }}</a>
|
||||
<a href="{{ route('frontend.flights.bids') }}">{{ trans_choice('frontend.flights.mybid', 2) }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -26,11 +26,11 @@ $(document).ready(function () {
|
||||
if(params.method === 'DELETE') {
|
||||
console.log('successfully removed flight');
|
||||
btn.removeClass(class_name);
|
||||
alert('Your bid was removed');
|
||||
alert('@lang("frontend.flights.bidremoved")');
|
||||
} else {
|
||||
console.log('successfully saved flight');
|
||||
btn.addClass(class_name);
|
||||
alert('Your bid was added');
|
||||
alert('@lang("frontend.flights.bidadded")');
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h3 class="description">{{ __('Search') }}</h3>
|
||||
<h3 class="description">@lang('frontend.flights.search')</h3>
|
||||
<div class="card pull-right">
|
||||
<div class="card-block" style="min-height: 0px">
|
||||
<div class="form-group">
|
||||
@@ -8,23 +8,23 @@
|
||||
'class'=>'form-inline'
|
||||
]) }}
|
||||
<div>
|
||||
<p>{{ __('Flight Number') }}</p>
|
||||
<p>@lang('frontend.global.flightnumber')</p>
|
||||
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<p>{{ __('Departure Airport') }}</p>
|
||||
<p>@lang('frontend.global.departureairport')</p>
|
||||
{{ Form::select('dep_icao', $airports, null , ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<p>{{ __('Arrival Airport') }}</p>
|
||||
<p>@lang('frontend.global.arrivalairport')</p>
|
||||
{{ Form::select('arr_icao', $airports, null , ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="clear" style="margin-top: 10px;">
|
||||
{{ Form::submit(__('Find'), ['class' => 'btn btn-primary']) }}
|
||||
<a href="{{ route('frontend.flights.index') }}">{{ __('Reset') }}</a>
|
||||
{{ Form::submit(trans('frontend.global.find'), ['class' => 'btn btn-primary']) }}
|
||||
<a href="{{ route('frontend.flights.index') }}">@lang('frontend.global.reset')</a>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __trans_choice('Flight', 1).' '.$flight->ident)
|
||||
@section('title', trans_choice('frontend.global.flight', 1).' '.$flight->ident)
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-12">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>{{ __('Departure') }}</td>
|
||||
<td>@lang('frontend.global.departure')</td>
|
||||
<td>
|
||||
{{ $flight->dpt_airport->name }}
|
||||
(<a href="{{route('frontend.airports.show', [
|
||||
@@ -24,7 +24,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Arrival') }}</td>
|
||||
<td>@lang('frontend.global.arrival')</td>
|
||||
<td>
|
||||
{{ $flight->arr_airport->name }}
|
||||
(<a href="{{route('frontend.airports.show', [
|
||||
@@ -34,21 +34,24 @@
|
||||
</tr>
|
||||
@if($flight->alt_airport_id)
|
||||
<tr>
|
||||
<td>{{ __('Alternate Airport') }}</td>
|
||||
<td>@lang('frontend.flights.alternateairport')</td>
|
||||
<td>
|
||||
{{ $flight->alt_airport->full_name }}
|
||||
{{ $flight->alt_airport->name }}
|
||||
(<a href="{{route('frontend.airports.show', [
|
||||
'id' => $flight->alt_airport->icao
|
||||
])}}">{{$flight->alt_airport->icao}}</a>)
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Route') }}</td>
|
||||
<td>@lang('frontend.global.route')</td>
|
||||
<td>{{ $flight->route }}</td>
|
||||
</tr>
|
||||
|
||||
@if(filled($flight->notes))
|
||||
<tr>
|
||||
<td>{{ __('Notes') }}</td>
|
||||
<td>{{ trans_choice('frontend.global.note', 2) }}</td>
|
||||
<td>{{ $flight->notes }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@@ -62,15 +65,22 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h5>{{$flight->dpt_airport_id}} METAR</h5>
|
||||
<h5>{{$flight->dpt_airport_id}} @lang('frontend.global.metar')</h5>
|
||||
{{ Widget::Weather([
|
||||
'icao' => $flight->dpt_airport_id,
|
||||
]) }}
|
||||
<br />
|
||||
<h5>{{$flight->arr_airport_id}} METAR</h5>
|
||||
<h5>{{$flight->arr_airport_id}} @lang('frontend.global.metar')</h5>
|
||||
{{ Widget::Weather([
|
||||
'icao' => $flight->arr_airport_id,
|
||||
]) }}
|
||||
@if ($flight->alt_airport_id)
|
||||
<br />
|
||||
<h5>{{$flight->alt_airport_id}} @lang('frontend.global.metar')</h5>
|
||||
{{ Widget::Weather([
|
||||
'icao' => $flight->alt_airport_id,
|
||||
]) }}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
x-id="{{ $flight->id }}"
|
||||
x-saved-class="btn-info"
|
||||
type="button"
|
||||
title="{{ __('Add/Remove Bid') }}"
|
||||
title="@lang('frontend.flights.addremovebid')"
|
||||
>
|
||||
<i class="fas fa-map-marker"></i>
|
||||
</button>
|
||||
@@ -34,14 +34,14 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-5">
|
||||
{{--<table class="table-condensed"></table>--}}
|
||||
<span class="title">{{ __('DEP') }} </span>
|
||||
<span class="title">{{ strtoupper(trans('frontend.flights.dep')) }} </span>
|
||||
{{ $flight->dpt_airport->name }}
|
||||
(<a href="{{route('frontend.airports.show', [
|
||||
'id' => $flight->dpt_airport->icao
|
||||
])}}">{{$flight->dpt_airport->icao}}</a>)
|
||||
@if($flight->dpt_time), {{ $flight->dpt_time }}@endif
|
||||
<br />
|
||||
<span class="title">{{ __('ARR') }} </span>
|
||||
<span class="title">{{ strtoupper(trans('frontend.flights.arr')) }} </span>
|
||||
{{ $flight->arr_airport->name }}
|
||||
(<a href="{{route('frontend.airports.show', [
|
||||
'id' => $flight->arr_airport->icao
|
||||
@@ -49,19 +49,19 @@
|
||||
@if($flight->arr_time), {{ $flight->arr_time }}@endif
|
||||
<br />
|
||||
@if($flight->distance)
|
||||
<span class="title">{{ __('DISTANCE') }} </span>
|
||||
<span class="title">{{ strtoupper(trans('frontend.global.distance')) }} </span>
|
||||
{{ $flight->distance }} {{ setting('units.distance') }}
|
||||
@endif
|
||||
<br />
|
||||
@if($flight->level)
|
||||
<span class="title">{{ __('LEVEL') }} </span>
|
||||
<span class="title">{{ strtoupper(trans('frontend.flights.level')) }} </span>
|
||||
{{ $flight->level }} {{ setting('units.altitude') }}
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<span class="title">{{ __('ROUTE') }} </span>
|
||||
<span class="title">{{ strtoupper(trans('frontend.global.route')) }} </span>
|
||||
{{ $flight->route }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __('Welcome!'))
|
||||
@section('title', trans('frontend.home.welcome.title'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -7,14 +7,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<center><h1 class="description">{{ __('Welcome Message') }}</h1></center>
|
||||
<div class="col-sm-9">
|
||||
<center><h1 class="description">@lang('frontend.home.welcome.message', ['Appname' => config('app.name')])</h1></center>
|
||||
<div class="photo-container">
|
||||
<img src="{{ public_asset('/assets/img/Airplane.jpg') }}" style=""/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<img src="{{ public_asset('/assets/img/Airplane.jpg') }}" style=""/>
|
||||
</div>
|
||||
<div class="col-sm-3 ">
|
||||
<h2 class="description">{{ __('Newest Pilots') }}</h2>
|
||||
<h2 class="description">@lang('frontend.global.newestpilots')</h2>
|
||||
@foreach($users as $user)
|
||||
<div class="card card-signup blue-bg">
|
||||
{{--<div class="card-bg">--}}
|
||||
@@ -43,7 +43,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer text-center">
|
||||
<a href="{{ route('frontend.profile.show', ['id' => $user->id]) }}" class="btn btn-neutral btn-sm">{{ __('Profile') }}</a>
|
||||
<a href="{{ route('frontend.profile.show', ['id' => $user->id]) }}" class="btn btn-neutral btn-sm">@lang('frontend.global.profile')</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('frontend.dashboard.index') }}">
|
||||
<i class="fas fa-tachometer-alt"></i>
|
||||
<p>{{ __('Dashboard') }}</p>
|
||||
<p>@lang('frontend.global.dashboard')</p>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@@ -11,14 +11,14 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('frontend.livemap.index') }}">
|
||||
<i class="fas fa-globe"></i>
|
||||
<p>{{ __('Live Map') }}</p>
|
||||
<p>@lang('frontend.global.livemap')</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('frontend.pilots.index') }}">
|
||||
<i class="fas fa-users"></i>
|
||||
<p>{{ __trans_choice('Pilot', 2) }}</p>
|
||||
<p>{{ trans_choice('frontend.global.pilot', 2) }}</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url($link['url']) }}">
|
||||
<i class="{{ $link['icon'] }}"></i>
|
||||
<p>{{ __($link['title']) }}</p>
|
||||
<p>{{ ($link['title']) }}</p>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@@ -36,13 +36,13 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url('/login') }}">
|
||||
<i class="fas fa-sign-in-alt"></i>
|
||||
<p>{{ __('Login') }}</p>
|
||||
<p>@lang('frontend.nav.login')</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url('/register') }}">
|
||||
<i class="far fa-id-card"></i>
|
||||
<p>{{ __('Register') }}</p>
|
||||
<p>@lang('frontend.global.register')</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -51,25 +51,25 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('frontend.flights.index') }}">
|
||||
<i class="fab fa-avianex"></i>
|
||||
<p>{{ __trans_choice('Flight', 2) }}</p>
|
||||
<p>{{ trans_choice('frontend.global.flight', 2) }}</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('frontend.pireps.index') }}">
|
||||
<i class="fas fa-cloud-upload-alt"></i>
|
||||
<p>{{ __trans_choice('PIREP', 2) }}</p>
|
||||
<p>{{ trans_choice('frontend.global.pirep', 2) }}</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('frontend.profile.index') }}">
|
||||
<i class="far fa-user"></i>
|
||||
<p>{{ __('Profile') }}</p>
|
||||
<p>@lang('frontend.global.profile')</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('frontend.downloads.index') }}">
|
||||
<i class="fas fa-download"></i>
|
||||
<p>{{ __trans_choice('Download', 2) }}</p>
|
||||
<p>{{ trans_choice('frontend.global.download', 2) }}</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url('/admin') }}">
|
||||
<i class="fas fa-circle-notch"></i>
|
||||
<p>{{ __('Administration') }}</p>
|
||||
<p>@lang('frontend.nav.administration')</p>
|
||||
</a>
|
||||
</li>
|
||||
@endrole
|
||||
@@ -87,7 +87,7 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url($link['url']) }}">
|
||||
<i class="{{ $link['icon'] }}"></i>
|
||||
<p>{{ __($link['title']) }}</p>
|
||||
<p>{{ ($link['title']) }}</p>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@@ -95,7 +95,7 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url('/logout') }}">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
<p>{{ __('Log Out') }}</p>
|
||||
<p>@lang('frontend.nav.logout')</p>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@extends('app')
|
||||
@section('title', __('File Flight Report'))
|
||||
@section('title', trans('frontend.pireps.fileflightreport'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>{{ __('New Flight Report') }}</h2>
|
||||
<h2>@lang('frontend.pireps.newflightreport')</h2>
|
||||
@include('flash::message')
|
||||
{{ Form::open(['route' => 'frontend.pireps.store']) }}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
@extends('app')
|
||||
@section('title', __('Edit Flight Report'))
|
||||
@section('title', trans('frontend.pireps.editflightreport'))
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>{{ __('Edit Flight Report') }}</h2>
|
||||
<h2>@lang('frontend.pireps.editflightreport')</h2>
|
||||
@include('flash::message')
|
||||
{{ Form::model($pirep, [
|
||||
'route' => ['frontend.pireps.update', $pirep->id],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@if($aircraft)
|
||||
<div class="form-container">
|
||||
<h6><i class="fas fa-ellipsis-h"></i>
|
||||
{{ __('Fare', 2) }}
|
||||
{{ trans_coice('frontend.pireps.fare', 2) }}
|
||||
</h6>
|
||||
<div class="form-container-body">
|
||||
@foreach($aircraft->subfleet->fares as $fare)
|
||||
|
||||
@@ -12,7 +12,7 @@ flight reports that have been filed. You've been warned!
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@component('components.info')
|
||||
{{ __('Once a PIREP has been accepted/rejected, certain fields go into read-only mode.') }}
|
||||
@lang('frontend.pireps.fieldsreadonly')
|
||||
@endcomponent
|
||||
</div>
|
||||
</div>
|
||||
@@ -21,12 +21,12 @@ flight reports that have been filed. You've been warned!
|
||||
<div class="col-8">
|
||||
<div class="form-container">
|
||||
<h6><i class="fas fa-info-circle"></i>
|
||||
{{ __('Flight Informations') }}
|
||||
@lang('frontend.pireps.flightinformations')
|
||||
</h6>
|
||||
<div class="form-container-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
{{ Form::label('airline_id', __('Airline')) }}
|
||||
{{ Form::label('airline_id', trans('frontend.global.airline')) }}
|
||||
@if(!empty($pirep) && $pirep->read_only)
|
||||
<p>{{ $pirep->airline->name }}</p>
|
||||
{{ Form::hidden('airline_id') }}
|
||||
@@ -42,7 +42,7 @@ flight reports that have been filed. You've been warned!
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
{{ Form::label('flight_number', __('Flight Number/Code/Leg')) }}
|
||||
{{ Form::label('flight_number', trans('frontend.pireps.flightident')) }}
|
||||
@if(!empty($pirep) && $pirep->read_only)
|
||||
<p>{{ $pirep->ident }}
|
||||
{{ Form::hidden('flight_number') }}
|
||||
@@ -52,19 +52,19 @@ flight reports that have been filed. You've been warned!
|
||||
@else
|
||||
<div class="input-group input-group-sm mb3">
|
||||
{{ Form::text('flight_number', null, [
|
||||
'placeholder' => __('Flight Number'),
|
||||
'placeholder' => trans('frontend.global.flightnumber'),
|
||||
'class' => 'form-control',
|
||||
'readonly' => (!empty($pirep) && $pirep->read_only),
|
||||
]) }}
|
||||
|
||||
{{ Form::text('route_code', null, [
|
||||
'placeholder' => __('Code (optional)'),
|
||||
'placeholder' => trans('frontend.pireps.codeoptional'),
|
||||
'class' => 'form-control',
|
||||
'readonly' => (!empty($pirep) && $pirep->read_only),
|
||||
]) }}
|
||||
|
||||
{{ Form::text('route_leg', null, [
|
||||
'placeholder' => __('Leg (optional)'),
|
||||
'placeholder' => trans('frontend.pireps.legoptional'),
|
||||
'class' => 'form-control',
|
||||
'readonly' => (!empty($pirep) && $pirep->read_only),
|
||||
]) }}
|
||||
@@ -75,7 +75,7 @@ flight reports that have been filed. You've been warned!
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
{{ Form::label('flight_type', __('Flight Type')) }}
|
||||
{{ Form::label('flight_type', trans('frontend.pireps.flighttype')) }}
|
||||
@if(!empty($pirep) && $pirep->read_only)
|
||||
<p>{{ \App\Models\Enums\FlightType::label($pirep->flight_type) }}</p>
|
||||
{{ Form::hidden('flight_type') }}
|
||||
@@ -96,10 +96,10 @@ flight reports that have been filed. You've been warned!
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
{{ Form::label('hours', __('Flight Time')) }}
|
||||
{{ Form::label('hours', trans('frontend.global.flighttime')) }}
|
||||
@if(!empty($pirep) && $pirep->read_only)
|
||||
<p>
|
||||
{{ $pirep->hours.' '.__trans_choice('Hour', $pirep->hours) }}, {{ $pirep->minutes.' '.__trans_choice('Minute', $pirep->minutes) }}
|
||||
{{ $pirep->hours.' '.trans_choice('frontend.global.hour', $pirep->hours) }}, {{ $pirep->minutes.' '.trans_choice('frontend.global.minute', $pirep->minutes) }}
|
||||
{{ Form::hidden('hours') }}
|
||||
{{ Form::hidden('minutes') }}
|
||||
</p>
|
||||
@@ -107,14 +107,14 @@ flight reports that have been filed. You've been warned!
|
||||
<div class="input-group input-group-sm" style="max-width: 200px;">
|
||||
{{ Form::number('hours', null, [
|
||||
'class' => 'form-control',
|
||||
'placeholder' => __trans_choice('Hour', 2),
|
||||
'placeholder' => trans_choice('frontend.global.hour', 2),
|
||||
'min' => '0',
|
||||
'readonly' => (!empty($pirep) && $pirep->read_only),
|
||||
]) }}
|
||||
|
||||
{{ Form::number('minutes', null, [
|
||||
'class' => 'form-control',
|
||||
'placeholder' => __trans_choice('Minute', 2),
|
||||
'placeholder' => trans_choice('frontend.global.minute', 2),
|
||||
'min' => 0,
|
||||
'readonly' => (!empty($pirep) && $pirep->read_only),
|
||||
]) }}
|
||||
@@ -126,27 +126,27 @@ flight reports that have been filed. You've been warned!
|
||||
|
||||
|
||||
<div class="col-3">
|
||||
{{--{{ Form::label('submitted_date', __('Date Flown')) }}
|
||||
{{--{{ Form::label('submitted_date', trans('frontend.pireps.dateflown')) }}
|
||||
{{ Form::text('submmitted_date', null, [
|
||||
'placeholder' => __('Departure Date'),
|
||||
'placeholder' => trans('frontend.pireps.departuredate'),
|
||||
'class' => 'form-control',
|
||||
'readonly' => $pirep->read_only]) }}--}}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-3">
|
||||
{{--{{ Form::label('departure_time', __('Departure Time')) }}
|
||||
{{--{{ Form::label('departure_time', trans('frontend.pireps.departuretime')) }}
|
||||
{{ Form::text('departure_time', null, [
|
||||
'placeholder' => __('Departure TIme'),
|
||||
'placeholder' => trans('frontend.pireps.departuretime'),
|
||||
'class' => 'form-control',
|
||||
'readonly' => $pirep->read_only]) }}--}}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-3">
|
||||
{{--{{ Form::label('arrival_time', __('Arrival Time')) }}
|
||||
{{--{{ Form::label('arrival_time', trans('frontend.pireps.arrivaltime')) }}
|
||||
{{ Form::text('arrival_time', null, [
|
||||
'placeholder' => __('Arrival TIme'),
|
||||
'placeholder' => trans('frontend.pireps.arrivaltime'),
|
||||
'class' => 'form-control',
|
||||
'readonly' => $pirep->read_only]) }}--}}
|
||||
</div>
|
||||
@@ -158,12 +158,12 @@ flight reports that have been filed. You've been warned!
|
||||
|
||||
<div class="form-container">
|
||||
<h6><i class="fas fa-globe"></i>
|
||||
{{ __('Departure/Arrival Informations') }}
|
||||
@lang('frontend.pireps.deparrinformations')
|
||||
</h6>
|
||||
<div class="form-container-body">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{ Form::label('dpt_airport_id', __('Departure Airport')) }}
|
||||
{{ Form::label('dpt_airport_id', trans('frontend.global.departureairport')) }}
|
||||
@if(!empty($pirep) && $pirep->read_only)
|
||||
{{ $pirep->dpt_airport->name }}
|
||||
(<a href="{{route('frontend.airports.show', [
|
||||
@@ -183,7 +183,7 @@ flight reports that have been filed. You've been warned!
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
{{ Form::label('arr_airport_id', __('Arrival Airport')) }}
|
||||
{{ Form::label('arr_airport_id', trans('frontend.global.arrivalairport')) }}
|
||||
@if(!empty($pirep) && $pirep->read_only)
|
||||
{{ $pirep->arr_airport->name }}
|
||||
(<a href="{{route('frontend.airports.show', [
|
||||
@@ -207,12 +207,12 @@ flight reports that have been filed. You've been warned!
|
||||
|
||||
<div class="form-container">
|
||||
<h6><i class="fab fa-avianex"></i>
|
||||
{{ __('Aircraft Informations') }}
|
||||
@lang('frontend.pireps.aircraftinformations')
|
||||
</h6>
|
||||
<div class="form-container-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{ Form::label('aircraft_id', __('Aircraft')) }}
|
||||
{{ Form::label('aircraft_id', trans('frontend.global.aircraft')) }}
|
||||
@if(!empty($pirep) && $pirep->read_only)
|
||||
<p>{{ $pirep->aircraft->name }}</p>
|
||||
{{ Form::hidden('aircraft_id') }}
|
||||
@@ -234,13 +234,13 @@ flight reports that have been filed. You've been warned!
|
||||
|
||||
<div class="form-container">
|
||||
<h6><i class="far fa-comments"></i>
|
||||
{{ __('Route') }}
|
||||
@lang('frontend.global.route')
|
||||
</h6>
|
||||
<div class="form-container-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="input-group input-group-sm form-group">
|
||||
{{ Form::textarea('route', null, ['class' => 'form-control', 'placeholder' => __('Route')]) }}
|
||||
{{ Form::textarea('route', null, ['class' => 'form-control', 'placeholder' => trans('frontend.global.route')]) }}
|
||||
<p class="text-danger">{{ $errors->first('route') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -250,13 +250,13 @@ flight reports that have been filed. You've been warned!
|
||||
|
||||
<div class="form-container">
|
||||
<h6><i class="far fa-comments"></i>
|
||||
{{ __('Remarks') }}
|
||||
{{ trans_choice('frontend.global.remark', 2) }}
|
||||
</h6>
|
||||
<div class="form-container-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="input-group input-group-sm form-group">
|
||||
{{ Form::textarea('notes', null, ['class' => 'form-control', 'placeholder' => __('Notes')]) }}
|
||||
{{ Form::textarea('notes', null, ['class' => 'form-control', 'placeholder' => trans_choice('frontend.global.note', 2)]) }}
|
||||
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -269,7 +269,7 @@ flight reports that have been filed. You've been warned!
|
||||
|
||||
<div class="form-container">
|
||||
<h6><i class="fab fa-wpforms"></i>
|
||||
{{ __trans_choice('Field', 2) }}
|
||||
{{ trans_choice('frontend.global.field', 2) }}
|
||||
</h6>
|
||||
<div class="form-container-body">
|
||||
|
||||
@@ -310,7 +310,7 @@ flight reports that have been filed. You've been warned!
|
||||
<div class="form-group">
|
||||
|
||||
@if(isset($pirep) && !$pirep->read_only)
|
||||
{{ Form::button(__('Delete PIREP'), [
|
||||
{{ Form::button(trans('frontend.pireps.deletepirep'), [
|
||||
'name' => 'submit',
|
||||
'value' => 'Delete',
|
||||
'class' => 'btn btn-warning',
|
||||
@@ -319,14 +319,14 @@ flight reports that have been filed. You've been warned!
|
||||
@endif
|
||||
|
||||
@if(!isset($pirep) || (filled($pirep) && !$pirep->read_only))
|
||||
{{ Form::button(__('Save PIREP'), [
|
||||
{{ Form::button(trans('frontend.pireps.savepirep'), [
|
||||
'name' => 'submit',
|
||||
'value' => 'Save',
|
||||
'class' => 'btn btn-info',
|
||||
'type' => 'submit'])
|
||||
}}
|
||||
|
||||
{{ Form::button(__('Submit PIREP'), [
|
||||
{{ Form::button(trans('frontend.pireps.submitpirep'), [
|
||||
'name' => 'submit',
|
||||
'value' => 'Submit',
|
||||
'class' => 'btn btn-success',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __trans_choice('PIREP', 2))
|
||||
@section('title', trans_choice('frontend.global.pirep', 2))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -7,9 +7,9 @@
|
||||
<div style="float:right;">
|
||||
<a class="btn btn-info pull-right btn-lg"
|
||||
style="margin-top: -10px;margin-bottom: 5px"
|
||||
href="{{ route('frontend.pireps.create') }}">{{ __('File New PIREP') }}</a>
|
||||
href="{{ route('frontend.pireps.create') }}">@lang('frontend.pireps.filenewpirep')</a>
|
||||
</div>
|
||||
<h2>{{ __trans_choice('Pilot Report', 2) }}</h2>
|
||||
<h2>{{ trans_choice('frontend.pireps.pilotreport', 2) }}</h2>
|
||||
@include('flash::message')
|
||||
@include('pireps.table')
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<p class="float-right">
|
||||
<a href="{{ route('frontend.pireps.edit', [
|
||||
'id' => $pirep->id,
|
||||
]) }}" class="btn btn-sm btn-info">{{ __('Edit') }}</a>
|
||||
]) }}" class="btn btn-sm btn-info">@lang('frontend.global.edit') }}</a>
|
||||
</p>
|
||||
<h5>
|
||||
<a href="{{ route('frontend.pireps.show', [$pirep->id]) }}">
|
||||
@@ -41,22 +41,22 @@
|
||||
<div class="col-sm-6">
|
||||
<table class="table-condensed" width="100%">
|
||||
<tr>
|
||||
<td nowrap><span class="title">{{ __('Flight Time') }} </span></td>
|
||||
<td nowrap><span class="title">@lang('frontend.pireps.flighttime') </span></td>
|
||||
<td>{{ Utils::minutesToTimeString($pirep->flight_time) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap><span class="title">{{ __('Aircraft') }} </span></td>
|
||||
<td nowrap><span class="title">@lang('frontend.global.aircraft') </span></td>
|
||||
<td>{{ $pirep->aircraft->name }}
|
||||
({{ $pirep->aircraft->registration }})</td>
|
||||
</tr>
|
||||
@if($pirep->level)
|
||||
<tr>
|
||||
<td nowrap><span class="title">{{ __('Flight Level') }} </span></td>
|
||||
<td nowrap><span class="title">@lang('frontend.pireps.flightlevel') }} </span></td>
|
||||
<td>{{ $pirep->level }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td nowrap><span class="title">{{ __('Filed On') }}: </span></td>
|
||||
<td nowrap><span class="title">@lang('frontend.pireps.filedon'): </span></td>
|
||||
<td>{{ show_datetime($pirep->created_at) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __trans_choice('PIREP', 1).' '.$pirep->ident)
|
||||
@section('title', trans_choice('frontend.global.pirep', 1).' '.$pirep->ident)
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@@ -12,7 +12,7 @@
|
||||
@if($pirep->state === PirepState::IN_PROGRESS)
|
||||
|
||||
@else
|
||||
__('Arrived') {{$pirep->created_at->diffForHumans()}}
|
||||
@lang('frontend.pireps.arrived') {{$pirep->created_at->diffForHumans()}}
|
||||
@endif
|
||||
</p>
|
||||
</p>
|
||||
@@ -89,20 +89,20 @@
|
||||
action="{{ route('frontend.pireps.edit', ['id' => $pirep->id]) }}"
|
||||
style="display: inline">
|
||||
@csrf
|
||||
<button class="btn btn-info">{{ __('Edit') }}</button>
|
||||
<button class="btn btn-info">@lang('frontend.global.edit')</button>
|
||||
</form>
|
||||
|
||||
<form method="post"
|
||||
action="{{ route('frontend.pireps.submit', ['id' => $pirep->id]) }}"
|
||||
style="display: inline">
|
||||
@csrf
|
||||
<button class="btn btn-success">{{ __('Submit') }}</button>
|
||||
<button class="btn btn-success">@lang('frontend.global.submit')</button>
|
||||
</form>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<td width="30%">{{ __('Status') }}</td>
|
||||
<td width="30%">@lang('frontend.global.status')</td>
|
||||
<td>
|
||||
<div class="badge badge-info">
|
||||
{{ PirepStatus::label($pirep->status) }}
|
||||
@@ -111,31 +111,31 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Source') }}</td>
|
||||
<td>@lang('frontend.pireps.source')</td>
|
||||
<td>{{ PirepSource::label($pirep->source) }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Flight Type') }}</td>
|
||||
<td>@lang('frontend.pireps.flighttype')</td>
|
||||
<td>{{ \App\Models\Enums\FlightType::label($pirep->flight_type) }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Filed Route') }}</td>
|
||||
<td>@lang('frontend.pireps.filedroute')</td>
|
||||
<td>
|
||||
{{ $pirep->route }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Notes') }}</td>
|
||||
<td>{{ trans_choice('frontend.global.note', 2) }}</td>
|
||||
<td>
|
||||
{{ $pirep->notes }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Filed On') }}</td>
|
||||
<td>@lang('frontend.pireps.filedon')</td>
|
||||
<td>
|
||||
{{ show_datetime($pirep->created_at) }}
|
||||
</td>
|
||||
@@ -148,11 +148,11 @@
|
||||
@endif
|
||||
|
||||
@if(count($pirep->fields) > 0)
|
||||
<h5>{{ __trans_choice('Field', 2) }}</h5>
|
||||
<h5>{{ trans_choice('frontend.global.field', 2) }}</h5>
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Value') }}</th>
|
||||
<th>@lang('frontend.global.name')</th>
|
||||
<th>@lang('frontend.global.value')</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($pirep->fields as $field)
|
||||
@@ -175,11 +175,11 @@
|
||||
@if(count($pirep->fares) > 0)
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h5>{{ __trans_choice('Fare', 2) }}</h5>
|
||||
<h5>{{ trans_choice('frontend.pireps.fare', 2) }}</h5>
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<th>{{ __('Class') }}</th>
|
||||
<th>{{ __('Count') }}</th>
|
||||
<th>@lang('frontend.pireps.class')</th>
|
||||
<th>@lang('frontend.pireps.count')</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($pirep->fares as $fare)
|
||||
@@ -200,7 +200,7 @@
|
||||
<div class="separator"></div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h5>{{ __('Flight Log') }}</h5>
|
||||
<h5>@lang('frontend.pireps.flightlog')</h5>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<table class="table table-hover table-condensed" id="users-table">
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
<table class="table table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __trans_choice('Flight', 1) }}</th>
|
||||
<th>{{ __('Departure') }}</th>
|
||||
<th>{{ __('Arrival') }}</th>
|
||||
<th>{{ __('Aircraft') }}</th>
|
||||
<th class="text-center">{{ __('Flight Time') }}</th>
|
||||
<th class="text-center">{{ __('Status') }}</th>
|
||||
<th>{{ __('Submitted') }}</th>
|
||||
<th>{{ trans_choice('frontend.global.flight', 1) }}</th>
|
||||
<th>@lang('frontend.global.departure')</th>
|
||||
<th>@lang('frontend.global.arrival')</th>
|
||||
<th>@lang('frontend.global.aircraft')</th>
|
||||
<th class="text-center">@lang('frontend.global.flighttime')</th>
|
||||
<th class="text-center">@lang('frontend.global.status')</th>
|
||||
<th>@lang('frontend.pireps.submitted')</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -58,7 +58,7 @@
|
||||
@if(!$pirep->read_only)
|
||||
<a href="{{ route('frontend.pireps.edit', [
|
||||
'id' => $pirep->id,
|
||||
]) }}">{{ __('Edit') }}</a>
|
||||
]) }}">@lang('frontend.global.edit')</a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@extends('app')
|
||||
@section('title', __('Edit Profile'))
|
||||
@section('title', trans('frontend.profile.editprofile'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 class="description">{{ __('Edit Your Profile') }}</h2>
|
||||
<h2 class="description">@lang('frontend.profile.edityourprofile')</h2>
|
||||
@include('flash::message')
|
||||
{{ Form::model($user, ['route' => ['frontend.profile.update', $user->id], 'files' => true, 'method' => 'patch']) }}
|
||||
@include("profile.fields")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="col-md-12">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>{{ __('Name') }}</td>
|
||||
<td>@lang('frontend.global.name')</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('name') ? ' has-danger' : '' }}">
|
||||
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||
@@ -14,7 +14,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Email') }}</td>
|
||||
<td>@lang('frontend.global.email')</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('email') ? ' has-danger' : '' }}">
|
||||
{{ Form::text('email', null, ['class' => 'form-control']) }}
|
||||
@@ -26,7 +26,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Airline') }}</td>
|
||||
<td>@lang('frontend.global.airline')</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('airline') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
||||
@@ -38,7 +38,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Home Airport') }}</td>
|
||||
<td>@lang('frontend.global.homeairport')</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('home_airport_id') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
||||
@@ -50,7 +50,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Country') }}</td>
|
||||
<td>@lang('frontend.global.country')</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('country') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
|
||||
@@ -62,7 +62,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Timezone') }}</td>
|
||||
<td>@lang('frontend.global.timezone')</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('timezone') ? ' has-danger' : '' }}">
|
||||
{{ Form::select('timezone', $timezones, null, ['class' => 'form-control select2' ]) }}
|
||||
@@ -74,8 +74,9 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ __('Change Password') }}</td>
|
||||
<td>@lang('frontend.profile.changepassword')</td>
|
||||
<td>
|
||||
<p>@lang('frontend.profile.newpassword'):</p>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('password') ? ' has-danger' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -83,7 +84,7 @@
|
||||
<p class="text-danger">{{ $errors->first('password') }}</p>
|
||||
@endif
|
||||
|
||||
<p>{{ __('Confirm Password') }}:</p>
|
||||
<p>@lang('frontend.global.confirmpassword'):</p>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}">
|
||||
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
@@ -92,12 +93,12 @@
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<td>{{ __('Avatar') }}</td>
|
||||
<td>@lang('frontend.profile.avatar')</td>
|
||||
<td>
|
||||
<div class="input-group form-group-no-border{{ $errors->has('avatar') ? ' has-danger' : '' }}">
|
||||
{{ Form::file('avatar', null) }}
|
||||
</div>
|
||||
<p class="small">This avatar will be resized to {{ config('phpvms.avatar.width'). ' x '. config('phpvms.avatar.height') }}</p>
|
||||
<p class="small">@lang('frontend.profile.avatarresize', ['width' => config('phpvms.avatar.width'), 'height' => config('phpvms.avatar.height')])</p>
|
||||
@if ($errors->has('avatar'))
|
||||
<p class="text-danger">{{ $errors->first('avatar') }}</p>
|
||||
@endif
|
||||
@@ -106,7 +107,7 @@
|
||||
</table>
|
||||
|
||||
<div style="width: 100%; text-align: right; padding-top: 20px;">
|
||||
{{ Form::submit(__('Update Profile'), ['class' => 'btn btn-primary']) }}
|
||||
{{ Form::submit(trans('frontend.profile.updateprofile'), ['class' => 'btn btn-primary']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('app')
|
||||
@section('title', __('Profile'))
|
||||
@section('title', trans('frontend.global.profile'))
|
||||
|
||||
@section('content')
|
||||
<div class="row profile-page content-center text-color-dark-beige">
|
||||
@@ -23,25 +23,25 @@
|
||||
<div class="content">
|
||||
<div class="social-description">
|
||||
<h2>{{ $user->flights}}</h2>
|
||||
<p>{{ __trans_choice('Flight', $user->flights) }}</p>
|
||||
<p>{{ trans_choice('frontend.global.flight', $user->flights) }}</p>
|
||||
</div>
|
||||
|
||||
<div class="social-description">
|
||||
<h2>{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false) }}</h2>
|
||||
<p>{{ __('Flight Hours') }}</p>
|
||||
<p>@lang('frontend.profile.flighthours')</p>
|
||||
</div>
|
||||
|
||||
@if($user->home_airport)
|
||||
<div class="social-description">
|
||||
<h2>{{ $user->home_airport->icao }}</h2>
|
||||
<p>{{ __('Home Airport') }}</p>
|
||||
<p>@lang('frontend.global.homeairport')</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($user->current_airport)
|
||||
<div class="social-description">
|
||||
<h2>{{ $user->current_airport->icao }}</h2>
|
||||
<p>{{ __('Current Airport') }}</p>
|
||||
<p>@lang('frontend.global.currentairport')</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -58,24 +58,24 @@
|
||||
<div class="col-sm-12">
|
||||
<div class="text-right">
|
||||
<a href="{{ route('frontend.profile.regen_apikey') }}" class="btn btn-warning"
|
||||
onclick="return confirm({{ __('Are you sure? This will reset your API key.') }})">{{ __('New API Key') }}</a>
|
||||
onclick="return confirm({{ __('Are you sure? This will reset your API key.') }})">@lang('frontend.profile.newapikey')</a>
|
||||
|
||||
<a href="{{ route('frontend.profile.edit', ['id' => $user->id]) }}"
|
||||
class="btn btn-primary">{{ __('Edit') }}</a>
|
||||
class="btn btn-primary">@lang('frontend.global.edit')</a>
|
||||
</div>
|
||||
|
||||
<h3 class="description">{{ __('Your Profile') }}</h3>
|
||||
<h3 class="description">@lang('frontend.profile.yourprofile')</h3>
|
||||
<table class="table table-full-width">
|
||||
<tr>
|
||||
<td>{{ __('Email') }}</td>
|
||||
<td>@lang('frontend.global.email')</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('API Key') }} <span class="description">({{ __('don\'t share this!') }})</span></td>
|
||||
<td>@lang('frontend.profile.apikey') <span class="description">(@lang('frontend.profile.dontshare'))</span></td>
|
||||
<td>{{ $user->api_key }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Timezone') }}</td>
|
||||
<td>@lang('frontend.global.timezone')</td>
|
||||
<td>{{ $user->timezone }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@extends('app')
|
||||
@section('title', __trans_choice('Pilot', 2))
|
||||
@section('title', trans_choice('frontend.global.pilot', 2))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>{{ __trans_choice('Pilot', 2) }}</h2>
|
||||
<h2>{{ trans_choice('frontend.global.pilot', 2) }}</h2>
|
||||
@include('users.table')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<table class="table table-hover" id="users-table">
|
||||
<thead>
|
||||
<th></th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>@lang('frontend.global.name')</th>
|
||||
<th style="text-align: center"></th>
|
||||
<th style="text-align: center">{{ __('Airline') }}</th>
|
||||
<th style="text-align: center">{{ __('Location') }}</th>
|
||||
<th style="text-align: center">{{ __trans_choice('Flight', 2) }}</th>
|
||||
<th style="text-align: center">{{ __trans_choice('Hour', 2) }}</th>
|
||||
<th style="text-align: center">@lang('frontend.global.airline')</th>
|
||||
<th style="text-align: center">@lang('frontend.users.location')</th>
|
||||
<th style="text-align: center">{{ trans_choice('frontend.global.flight', 2) }}</th>
|
||||
<th style="text-align: center">{{ trans_choice('frontend.global.hour', 2) }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($users as $user)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
|
||||
{{ __('News') }}
|
||||
@lang('frontend.widgets.latestnews.news')
|
||||
</div>
|
||||
<div class="card border-blue-bottom">
|
||||
<div class="card-block" style="min-height: 0px">
|
||||
@if($news->count() === 0)
|
||||
<div class="text-center text-muted" style="padding: 30px;">
|
||||
{{ __('No News Found') }}
|
||||
@lang('frontend.widgets.latestnews.nonewsfound')
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@@ -37,22 +37,22 @@
|
||||
</a>
|
||||
</h3>
|
||||
<p id="map_flight_info">
|
||||
{ pirep.dpt_airport.name } ({ pirep.dpt_airport.icao }) {{ __('to') }}
|
||||
{ pirep.dpt_airport.name } ({ pirep.dpt_airport.icao }) @lang('frontend.global.to')
|
||||
{ pirep.arr_airport.name } ({ pirep.arr_airport.icao })
|
||||
</p>
|
||||
</div>
|
||||
<div style="float: right; margin-left: 30px; margin-right: 30px;">
|
||||
<p id="map_flight_stats_right">
|
||||
{{ __('Ground Speed') }}: <span style="font-weight: bold">{ pirep.position.gs }</span><br/>
|
||||
{{ __('Altitude') }}: <span style="font-weight: bold">{ pirep.position.altitude }</span><br/>
|
||||
{{ __('Heading') }}: <span style="font-weight: bold">{ pirep.position.heading }</span><br/>
|
||||
@lang('frontend.widgets.livemap.groundspeed'): <span style="font-weight: bold">{ pirep.position.gs }</span><br/>
|
||||
@lang('frontend.widgets.livemap.altitude'): <span style="font-weight: bold">{ pirep.position.altitude }</span><br/>
|
||||
@lang('frontend.widgets.livemap.heading'): <span style="font-weight: bold">{ pirep.position.heading }</span><br/>
|
||||
</p>
|
||||
</div>
|
||||
<div style="float: right; margin-left: 30px;">
|
||||
<p id="map_flight_stats_middle">
|
||||
{{ __('Status') }}: <span style="font-weight: bold">{ pirep.status_text }</span><br />
|
||||
{{ __('Flight Time') }}: <span style="font-weight: bold">{ pirep.flight_time | time_hm }</span><br />
|
||||
{{ __('Distance') }}: <span style="font-weight: bold">{ pirep.position.distance.{{setting('units.distance')}} }</span>
|
||||
@lang('frontend.global.status'): <span style="font-weight: bold">{ pirep.status_text }</span><br />
|
||||
@lang('frontend.global.flighttime'): <span style="font-weight: bold">{ pirep.flight_time | time_hm }</span><br />
|
||||
@lang('frontend.global.distance'): <span style="font-weight: bold">{ pirep.position.distance.{{setting('units.distance')}} }</span>
|
||||
/ <span style="font-weight: bold">
|
||||
{ pirep.planned_distance.{{setting('units.distance')}} }</span>
|
||||
</p>
|
||||
@@ -74,18 +74,18 @@ and being mindful of the rivets bindings
|
||||
--}}
|
||||
<div id="live_flights" class="row">
|
||||
<div class="col-md-12">
|
||||
<div rv-hide="has_data" class="jumbotron text-center">{{ __('There are no flights.') }}</div>
|
||||
<div rv-hide="has_data" class="jumbotron text-center">@lang('frontend.widgets.livemap.noflights')</div>
|
||||
<table rv-show="has_data" id="live_flights_table" class="table table-striped">
|
||||
<thead>
|
||||
<tr class="text-small header">
|
||||
<td class="text-small">{{ __trans_choice('Flight', 1) }}</td>
|
||||
<td class="text-small">{{ __('Departure') }}</td>
|
||||
<td class="text-small">{{ __('Arrival') }}</td>
|
||||
<td class="text-small">{{ __('Aircraft') }}</td>
|
||||
<td class="text-small">{{ __('Altitude') }}</td>
|
||||
<td class="text-small">{{ __('GS') }}</td>
|
||||
<td class="text-small">{{ __('Distance') }}</td>
|
||||
<td class="text-small">{{ __('Status') }}</td>
|
||||
<td class="text-small">{{ trans_choice('frontend.global.Flight', 1) }}</td>
|
||||
<td class="text-small">@lang('frontend.global.departure')</td>
|
||||
<td class="text-small">@lang('frontend.global.arrival')</td>
|
||||
<td class="text-small">@lang('frontend.global.aircraft')</td>
|
||||
<td class="text-small">@lang('frontend.widgets.livemap.altitude')</td>
|
||||
<td class="text-small">@lang('frontend.widgets.livemap.gs')</td>
|
||||
<td class="text-small">@lang('frontend.widgets.livemap.distance')</td>
|
||||
<td class="text-small">@lang('frontend.global.status') }}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -5,30 +5,30 @@ https://api.checkwx.com/#metar-decoded
|
||||
|
||||
--}}
|
||||
@if(!$metar)
|
||||
<p>{{ __('METAR/TAF data could not be retrieved') }}</p>
|
||||
<p>@lang('frontend.widgets.weather.metarnotretrieved')</p>
|
||||
@else
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<td>{{ __('Conditions') }}</td>
|
||||
<td>@lang('frontend.widgets.weather.conditions')</td>
|
||||
<td>
|
||||
{{ $metar['category'] }}
|
||||
{{ $metar['temperature'][$unit_temp] }}
|
||||
°{{strtoupper($unit_temp)}}
|
||||
@if($metar['visibility'])
|
||||
, {{ __('visibility') }} {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}}
|
||||
, @lang('frontend.widgets.weather.visibility') {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}}
|
||||
@endif
|
||||
@if($metar['humidity'])
|
||||
, {{ $metar['humidity'] }}% {{ __('humidity') }}
|
||||
, {{ $metar['humidity'] }}% @lang('frontend.widgets.weather.humidity')
|
||||
@endif
|
||||
@if($metar['dew_point'])
|
||||
, {{ __('dew point') }}
|
||||
, @lang('frontend.widgets.weather.dewpoint')
|
||||
{{ $metar['dew_point'][$unit_temp] }}
|
||||
°{{strtoupper($unit_temp)}}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Barometer') }}</td>
|
||||
<td>@lang('frontend.widgets.weather.barometer')</td>
|
||||
<td>
|
||||
{{ number_format($metar['barometer'], 2) }} hPa
|
||||
/ {{ number_format($metar['barometer_in'], 2) }} inHg
|
||||
@@ -36,7 +36,7 @@ https://api.checkwx.com/#metar-decoded
|
||||
</tr>
|
||||
@if($metar['clouds'])
|
||||
<tr>
|
||||
<td>{{ __('Clouds') }}</td>
|
||||
<td>@lang('frontend.widgets.weather.clouds')</td>
|
||||
<td>
|
||||
@if($unit_alt === 'ft')
|
||||
{{$metar['clouds_report_ft']}}
|
||||
@@ -47,17 +47,17 @@ https://api.checkwx.com/#metar-decoded
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ __('Wind') }}</td>
|
||||
<td>@lang('frontend.widgets.weather.wind')</td>
|
||||
<td>
|
||||
{{$metar['wind_speed']}} kts {{ __('from') }} {{$metar['wind_direction_label']}}
|
||||
{{$metar['wind_speed']}} kts @lang('frontend.global.from') {{$metar['wind_direction_label']}}
|
||||
({{$metar['wind_direction']}}°)
|
||||
@if($metar['wind_gust_speed'])
|
||||
{{ __('gusts to').' '.$metar['wind_gust_speed'] }}
|
||||
@lang('frontend.widgets.weather.guststo') {{ $metar['wind_gust_speed'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('METAR') }}</td>
|
||||
<td>@lang('frontend.global.metar')</td>
|
||||
<td>
|
||||
<div style="line-height:1.5em;min-height: 3em;">
|
||||
{{ $metar['raw'] }}
|
||||
@@ -66,14 +66,14 @@ https://api.checkwx.com/#metar-decoded
|
||||
</tr>
|
||||
@if($metar['remarks'])
|
||||
<tr>
|
||||
<td>{{ __('Remarks') }}</td>
|
||||
<td>@lang('frontend.widgets.weather.remarks')</td>
|
||||
<td>
|
||||
{{ $metar['remarks'] }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ __('Updated') }}</td>
|
||||
<td>@lang('frontend.widgets.weather.updated')</td>
|
||||
<td>{{$metar['observed_time']}} ({{$metar['observed_age']}})</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user