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', __('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 -->
|
||||
|
||||
Reference in New Issue
Block a user