diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php index aaff669..4a03da3 100644 --- a/resources/lang/en/messages.php +++ b/resources/lang/en/messages.php @@ -56,7 +56,9 @@ return [ 'here' => 'here', 'auth_req' => 'Please authenticate', 'eligible' => 'Eligible', - 'ineligible' => 'Ineligible' + 'ineligible' => 'Ineligible', + 'schedule' => 'Schedule', + 'platform' => 'Platform' ], @@ -521,10 +523,63 @@ EOT, 'directory' => [ 'itsyou' => 'It\'s you!', - + 'title' => 'User Directory', + 'directory' => 'Directory' ] + ], + + 'view_app' => [ + + 'title' => 'Viewing application', + 'viewing_app' => 'Viewing :user\'s application', + 'cantvote' => 'You cannot vote on this application anymore.', + 'no_notes' => 'There are no notes yet. Add some!', + 'deny_confirm' => 'Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.', + 'deny_confirm_consequence' => 'This action cannot be undone.', + 'deny_confirm_btn' => 'Confirm: Deny Applicant', + 'form_updated_alert' => 'If this form has been updated, new fields and updated questions will not show up here!', + 'context_info' => 'Contextual Information', + 'appl_ip' => 'Applicant IP Address', + 'appl_for' => 'Applying for', + 'currentstatus' => 'Current Status', + 'decisionmod' => 'Decision & Moderation Tools', + 'denyapp' => 'Deny applicant', + 'nextstage' => 'Move to next stage', + 'appointment_desc' => 'Appointment description', + 'int_date_time' => 'Interview Date & Time', + 'choosedate' => 'Click to choose a date', + 'appointment_loc' => 'Appointment Location', + 'pref_platform' => 'Select your preferred platform', + 'coming_soon_int' => 'Embedded in-house video conferencing coming soon, powered by Jitsi Meet', + 'scheduled_for' => 'Interview Scheduled for:', + 'platform' => 'Platform', + 'finish_meeting' => 'Finish Meeting', + 'view_notes' => 'View Meeting Notes', + 'vote_app' => 'Vote on this application', + + 'vote_explainer' => [ + + 'line1' => 'If you weren\'t present during this meeting, you can view the shared meeting notepad to help you make a decision.', + 'line2' => 'You may vote on as many applications as needed; However, you can only vote once per application.', + 'line3' => 'Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.' + + ], + + 'vote_approve' => 'Vote: Approve Applicant', + 'vote_deny' => 'Vote: Deny Applicant', + 'm_notes' => 'Meeting notes', + 'view_more' => 'View more Applications', + 'comments' => 'Comments', + 'no_comments' => 'There are no comments here.', + 'no_comments_exp' => 'There are no comments here! Comments are only visible to staff members. Be the first to share your input! Commenting may help with decision-making when time comes to vote for an application.', + 'commenting_as' => 'Commenting as :username', + 'max_chars' => 'max characters', // Context: A number is added before max characters + 'post' => 'Post', // Context: Post as in post comment + + + ] ]; diff --git a/resources/views/dashboard/user/directory.blade.php b/resources/views/dashboard/user/directory.blade.php index f08812e..51e0a75 100644 --- a/resources/views/dashboard/user/directory.blade.php +++ b/resources/views/dashboard/user/directory.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | User Directory') +@section('title', config('app.name') . ' | ' . __('messages.user.directory.title')) @section('content_header') -

Users / Directory

+

{{__('messages.profile.users')}} / {{__('messages.user.directory.directory')}}

@stop diff --git a/resources/views/dashboard/user/viewapp.blade.php b/resources/views/dashboard/user/viewapp.blade.php index 640478a..8c406f7 100644 --- a/resources/views/dashboard/user/viewapp.blade.php +++ b/resources/views/dashboard/user/viewapp.blade.php @@ -1,10 +1,10 @@ @extends('adminlte::page') -@section('title', 'Raspberry Network | Profile') +@section('title', config('app.name') . ' | ' . __('messages.view_app.title')) @section('content_header') -

Application Management / Viewing {{$application->user->name}}'s Application

+

{{__('messages.application_m.title')}} / {{__('messages.view_app.viewing_app', ['user' => $application->user->name])}}

@stop @@ -24,7 +24,7 @@ @if (!$canVote && Auth::user()->can('applications.vote') && $application->applicationStatus == 'STAGE_PEERAPPROVAL') @endif @@ -41,12 +41,12 @@
@csrf @method('PATCH') - +
-

Last updated @ {{$application->appointment->updated_at}}

+

{{__('messages.last_updated')}} @ {{$application->appointment->updated_at}}

- + @@ -55,19 +55,19 @@ @role('hiringManager') - + -

Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.

-

This action cannot be undone.

+

{{__('messages.view_app.deny_confirm')}}

+

{{__('messages.view_app.deny_confirm_consequence')}}

@csrf @method('PATCH') - +
- +
@@ -81,7 +81,7 @@
× - Reminder: If this form has been updated, new fields and updated questions will not show up here! + {{__('messages.view_app.form_updated_alert')}}
@@ -124,43 +124,43 @@
-
Contextual Information
+
{{__('messages.view_app.context_info')}}
-

Applicant Name: {{$application->user->name}}

+

{{__('messages.application_m.applicant_name')}} {{$application->user->name}}

@if (Auth::user()->hasRole('hiringManager')) -

Applicant IP Address: {{$application->user->originalIP}}

+

{{__('messages.view_app.appl_ip')}} {{$application->user->originalIP}}

@endif -

Applied On: {{$application->created_at}}

-

Last acted on:{{$application->updated_at}}

-

Applying for: {{$vacancy->vacancyName}}

-

Current Status: +

{{__('messages.application_m.application_date')}} {{$application->created_at}}

+

{{__('messages.last_updated')}}{{$application->updated_at}}

+

{{__('messages.view_app.appl_for')}} {{$vacancy->vacancyName}}

+

{{__('messages.view_app.currentstatus')}} @switch($application->applicationStatus) @case('STAGE_SUBMITTED') - Outstanding + {{__('messages.application_m.outstanding_sm')}} @break @case('STAGE_PEERAPPROVAL') - Pending Peer Approval + {{__('messages.user.peer_approval')}} @break @case('STAGE_INTERVIEW') - Pending Interview + {{__('messages.application_m.pending_int')}} @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 @@ -186,7 +186,7 @@

-
Decision & Moderation Tools
+
{{__('messages.view_app.decisionmod')}}
@@ -196,14 +196,14 @@
- +
@csrf @method('PATCH') - +
@@ -234,17 +234,17 @@ @csrf - + - + -

Click to choose a date

+

{{__('messages.view_app.choosedate')}}

- + -

Embedded in-house video conferencing coming soon, powered by Jitsi Meet

+

{{__('messages.view_app.coming_soon_int')}}

- + @@ -279,9 +279,9 @@

{{$application->appointment->appointmentDescription}}

-

Interview scheduled for: {{$application->appointment->appointmentDate}}

-

Status: {{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}

-

Platform: {{Str::ucfirst(Str::lower($application->appointment->appointmentLocation))}}

+

{{__('messages.view_app.scheduled_for')}} {{$application->appointment->appointmentDate}}

+

{{__('messages.reusable.status')}}: {{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}

+

{{__('messages.reusable.platform')}}: {{Str::ucfirst(Str::lower($application->appointment->appointmentLocation))}}

@@ -289,12 +289,12 @@ @endcan @can('applications.vote') - + @endcan @@ -309,14 +309,14 @@ @if ($application->applicationStatus == 'STAGE_PEERAPPROVAL' && Auth::user()->can('applications.vote')) - + -

If you weren't present during this meeting, you can view the shared meeting notepad to help you make a decision.

-

You may vote on as many applications as needed; However, you can only vote once per application.

+

{{__('messages.view_app.vote_explainer.line1')}}

+

{{__('messages.view_app.vote_explainer.line2')}}

-

Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.

+

{{__('messages.view_app.vote_explainer.line3')}}

@@ -325,17 +325,17 @@
@csrf - +
@csrf - +
@endif - +
@@ -348,7 +348,7 @@
- +
@@ -364,7 +364,7 @@ @if (!Auth::user()->is($application->user))
-

Comments ({{$comments->count()}})

+

{{__('messages.view_app.comments')}} ({{$comments->count()}})

@@ -375,11 +375,11 @@ @if ($comments->isEmpty())
- Such wow, much empty + -

There are no comments here! Comments are only visible to staff members. Be the first to share your input!

-

Commenting may help with decision-making when time comes to vote for an application.

+

{{__('messages.view_app.no_comments_exp')}}

+
@endif @@ -409,7 +409,8 @@
-

{{$comment->user->name}} ● {{Carbon\Carbon::parse($comment->created_at)->diffForHumans()}}

+ +

{{$comment->user->name}} ● {{Carbon\Carbon::parse($comment->created_at)->diffForHumans()}}

@@ -473,13 +474,13 @@
-

Commenting as {{Auth::user()->name}}

+

{{__('messages.view_app.commenting_as', ['username' => Auth::user()->name ])}}

-

0/600 max characters

+

0/600 {{__('messages.view_app.max_chars')}}

@@ -489,7 +490,7 @@