From 440a0c54257358b3583830b96b1218a314d6cf7b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 18 May 2018 14:47:55 -0500 Subject: [PATCH] Move dashboard into separate file --- resources/lang/en/dashboard.php | 14 ++++++++++++++ resources/lang/it/dashboard.php | 14 ++++++++++++++ .../layouts/default/dashboard/index.blade.php | 12 ++++++------ 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 resources/lang/en/dashboard.php create mode 100644 resources/lang/it/dashboard.php diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php new file mode 100644 index 00000000..91a195fe --- /dev/null +++ b/resources/lang/en/dashboard.php @@ -0,0 +1,14 @@ + 'Total Hours', + 'yourbalance' => 'Your Balance', + 'yourlastreport' => 'Your Last Report', + 'noreportsyet' => 'No reports yet.', + 'fileonenow' => 'File one now.', + 'weatherat' => 'Weather at :ICAO', + 'recentreports' => 'Recent Reports', +]; diff --git a/resources/lang/it/dashboard.php b/resources/lang/it/dashboard.php new file mode 100644 index 00000000..9bc8812d --- /dev/null +++ b/resources/lang/it/dashboard.php @@ -0,0 +1,14 @@ + 'Ore Totali', + 'yourbalance' => 'Bilancio', + 'yourlastreport' => 'Ultimo Rapporto', + 'noreportsyet' => 'Ancora nessun rapporto.', + 'fileonenow' => 'Inseriscine uno ora.', + 'weatherat' => 'Tempo a :ICAO', + 'recentreports' => 'Rapporti Recenti', +]; diff --git a/resources/views/layouts/default/dashboard/index.blade.php b/resources/views/layouts/default/dashboard/index.blade.php index 7497c976..09944366 100644 --- a/resources/views/layouts/default/dashboard/index.blade.php +++ b/resources/views/layouts/default/dashboard/index.blade.php @@ -26,7 +26,7 @@

{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false)}}

-
@lang('frontend.dashboard.totalhours')
+
@lang('dashboard.totalhours')
@@ -37,7 +37,7 @@

{{ $user->journal->balance }}

-
@lang('frontend.dashboard.yourbalance')
+
@lang('dashboard.yourbalance')
@@ -62,11 +62,11 @@
@if($last_pirep === null)
- @lang('frontend.dashboard.noreportsyet') @lang('frontend.dashboard.fileonenow') + @lang('dashboard.noreportsyet') @lang('dashboard.fileonenow')
@else @include('pireps.pirep_card', ['pirep' => $last_pirep]) @@ -81,7 +81,7 @@
@@ -93,7 +93,7 @@