diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php index 7e2ae11..aaff669 100644 --- a/resources/lang/en/messages.php +++ b/resources/lang/en/messages.php @@ -54,7 +54,9 @@ return [ 'profile' => 'My Profile', 'code' => 'code', 'here' => 'here', - 'auth_req' => 'Please authenticate' + 'auth_req' => 'Please authenticate', + 'eligible' => 'Eligible', + 'ineligible' => 'Ineligible' ], @@ -493,7 +495,36 @@ EOT, 'update_prfl' => 'Update Profile' + ], + + // ==================== USER ACCOUNT MESSAGES (NON-PRIVILEGED) ===================== + + 'user' => [ + + 'app_process' => [ + 'title' => 'Application Process', + 'line1' => 'Please allow up to three days for your application to be processed. Your application will be reviewed by every team member, and will move up in stages.', + 'line2' => 'If an interview is scheduled, you\'ll need to open your application here and confirm the time, date, and location assigned for you.' + ], + + 'account_standing' => 'Account Standing', + 'account_eligibility' => 'Your account is currently :eligibility for application', + 'days_remaining_acc_alt' => 'As of today, there are :days remaining until you\'re permitted to submit another application.', + 'my_ongoingapps' => 'My Ongoing Applications', + + 'submitted' => 'Submitted', + 'peer_approval' => 'Peer Approval', + + 'nothing_to_show' => 'Nothing to show', + 'nothing_to_show_exp' => 'You currently have no applications to display. If you\'re eligible, you may apply once every month.', + + 'directory' => [ + + 'itsyou' => 'It\'s you!', + + + ] + ] - ]; diff --git a/resources/views/dashboard/user/applications.blade.php b/resources/views/dashboard/user/applications.blade.php index 30f514a..afc7000 100644 --- a/resources/views/dashboard/user/applications.blade.php +++ b/resources/views/dashboard/user/applications.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | Applications') +@section('title', config('app.name') . ' | ' . __('messages.application_m.int_applications')) @section('content_header') -

My Account / Applications

+

{{__('messages.reusable.my_acc')}} / {{__('messages.application_m.int_applications')}}

@stop @@ -21,22 +21,21 @@
-
Application Process
+
{{__('messages.user.app_process.title')}}
-

Please allow up to three days for your application to be processed. Your application will be reviewed by every team member, and will move up in stages.

-

If an interview is scheduled, you'll need to open your application here and confirm the time, date, and location assigned for you.

+

{{__('messages.user.app_process.line1')}}

+

{{__('messages.user.app_process.line2')}}

- Account Standing + {{__('messages.user.account_standing')}} -

Your account is currently {{($isEligibleForApplication) ? 'eligible' : 'not eligible'}} for application.

+

{{__('messages.user.account_eligibility', ['eligibility' => ($isEligibileForApplication) ? __('messages.eligible') : __('messages.ineligible')])}}

@if (!$isEligibleForApplication) -

As of today, there are {{$eligibilityDaysRemaining}} days remaining until you're permitted to submit another application.

+

{{__('messages.user.days_remaining_acc_alt', ['days' => '' . $eligibilityDaysRemaining .''])}}

@endif - Powered by Carbon
@@ -49,7 +48,7 @@
-

My Ongoing Applications

+

{{__('messages.user.my_ongoingapps')}}

@@ -60,11 +59,11 @@ # - Applicant - Application Date - Last Acted On - Status - Actions + {{__('messages.application_m.applicant')}} + {{__('messages.application_m.application_date')}} + {{__('messages.last_updated')}} + {{__('messages.reusable.status')}} + {{__('messages.reusable.actions')}} @@ -80,36 +79,36 @@ @switch($application->applicationStatus) @case('STAGE_SUBMITTED') - Submitted + {{__('messages.user.submitted')}} @break @case('STAGE_PEERAPPROVAL') - Peer Approval + {{__('messages.user.peer_approval')}} @break @case('STAGE_INTERVIEW') - Interview + {{__('messages.application_m.interview_p')}} @break @case('STAGE_INTERVIEW_SCHEDULED') - Interview Scheduled + {{__('messages.application_m.interview_s')}} @break @case('APPROVED') - Approved + {{__('messages.application_m.approved')}} @break @case('DENIED') - Denied + {{__('messages.application_m.denied')}} @break @default - Unknown + {{__('messages.application_m.unknown_stat')}} @endswitch - + @@ -121,8 +120,8 @@ @else
-

Nothing to show

-

You currently have no applications to display. If you're eligible, you may apply once every month.

+

{{__('messages.user.nothing_to_show')}}

+

{{__('messages.user.nothing_to_show_exp')}}

@endif diff --git a/resources/views/dashboard/user/directory.blade.php b/resources/views/dashboard/user/directory.blade.php index 2fa0eb8..f08812e 100644 --- a/resources/views/dashboard/user/directory.blade.php +++ b/resources/views/dashboard/user/directory.blade.php @@ -48,7 +48,7 @@
- It's you! + {{__('messages.user.directory.itsyou')}}
@@ -64,7 +64,7 @@
- +
@@ -98,7 +98,7 @@

- You do not have permission to view this page. + {{__('messages.component_nopermission')}}