Add directory localization options
This commit is contained in:
parent
1e2f331778
commit
ca3a06f248
|
@ -54,7 +54,9 @@ return [
|
||||||
'profile' => 'My Profile',
|
'profile' => 'My Profile',
|
||||||
'code' => 'code',
|
'code' => 'code',
|
||||||
'here' => 'here',
|
'here' => 'here',
|
||||||
'auth_req' => 'Please authenticate'
|
'auth_req' => 'Please authenticate',
|
||||||
|
'eligible' => 'Eligible',
|
||||||
|
'ineligible' => 'Ineligible'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
@ -493,7 +495,36 @@ EOT,
|
||||||
|
|
||||||
'update_prfl' => 'Update Profile'
|
'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!',
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
@extends('adminlte::page')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
@section('title', 'Raspberry Network | Applications')
|
@section('title', config('app.name') . ' | ' . __('messages.application_m.int_applications'))
|
||||||
|
|
||||||
@section('content_header')
|
@section('content_header')
|
||||||
|
|
||||||
<h4>My Account / Applications</h4>
|
<h4>{{__('messages.reusable.my_acc')}} / {{__('messages.application_m.int_applications')}}</h4>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@ -21,22 +21,21 @@
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
|
||||||
<div class="callout callout-warning">
|
<div class="callout callout-warning">
|
||||||
<h5>Application Process</h5>
|
<h5>{{__('messages.user.app_process.title')}}</h5>
|
||||||
|
|
||||||
<p>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.</p>
|
<p>{{__('messages.user.app_process.line1')}}</p>
|
||||||
<p>If an interview is scheduled, you'll need to open your application here and confirm the time, date, and location assigned for you.</p>
|
<p>{{__('messages.user.app_process.line2')}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<b><i class="fa fa-info-circle"></i> Account Standing</b>
|
<b><i class="fa fa-info-circle"></i> {{__('messages.user.account_standing')}}</b>
|
||||||
|
|
||||||
<p>Your account is currently <b>{{($isEligibleForApplication) ? 'eligible' : 'not eligible'}}</b> for application.</p>
|
<p>{{__('messages.user.account_eligibility', ['eligibility' => ($isEligibileForApplication) ? __('messages.eligible') : __('messages.ineligible')])}}</p>
|
||||||
|
|
||||||
@if (!$isEligibleForApplication)
|
@if (!$isEligibleForApplication)
|
||||||
<p>As of today, there are <b>{{$eligibilityDaysRemaining}} days</b> remaining until you're permitted to submit another application.</p>
|
<p>{{__('messages.user.days_remaining_acc_alt', ['days' => '<b>' . $eligibilityDaysRemaining .'</b>'])}}</p>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<i class="text-sm">Powered by Carbon</i>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,7 +48,7 @@
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3 class="card-title">My Ongoing Applications</h3>
|
<h3 class="card-title">{{__('messages.user.my_ongoingapps')}}</h3>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.card-header -->
|
<!-- /.card-header -->
|
||||||
<div class="card-body p-0"> <!-- move to dedi css -->
|
<div class="card-body p-0"> <!-- move to dedi css -->
|
||||||
|
@ -60,11 +59,11 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 10px">#</th>
|
<th style="width: 10px">#</th>
|
||||||
<th>Applicant</th>
|
<th>{{__('messages.application_m.applicant')}}</th>
|
||||||
<th>Application Date</th>
|
<th>{{__('messages.application_m.application_date')}}</th>
|
||||||
<th>Last Acted On</th>
|
<th>{{__('messages.last_updated')}}</th>
|
||||||
<th style="width: 40px">Status</th>
|
<th style="width: 40px">{{__('messages.reusable.status')}}</th>
|
||||||
<th style="width: 40px">Actions</th>
|
<th style="width: 40px">{{__('messages.reusable.actions')}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -80,36 +79,36 @@
|
||||||
@switch($application->applicationStatus)
|
@switch($application->applicationStatus)
|
||||||
|
|
||||||
@case('STAGE_SUBMITTED')
|
@case('STAGE_SUBMITTED')
|
||||||
<span class="badge badge-success"><i class="fas fa-paper-plane"></i> Submitted</span>
|
<span class="badge badge-success"><i class="fas fa-paper-plane"></i> {{__('messages.user.submitted')}}</span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('STAGE_PEERAPPROVAL')
|
@case('STAGE_PEERAPPROVAL')
|
||||||
<span class="badge badge-warning"><i class="fas fa-users"></i> Peer Approval</span>
|
<span class="badge badge-warning"><i class="fas fa-users"></i> {{__('messages.user.peer_approval')}}</span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('STAGE_INTERVIEW')
|
@case('STAGE_INTERVIEW')
|
||||||
<span class="badge badge-info"><i class="fa fa-microphone-alt"></i> Interview</span>
|
<span class="badge badge-info"><i class="fa fa-microphone-alt"></i> {{__('messages.application_m.interview_p')}}</span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('STAGE_INTERVIEW_SCHEDULED')
|
@case('STAGE_INTERVIEW_SCHEDULED')
|
||||||
<span class="badge badge-warning"><i class="fa fa-clock"></i> Interview Scheduled</span>
|
<span class="badge badge-warning"><i class="fa fa-clock"></i> {{__('messages.application_m.interview_s')}}</span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('APPROVED')
|
@case('APPROVED')
|
||||||
<span class="badge badge-success"><i class="fa fa-check-double"></i> Approved</span>
|
<span class="badge badge-success"><i class="fa fa-check-double"></i> {{__('messages.application_m.approved')}}</span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('DENIED')
|
@case('DENIED')
|
||||||
<span class="badge badge-danger"><i class="fa fa-ban"></i> <b>Denied</b></span>
|
<span class="badge badge-danger"><i class="fa fa-ban"></i> <b>{{__('messages.application_m.denied')}}</b></span>
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@default
|
@default
|
||||||
<span class="badge badge-danger"><i class="fa fa-question"></i> Unknown</span>
|
<span class="badge badge-danger"><i class="fa fa-question"></i> {{__('messages.application_m.unknown_stat')}}</span>
|
||||||
@endswitch
|
@endswitch
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<button type="button" class="btn btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fa fa-eye"></i> View</button>
|
<button type="button" class="btn btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fa fa-eye"></i> {{__('messages.reusable.view')}}</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -121,8 +120,8 @@
|
||||||
@else
|
@else
|
||||||
|
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
<p><i class="fa fa-info-circle"></i> <b>Nothing to show</b></p>
|
<p><i class="fa fa-info-circle"></i> <b>{{__('messages.user.nothing_to_show')}}</b></p>
|
||||||
<p>You currently have no applications to display. If you're eligible, you may apply once every month.</p>
|
<p>{{__('messages.user.nothing_to_show_exp')}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
<div class="user-indicator mb-2">
|
<div class="user-indicator mb-2">
|
||||||
|
|
||||||
<span class="badge badge-success">It's you!</span>
|
<span class="badge badge-success">{{__('messages.user.directory.itsyou')}}</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('showSingleProfile', ['user' => $user->id]) }}'"><i class="fa fa-eye"></i> Profile</button>
|
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('showSingleProfile', ['user' => $user->id]) }}'"><i class="fa fa-eye"></i> {{__('messages.profile.profile')}}</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
You do not have permission to view this page.
|
{{__('messages.component_nopermission')}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue