Add administration localization options

This commit is contained in:
Miguel Nogueira 2020-09-01 12:43:39 +01:00
parent bf5d4058ad
commit c58b5b56d7
14 changed files with 334 additions and 162 deletions

View File

@ -16,6 +16,21 @@
return [ return [
// ============== REUSABLE STRINGS =======================
'reusable' => [
'created_at' => 'Created at',
'updated_at' => 'Updated at',
'actions' => 'Actions',
'delete' => 'Delete',
'status' => 'Status',
'no_access' => 'Application Access Denied',
'validation_err' => 'Validation error!',
'description' => 'Description',
'join_date' => 'Join Date'
],
// ============== HOMEPAGE MESSAGES ====================== // ============== HOMEPAGE MESSAGES ======================
'home' => 'Home', 'home' => 'Home',
@ -24,6 +39,7 @@ return [
'logout' => 'Sign out', 'logout' => 'Sign out',
'register' => 'Sign up', 'register' => 'Sign up',
'dashboard' => 'Dashboard', 'dashboard' => 'Dashboard',
'back' => 'Go back',
'homepage_welcome' => 'Welcome to our team management center!', 'homepage_welcome' => 'Welcome to our team management center!',
'homepage_explainer_line1' => 'Here, you can apply for open staff member positions, view your application status, and manage your profile.', 'homepage_explainer_line1' => 'Here, you can apply for open staff member positions, view your application status, and manage your profile.',
'homepage_explainer_line2' => 'Sign up with Email to continue.', 'homepage_explainer_line2' => 'Sign up with Email to continue.',
@ -92,4 +108,165 @@ EOT,
// ===================== DASHBOARD & COMPONENT MESSAGES =========================== // ===================== DASHBOARD & COMPONENT MESSAGES ===========================
'modal_close' => 'Close',
'component_nopermission' => 'We\'re sorry, but you do not have permission to access this web page.',
'component_accessdenied' => 'Access Denied',
'component_contact' => 'Please contact your administrator if you believe this was in error.',
'welcome_back' => 'Welcome back,',
'eligible' => 'Eligible',
'ineligible' => 'Ineligible',
'eligibility_status' => 'Your current application eligibility status: :badgeStatus',
'ongoing_apps' => 'Ongoing apps',
'denied_apps' => 'Denied apps',
'users_staff' => 'Total Users + Staff',
'new_apps' => 'New applications',
'v_backlog' => 'Vote backlog',
'ranks' => 'Available ranks',
'open' => 'Open',
'closed' => 'Closed',
'upcoming' => 'Your upcoming interviews',
'soon' => 'Coming soon',
//=================== ADMINISTRATION MESSAGES (for all administration pages) ===============
'adm' => 'Administration',
'devtools' => 'Developer Tools',
'devoptions' => 'Developer Options',
'forceeval' => 'Please choose an application to force re-evaluation',
'appid' => 'Application ID',
'no_valid_app' => 'There are no valid applications',
'choose_app' => 'Choose an application',
'dispatch_event' => 'Dispatch event now',
'devtools_warn' => 'Do not use these options if you don\'t know what you\'re doing, even if you have access to this page.',
'warn' => 'Warning',
'override_votes' => 'Override Vote Evaluation',
'artisan_evaluate' => 'Artisan: Evaluate Votes Now', // Tip: Artisan is a program name, therefore not translatable
'devtools_info' => 'This panel may be also used to completely override the vote system in stalemate scenarios',
'forms' => 'Forms',
'positions' => 'Positions', // Context: Positions as in job opening
'edit_form' => 'Edit Form',
'edt' => 'Editor',
'edit' => 'Edit',
'edt_action' => 'Editing',
'txtbox' => 'Textbox',
'multiline' => 'Multi line answer',
'checkbox' => 'Checkbox',
'field_type' => 'Choose a field type',
'save_exit' => 'Save & Quit',
'new_field' => 'New field',
'vacancy_edit' => 'Vacancy Editor',
'new_vacancy' => 'New Vacancy',
'form_consistency' => 'For consistency purposes, grayed out fields can\'t be edited.',
'vacancy' => [
'add' => 'Add vacancy',
'name' => 'Vacancy Name',
'description' => 'Vacancy Description',
'details' => 'Vacancy Details',
'markdown' => 'Markdown Supported',
'no_details' => 'No details yet... Add some!',
'permission_group' => 'Permission Group',
'permission_group_tooltip' => 'The permission group from your server/network\'s permissions manager. Compatible with Luckperms and PEX.',
'discord_roleid' => 'Discord Role ID',
'discord_roleid_tooltip' => 'Discord Desktop: Go to your Account Settings > Appearance -> Advanced and toggle Developer Mode. On your server\'s roles tab, right click any role to copy it\'s ID.',
'current_form' => 'Current Form (uneditable)',
'remaining_slots' => 'Remaining slots',
'free_slots' => 'Free slots',
'free_slots_tooltip' => 'How many submissions before the vacancy stops accepting new applicants?',
'save' => 'Save Changes',
'cancel' => 'Cancel',
'close_vacancy' => 'Close Position',
'description_tooltip' => 'Add things like admission requirements, rank resposibilities and roles, and anything else you feel is necessary',
''
],
'form' => 'Form',
'form_builder' => [
'builder' => 'Form Builder',
'builder_name' => 'Application Form Management Tool',
'name_form' => 'Name your form...',
'save_form' => 'Save Form',
],
'form_preview' => [
'preview' => 'Preview',
'title' => 'Application Form Preview',
'looks' => 'This is how your form looks like to applicants',
'f_info' => 'You may edit it and add more fields later.',
''
],
'forms_p' => [
'available_forms' => 'Available forms',
'form_title' => 'Form title',
'empty_noforms' => 'Nothing to see here! Please add some forms first.',
'new_form' => 'NEW FORM'
],
'players' => [
'reg_players' => 'Registered players',
'reg_players_staff' => 'See Registered Players (Applicant Pool)',
'total_banned' => 'Total Banned Players',
'search' => 'Search players',
'f_p_search' => 'Full/partial email search',
'p_disclaimer' => 'Please note: This list only includes players registered in the team management portal. In a future release, all network players will be shown here.',
'listing' => 'Player Listing',
'reg_date' => 'Registration Date',
'ign' => 'IGN', // Context: Short for In-Game Name
'banned' => 'Banned',
'active' => 'Active',
'no_reg' => 'There are no registered players!',
'no_reg_exp' => <<<EOT
Registered players are those without a staff role in the team management application.
There may be other users registered in the platform, but they won't be displayed here.
EOT,
'see_staff' => 'See Staff Members'
],
'positions_p' => [
'application_form' => 'Application Form',
'select_form' => 'Select a form...',
'no_form_error' => <<<EOT
You cannot create a vacancy without any forms with which people would apply.
create a form first, then, create a vacancy.
A single form is allowed to have multiple vacancies, so you can attach future vacancies to the same form if you'd like.
EOT,
'new_pos' => 'NEW POSITION',
'empty_pos_warning' => 'Nothing to see here! Open some vacancies first. This will get applicants pouring in! (hopefully)',
'manage_forms' => 'MANAGE APPLICATION FORMS',
],
'settings' => [
'settings' => 'Settings',
'settings_header' => 'Notification Settings',
'settings_p' => 'Change which notifications are sent here.',
'back_btn' => 'Back to Dashboard'
],
'staff' => [
'members' => 'Staff Members',
'active_sm' => 'Active Staff Members',
'm_listing' => 'Member Listing',
'f_name' => 'Full Name',
'rank' => 'Rank',
],
// ======================== APPLICATION RENDERING MESSAGES =========================
]; ];

View File

@ -17,7 +17,7 @@
{{ $modalFooter }} {{ $modalFooter }}
@if ($includeCloseButton == true) @if ($includeCloseButton == true)
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('messages.modal_close')}}</button>
@endif @endif
</div> </div>
</div> </div>

View File

@ -16,12 +16,12 @@
<div class="col"> <div class="col">
<div class="alert alert-{{$type}}"> <div class="alert alert-{{$type}}">
<h4><i class="fas fa-user-lock"></i> Access Denied</h2> <h4><i class="fas fa-user-lock"></i> {{__('messages.component_accessdenied')}}</h4>
<p> <p>
We're sorry, but you do not have permission to access this web page. {{__('messages.component_nopermission')}}
</p> </p>
<p> <p>
Please contact your administrator if you believe this was in error. {{__('messages.component_contact')}}
</p> </p>
</div> </div>

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Developer Options') @section('title', config('app.name') . ' | ' . __('messages.devoptions'))
@section('content_header') @section('content_header')
<h4>Administration / Developer Tools</h4> <h4>{{__('messages.adm')}} / {{__('messages.devtools')}}</h4>
@stop @stop
@ -14,27 +14,27 @@
@section('content') @section('content')
<x-modal id="confirmForceEventDispatch" modal-label="confirmForceEventDispatch" modal-title="Choose an application" include-close-button="true"> <x-modal id="confirmForceEventDispatch" modal-label="confirmForceEventDispatch" modal-title="{{__('messages.choose_app')}}" include-close-button="true">
<p>Please choose an application to force re-evaluation</p> <p>{{__('messages.forceeval')}}</p>
<form method="POST" id="forceEval" action="{{route('devToolsForceVoteCount')}}"> <form method="POST" id="forceEval" action="{{route('devToolsForceVoteCount')}}">
@csrf @csrf
<select name="application" class="custom-select"> <select name="application" class="custom-select">
@if(!$applications->isEmpty()) @if(!$applications->isEmpty())
@foreach($applications as $application) @foreach($applications as $application)
<option value="{{$application->id}}">Application ID {{$application->id}} ({{$application->user->name}})</option> <option value="{{$application->id}}">{{__('messages.appid')}} {{$application->id}} ({{$application->user->name}})</option>
@endforeach @endforeach
@else @else
<option value="null" disabled>There are no valid applications</option> <option value="null" disabled>{{__('messages.no_valid_app')}}</option>
@endif @endif
</select> </select>
</form> </form>
<x-slot name="modalFooter"> <x-slot name="modalFooter">
<button type="button" class="btn btn-danger" onclick="document.getElementById('forceEval').submit()">Dispatch event now</button> <button type="button" class="btn btn-danger" onclick="document.getElementById('forceEval').submit()">{{__('messages.dispatch_event')}}</button>
</x-slot> </x-slot>
</x-modal> </x-modal>
@ -44,8 +44,8 @@
<div class="alert alert-warning"> <div class="alert alert-warning">
<i class="fa fa-exclamation-triangle"></i> <b>Warning</b> <i class="fa fa-exclamation-triangle"></i> <b>{{__('messages.warn')}}</b>
<p>Do not use these options if you don't know what you're doing, even if you have access to this page.</p> <p>{{__('messages.devtools_warn')}}</p>
</div> </div>
</div> </div>
@ -60,11 +60,11 @@
<x-slot name="cardHeader"> <x-slot name="cardHeader">
</x-slot> </x-slot>
<button type="button" class="btn btn-danger" onclick="$('#confirmForceEventDispatch').modal('show')">Override Vote Evaluation</button> <button type="button" class="btn btn-danger" onclick="$('#confirmForceEventDispatch').modal('show')">{{__('messages.override_votes')}}</button>
<button type="button" class="btn btn-warning ml-3">Artisan: Evaluate Votes Now</button> <button type="button" class="btn btn-warning ml-3">{{__('messages.artisan_evaluate')}}</button>
<x-slot name="cardFooter"> <x-slot name="cardFooter">
<p class="text-muted"> This panel may be also used to completely override the vote system in stalemate scenarios.</p> <p class="text-muted"> .</p>
</x-slot> </x-slot>
</x-card> </x-card>

View File

@ -4,7 +4,7 @@
@section('content_header') @section('content_header')
<h4>Administration / Forms / Editor</h4> <h4>{{__('messages.adm')}} / {{__('messages.forms')}} / {{__('messages.edt')}}</h4>
@stop @stop
@ -47,7 +47,7 @@
<div class="card-header"> <div class="card-header">
<h4>Editing {{ $title }}...</h4> <h4>{{__('messages.edt_action')}} {{ $title }}...</h4>
</div> </div>
@ -61,10 +61,10 @@
<select class="custom-select" id="{{ $fieldName }}-type" name="{{ $fieldName }}[]"> <select class="custom-select" id="{{ $fieldName }}-type" name="{{ $fieldName }}[]">
<option value="nil" disabled>Choose a type</option> <option value="nil" disabled>{{__('messages.field_type')}}</option>
<option value="textbox" {{ ($field['type'] == 'textbox' ? 'selected' : '') }}>Textbox</option> <option value="textbox" {{ ($field['type'] == 'textbox' ? 'selected' : '') }}>{{__('messages.txtbox')}}</option>
<option value="textarea" {{ ($field['type'] == 'textarea' ? 'selected' : '') }}>Multi line answer</option> <option value="textarea" {{ ($field['type'] == 'textarea' ? 'selected' : '') }}>{{__('messages.multiline')}}</option>
<option value="checkbox" {{ ($field['type'] == 'checkbox' ? 'selected' : '') }}>Checkbox</option> <option value="checkbox" {{ ($field['type'] == 'checkbox' ? 'selected' : '') }}>{{__('messages.checkbox')}}</option>
</select> </select>
@ -82,8 +82,8 @@
<div class="card-footer text-center"> <div class="card-footer text-center">
<button type="button" class="btn btn-warning ml-2" onclick="$('#editForm').submit()"><i class="fas fa-save"></i> Save & Quit</button> <button type="button" class="btn btn-warning ml-2" onclick="$('#editForm').submit()"><i class="fas fa-save"></i> {{__('messages.save_exit')}}</button>
<button type="button" class="btn btn-primary ml-2" id="add"><i class="fas fa-plus"></i> New field</button> <button type="button" class="btn btn-primary ml-2" id="add"><i class="fas fa-plus"></i> {{__('messages.new_field')}}</button>
</div> </div>

View File

@ -4,7 +4,7 @@
@section('content_header') @section('content_header')
<h4>Administration / Positions / Edit</h4> <h4>{{__('messages.adm')}} / {{__('messages.positions')}} / {{__('messages.edit')}}</h4>
@stop @stop
@ -24,7 +24,7 @@
<div class="col center"> <div class="col center">
<h3>Vacancy Editor</h3> <h3>{{__('messages.vacancy_edit')}}</h3>
</div> </div>
@ -49,7 +49,7 @@
<div class="card-body"> <div class="card-body">
<p class="text-muted"><i class="fas fa-question-circle"></i> For consistency purposes, grayed out fields can't be edited.</p> <p class="text-muted"><i class="fas fa-question-circle"></i> {{__('messages.form_consistency')}}</p>
<form method="POST" id="editPositionForm" action="{{ route('updatePosition', ['position' => $vacancy->id]) }}"> <form method="POST" id="editPositionForm" action="{{ route('updatePosition', ['position' => $vacancy->id]) }}">
@ -61,14 +61,14 @@
<div class="col"> <div class="col">
<label for="vacancyName">Vacancy Name</label> <label for="vacancyName">{{__('messages.vacancy.name')}}</label>
<input type="text" value="{{ $vacancy->vacancyName }}" class="form-control" disabled /> <input type="text" value="{{ $vacancy->vacancyName }}" class="form-control" disabled />
</div> </div>
<div class="col"> <div class="col">
<label for="vacancyDescription">Vacancy description</label> <label for="vacancyDescription">{{__('messages.vacancy.description')}}</label>
<input type="vacancyDescription" class="form-control" name="vacancyDescription" value="{{ $vacancy->vacancyDescription }}" /> <input type="vacancyDescription" class="form-control" name="vacancyDescription" value="{{ $vacancy->vacancyDescription }}" />
@ -81,9 +81,9 @@
<div class="col"> <div class="col">
<!-- skipping the accessor for obvious reasons --> <!-- skipping the accessor for obvious reasons -->
<label for="vacanyDetails">Vacancy details</label> <label for="vacanyDetails">{{__('messages.vacancy.details')}}</label>
<textarea name="vacancyFullDescription" class="form-control" placeholder="{{ (is_null($vacancy->vacancyFullDescription)) ? 'No details yet. Add some!' : '' }}" rows="20">{{ $vacancy->getAttributes()['vacancyFullDescription'] }}</textarea> <textarea name="vacancyFullDescription" class="form-control" placeholder="{{ (is_null($vacancy->vacancyFullDescription)) ? __('messages.vacancy.no_details') : '' }}" rows="20">{{ $vacancy->getAttributes()['vacancyFullDescription'] }}</textarea>
<span class="text-muted"><i class="fab fa-markdown"></i> Markdown supported</span> <span class="text-muted"><i class="fab fa-markdown"></i> {{__('messages.vacancy.markdown')}}</span>
</div> </div>
@ -93,14 +93,14 @@
<div class="col"> <div class="col">
<label for "permissionGroupName">Permission Group</label> <label for="permissionGroupName">{{__('messages.vacancy.permission_group')}}</label>
<input type="text" class="form-control" value="{{ $vacancy->permissionGroupName }}" id="permissionGroupName" disabled /> <input type="text" class="form-control" value="{{ $vacancy->permissionGroupName }}" id="permissionGroupName" disabled />
</div> </div>
<div class="col"> <div class="col">
<label for "discordRoleID">Discord Role ID</label> <label for="discordRoleID">{{__('messages.vacancy.discord_roleid')}}</label>
<input type="text" class="form-control" value="{{ $vacancy->discordRoleID }}" id="discordRoleID" disabled /> <input type="text" class="form-control" value="{{ $vacancy->discordRoleID }}" id="discordRoleID" disabled />
@ -111,10 +111,10 @@
<div class="col"> <div class="col">
<label for "currentForm">Current Form (uneditable)</label> <label for="currentForm">{{__('messages.vacancy.current_form')}}</label>
<input type="text" class="form-control" value="{{ $vacancy->forms->formName }}" id="currentForm" disabled /> <input type="text" class="form-control" value="{{ $vacancy->forms->formName }}" id="currentForm" disabled />
<label for "remainingSlots">Remaining slots</label> <label for="remainingSlots">{{__('messages.vacancy.remaining_slots')}}</label>
<input type="text" class="form-control" value="{{ $vacancy->vacancyCount }}" id="remainingSlots" name="vacancyCount" /> <input type="text" class="form-control" value="{{ $vacancy->vacancyCount }}" id="remainingSlots" name="vacancyCount" />
@ -128,15 +128,15 @@
<div class="card-footer"> <div class="card-footer">
<button type="button" class="btn btn-warning" onclick="$('#editPositionForm').submit()"><i class="fas fa-edit"></i> Save Changes</button> <button type="button" class="btn btn-warning" onclick="$('#editPositionForm').submit()"><i class="fas fa-edit"></i> {{__('messages.vacancy.save')}}</button>
<button type="button" class="btn btn-danger" onclick="window.location.href='{{ route('showPositions') }}'"><i class="fas fa-times"></i> Cancel</button> <button type="button" class="btn btn-danger" onclick="window.location.href='{{ route('showPositions') }}'"><i class="fas fa-times"></i> {{__('messages.vacancy.cancel')}}</button>
@if($vacancy->vacancyStatus == 'OPEN') @if($vacancy->vacancyStatus == 'OPEN')
<form method="POST" action="{{ route('updatePositionAvailability', ['vacancy' => $vacancy->id, 'status' => 'close']) }}" style="display: inline"> <form method="POST" action="{{ route('updatePositionAvailability', ['vacancy' => $vacancy->id, 'status' => 'close']) }}" style="display: inline">
@method('PATCH') @method('PATCH')
@csrf @csrf
<button type="submit" class="ml-4 btn btn-danger"><i class="fas fa-ban"></i> Close Position</button> <button type="submit" class="ml-4 btn btn-danger"><i class="fas fa-ban"></i> {{__('messages.vacancy.close_vacancy')}}</button>
</form> </form>
@endif @endif

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Application Form Management Tool') @section('title', config('app.name') . '| ' . __('messages.form_builder.builder_name'))
@section('content_header') @section('content_header')
<h4>Administration / Form Builder</h4> <h4>{{__('messages.adm')}} / {{__('messages.form_builder.builder')}}</h4>
@stop @stop
@ -45,9 +45,9 @@
@csrf @csrf
<fieldset id="buildyourform"> <fieldset id="buildyourform">
<legend class="text-center">Form Builder</legend> <legend class="text-center">{{__('messages.form_builder.builder')}}</legend>
<input type="text" name="formName" class="form-control mb-5" placeholder="Name your form..." required> <input type="text" name="formName" class="form-control mb-5" placeholder="{{__('messages.form_builder.name_form')}}" required>
</fieldset> </fieldset>
@ -57,7 +57,7 @@
<div class="card-footer text-center"> <div class="card-footer text-center">
<button onclick="save()" type="button" class="btn btn-success">Save Form</button> <button onclick="save()" type="button" class="btn btn-success">{{__('messages.form_builder.save_form')}}</button>
<input type="button" value="New Field" class="add btn btn-info ml-3" id="add" /> <input type="button" value="New Field" class="add btn btn-info ml-3" id="add" />

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Application Form Preview') @section('title', config('app.name') . ' | ' . __('messages.form_preview.title'))
@section('content_header') @section('content_header')
<h4>Administration / Form Builder / Preview</h4> <h4>{{__('messages.adm')}} / {{__('messages.form_builder.builder')}} / {{__('messages.form_preview.preview')}}</h4>
@stop @stop
@ -33,10 +33,10 @@
<div class="col"> <div class="col">
<div class="alert alert-success"> <div class="alert alert-success">
<h5><i class="fas fa-eye"></i> This is how your form looks like to applicants</h3> <h5><i class="fas fa-eye"></i> {{__('messages.form_preview.looks')}}</h5>
<p> <p>
You may edit it and add more fields later. {{__('messages.form_preview.f_info')}}
</p> </p>
</div> </div>
@ -52,7 +52,7 @@
<div class="card-header"> <div class="card-header">
<h3>{{ $title }}'s form</h2> <h3>{{ $title }} - {{__('messages.form')}}</h2>
</div> </div>
@ -66,8 +66,8 @@
<div class="card-footer text-center"> <div class="card-footer text-center">
<button type="button" class="btn btn-success ml-2" onclick="window.location.href='{{ route('showForms') }}'"><i class="fas fa-chevron-left"></i> Go back</button> <button type="button" class="btn btn-success ml-2" onclick="window.location.href='{{ route('showForms') }}'"><i class="fas fa-chevron-left"></i> {{__('messages.back')}}</button>
<button type="button" class="btn btn-warning ml-2" onclick="window.location.href='{{ route('editForm', ['form' => $formID]) }}'"><i class="far fa-edit"></i> Edit</button> <button type="button" class="btn btn-warning ml-2" onclick="window.location.href='{{ route('editForm', ['form' => $formID]) }}'"><i class="far fa-edit"></i> {{__('messages.edit')}}</button>
</div> </div>
</div> </div>

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Application Form Management Tool') @section('title', config('app.name') . ' | ' . __('messages.forms_p.available_forms'))
@section('content_header') @section('content_header')
<h4>Administration / Forms</h4> <h4>{{__('messages.adm')}} / {{__('messages.forms')}}</h4>
@stop @stop
@ -23,7 +23,7 @@
<div class="card bg-gray-dark"> <div class="card bg-gray-dark">
<div class="card-header bg-indigo"> <div class="card-header bg-indigo">
<div class="card-title"><h4 class="text-bold">Available Forms</h4></div> <div class="card-title"><h4 class="text-bold">{{__('messages.forms_p.available_forms')}}</h4></div>
</div> </div>
<div class="card-body"> <div class="card-body">
@ -36,10 +36,10 @@
<tr> <tr>
<th>#</th> <th>#</th>
<th>Form Title</th> <th>{{__('messages.forms_p.form_title')}}</th>
<th>Created On</th> <th>{{__('messages.reusable.created_at')}}</th>
<th>Updated On</th> <th>{{__('messages.reusable.updated_at')}}</th>
<th>Actions</th> <th>{{__('messages.reusable.actions')}}</th>
</tr> </tr>
</thead> </thead>
@ -59,9 +59,9 @@
@method('DELETE') @method('DELETE')
@csrf @csrf
<button type="submit" class="btn btn-sm btn-danger mr-2"><i class="fa fa-trash"></i> Delete</button> <button type="submit" class="btn btn-sm btn-danger mr-2"><i class="fa fa-trash"></i> {{__('messages.reusable.delete')}}</button>
</form> </form>
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{ route('previewForm', ['form' => $form->id]) }}'"><i class="fa fa-eye"></i> Preview</button> <button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{ route('previewForm', ['form' => $form->id]) }}'"><i class="fa fa-eye"></i> {{__('messages.form_preview.preview')}}</button>
</td> </td>
</tr> </tr>
@ -75,7 +75,7 @@
<div class="alert alert-warning"> <div class="alert alert-warning">
Nothing to see here! Please add some forms first. {{__('messages.forms_p.empty_noforms')}}
</div> </div>
@ -85,7 +85,7 @@
<div class="card-footer"> <div class="card-footer">
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showFormBuilder')}}'">NEW FORM</button> <button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showFormBuilder')}}'">{{__('messages.forms_p.new_form')}}</button>
</div> </div>

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Registered Players') @section('title', config('app.name') . ' | ' . __('messages.players.reg_players'))
@section('content_header') @section('content_header')
<h4>Administration / Registered Players</h4> <h4>{{__('messages.adm')}} / {{__('messages.players.reg_players')}}</h4>
@stop @stop
@ -23,7 +23,7 @@
<div class="inner"> <div class="inner">
<h3>{{$users->count()}}</h3> <h3>{{$users->count()}}</h3>
<p>Registered Players</p> <p>{{__('messages.players.reg_players')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fa fa-users"></i> <i class="fa fa-users"></i>
@ -37,7 +37,7 @@
<div class="inner"> <div class="inner">
<h3>{{$bannedUserCount}}</h3> <h3>{{$bannedUserCount}}</h3>
<p>Total Banned Players</p> <p>{{__('messages.players.total_banned')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fa fa-ban"></i> <i class="fa fa-ban"></i>
@ -55,7 +55,7 @@ I
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<div class="card-title"><h4><i class="fas fa-search"></i>Search Players</h4></div> <div class="card-title"><h4><i class="fas fa-search"></i>{{__('messages.players.search')}}</h4></div>
</div> </div>
<div class="card-body"> <div class="card-body">
@ -63,7 +63,7 @@ I
<form name="search" method="POST" action="{{route('searchRegisteredPLayerList')}}"> <form name="search" method="POST" action="{{route('searchRegisteredPLayerList')}}">
@csrf @csrf
<div class="input-group"> <div class="input-group">
<input type="text" name="searchTerm" class="form-control" placeholder="Full/partial email search"> <input type="text" name="searchTerm" class="form-control" placeholder="{{__('messages.players.f_p_search')}}">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-default" type="submit"> <button class="btn btn-default" type="submit">
<i class="fa fa-search"></i> <i class="fa fa-search"></i>
@ -87,7 +87,7 @@ I
<div class="col"> <div class="col">
<div class="alert alert-warning"> <div class="alert alert-warning">
<p>Please note: This list only includes players registered in the team management portal. In a future release, all network players will be shown here.</p> <p>{{__('messages.players.p_disclaimer')}}</p>
</div> </div>
</div> </div>
@ -103,7 +103,7 @@ I
<div class="card-header bg-indigo"> <div class="card-header bg-indigo">
<div class="card-title"><h4 class="text-bold">Player Listing</h4></div> <div class="card-title"><h4 class="text-bold">{{__('messages.players.listing')}}</h4></div>
</div> </div>
@ -114,12 +114,12 @@ I
<thead> <thead>
<tr> <tr>
<th>#</th> <th>#</th>
<th>IGN</th> <th>{{__('messages.players.ign')}}</th>
<th>UUID</th> <th>UUID</th>
<th>Email</th> <th>{{__('messages.contactlabel_email')}}</th>
<th>Status</th> <th>{{__('messages.reusable.status')}}</th>
<th>Registration Date</th> <th>{{__('messages.players.reg_date')}}</th>
<th>Actions</th> <th>{{__('messages.reusable.actions')}}</th>
</tr> </tr>
</thead> </thead>
@ -134,9 +134,9 @@ I
<td>{{ $user->email }}</td> <td>{{ $user->email }}</td>
<td> <td>
@if ($user->isBanned()) @if ($user->isBanned())
<span class="badge badge-danger"><i class="fa fa-ban"></i> Banned</span> <span class="badge badge-danger"><i class="fa fa-ban"></i> {{__('messages.players.banned')}}</span>
@else @else
<span class="badge badge-success">Active</span> <span class="badge badge-success">{{__('messages.players.active')}}</span>
@endif @endif
</td> </td>
<td>{{$user->created_at}}</td> <td>{{$user->created_at}}</td>
@ -153,10 +153,9 @@ I
@else @else
<div class="alert alert-secondary"> <div class="alert alert-secondary">
<i class="fas fa-question"></i><span> There are no registered players!</span> <i class="fas fa-question"></i><span> {{__('messages.players.no_reg')}}</span>
<p> <p>
Registered players are those without a staff role in the team management application. {{__('messages.players.no_reg_exp')}}
There may be other users registered in the platform, but they won't be displayed here.
</p> </p>
</div> </div>
@ -165,7 +164,7 @@ I
<div class="card-footer"> <div class="card-footer">
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("staffMemberList")}}'">See Staff Members</button> <button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("staffMemberList")}}'">{{__('messages.players.see_staff')}}</button>
</div> </div>

View File

@ -1,13 +1,13 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Open Positions') @section('title', config('app.name') . ' | ' . __('messages.open_positions'))
@section('content_header') @section('content_header')
@if (Auth::user()->hasAnyRole('admin', 'hiringManager')) @if (Auth::user()->hasAnyRole('admin', 'hiringManager'))
<h4>Administration / Open Positions</h4> <h4>{{__('messages.adm')}} / {{__('messages.open_positions')}}</h4>
@else @else
<h4>Application Access Denied</h4> <h4>{{__('messages.reusable.no_access')}}</h4>
@endif @endif
@stop @stop
@ -29,7 +29,7 @@
@if($errors->any()) @if($errors->any())
@foreach ($errors->all() as $error) @foreach ($errors->all() as $error)
<script>toastr.error('{{$error}}', 'Validation error!')</script> <script>toastr.error('{{$error}}', '{{__('messages.reusable.validation_err')}}')</script>
@endforeach @endforeach
@endif @endif
@ -43,7 +43,7 @@
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title" id="modalFormLabel">New Vacancy</h5> <h5 class="modal-title" id="modalFormLabel">{{__('messages.new_vacancy')}}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
@ -54,35 +54,35 @@
<form id="savePositionForm" action="{{route('savePosition')}}" method="POST"> <form id="savePositionForm" action="{{route('savePosition')}}" method="POST">
@csrf @csrf
<label for="vacancyName">Vacancy name (e.g. Helper)</label> <label for="vacancyName">{{__('messages.vacancy.name')}}</label>
<input type="text" id="vacancyName" name="vacancyName" class="form-control"> <input type="text" id="vacancyName" name="vacancyName" class="form-control">
<label for="vacancyDescription">Vacancy Description</label> <label for="vacancyDescription">{{__('messages.vacancy.description')}}</label>
<input type="text" id="vacancyDescription" name="vacancyDescription" class="form-control"> <input type="text" id="vacancyDescription" name="vacancyDescription" class="form-control">
<label for="vacancyFullDescription">Vacancy Details</label> <label for="vacancyFullDescription">{{__('messages.vacancy.description')}}</label>
<textarea name="vacancyFullDescription" class="form-control" rel="txtTooltip" title="Add things like admission requirements, rank resposibilities and roles, and anything else you feel is necessary" data-toggle="tooltip" data-placement="bottom"></textarea> <textarea name="vacancyFullDescription" class="form-control" rel="txtTooltip" title="{{__('messages.vacancy.description_tooltip')}}" data-toggle="tooltip" data-placement="bottom"></textarea>
<span class="right text-muted"><i class="fab fa-markdown"></i> Markdown supported</span> <span class="right text-muted"><i class="fab fa-markdown"></i> {{__('messages.vacancy.markdown')}}</span>
<div class="row mt-3"> <div class="row mt-3">
<div class="col"> <div class="col">
<label for="pgroup">Permission Group Name</label> <label for="pgroup">{{__('messages.vacancy.permission_group')}}</label>
<input rel="txtTooltip" title="The permission group from your server/network's permissions manager. Compatible with Luckperms and PEX." data-toggle="tooltip" data-placement="bottom" type="text" id="pgroup" name="permissionGroup" class="form-control"> <input rel="txtTooltip" title="{{__('messages.vacancy.permission_group_tooltip')}}" data-toggle="tooltip" data-placement="bottom" type="text" id="pgroup" name="permissionGroup" class="form-control">
</div> </div>
<div class="col"> <div class="col">
<label for="discordrole">Discord Role ID (*)</label> <label for="discordrole">{{__('messages.vacancy.discord_roleid')}} (*)</label>
<input rel="txtTooltip" title="Discord Desktop: Go to your Account Settings > Appearance -> Advanced and toggle Developer Mode. On your server's roles tab, right click any role to copy it's ID." data-toggle="tooltip" data-placement="bottom" type="text" id="discordrole" name="discordRole" class="form-control"> <input rel="txtTooltip" title="{{__('messages.vacancy.discord_roleid_tooltip')}}" data-toggle="tooltip" data-placement="bottom" type="text" id="discordrole" name="discordRole" class="form-control">
</div> </div>
</div> </div>
<div class="form-group mt-4"> <div class="form-group mt-4">
<label for="associatedForm">Application form</label> <label for="associatedForm">{{__('messages.positions_p.application_form')}}</label>
<select class="custom-select" name="vacancyFormID" id="associatedForm"> <select class="custom-select" name="vacancyFormID" id="associatedForm">
<option disabled>Select a form...</option> <option disabled>{{__('messages.positions_p.select_form')}}</option>
@foreach($forms as $form) @foreach($forms as $form)
<option value="{{$form->id}}">{{$form->formName}}</option> <option value="{{$form->id}}">{{$form->formName}}</option>
@ -91,8 +91,8 @@
</select> </select>
<label for="vacancyCount">Free slots</label> <label for="vacancyCount">{{__('messages.vacancy.free_slots')}}</label>
<input rel="txtTooltip" title="How many submissions before the vacancy stops accepting new applicants?" data-toggle="tooltip" data-placement="bottom" type="text" id="vacancyCount" name="vacancyCount" class="form-control"> <input rel="txtTooltip" title="{{__('messages.vacancy.free_slots_tooltip')}}" data-toggle="tooltip" data-placement="bottom" type="text" id="vacancyCount" name="vacancyCount" class="form-control">
</div> </div>
@ -103,9 +103,7 @@
<div class="alert alert-danger"> <div class="alert alert-danger">
<p> <p>
You cannot create a vacancy without any forms with which people would apply. {{__('messages.positions_p.no_form_error')}}
Please create a form first, then, create a vacancy.
A single form is allowed to have multiple vacancies, so you can attach future vacancies to the same form if you'd like.
</p> </p>
</div> </div>
@ -115,10 +113,10 @@
<div class="modal-footer"> <div class="modal-footer">
@if(!$forms->isEmpty()) @if(!$forms->isEmpty())
<button type="button" class="btn btn-primary" onclick="document.getElementById('savePositionForm').submit()">Add Vacancy</button> <button type="button" class="btn btn-primary" onclick="document.getElementById('savePositionForm').submit()">{{__('messages.vacancy.add')}}</button>
@endif @endif
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{__('messages.modal_close')}}</button>
</div> </div>
</div> </div>
</div> </div>
@ -132,7 +130,7 @@
<div class="card-body"> <div class="card-body">
<button type="button" class="btn btn-primary" onclick="$('#newVacancyForm').modal('show')">NEW POSITION</button> <button type="button" class="btn btn-primary" onclick="$('#newVacancyForm').modal('show')">{{__('messages.positions_p.new_pos')}}</button>
</div> </div>
@ -149,7 +147,7 @@
<div class="card bg-gray-dark"> <div class="card bg-gray-dark">
<div class="card-header bg-indigo"> <div class="card-header bg-indigo">
<div class="card-title"><h4 class="text-bold">Open Vacancies</h4></div> <div class="card-title"><h4 class="text-bold">{{__('messages.open_positions')}}</h4></div>
</div> </div>
<div class="card-body"> <div class="card-body">
@ -161,14 +159,14 @@
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>{{__('messages.contactlabel_name')}}</th>
<th>Description</th> <th>{{__('messages.reusable.description')}}</th>
<th>Discord Role ID</th> <th>{{__('messages.vacancy.discord_roleid')}}</th>
<th>Perm. Group Name</th> <th>{{__('messages.vacancy.permission_groupr')}}</th>
<th>Open Slots</th> <th>{{__('messages.vacancy.free_slots')}}</th>
<th>Status</th> <th>{{__('messages.reusable.status')}}</th>
<th>Created On</th> <th>{{__('messages.reusable.created_at')}}</th>
<th>Actions</th> <th>{{__('messages.reusable.actions')}}</th>
</tr> </tr>
</thead> </thead>
@ -184,9 +182,9 @@
<td><span class="badge badge-success">{{$vacancy->permissionGroupName}}</span></td> <td><span class="badge badge-success">{{$vacancy->permissionGroupName}}</span></td>
<td>{{$vacancy->vacancyCount}}</td> <td>{{$vacancy->vacancyCount}}</td>
@if($vacancy->vacancyStatus == 'OPEN') @if($vacancy->vacancyStatus == 'OPEN')
<td><span class="badge badge-success">OPEN</span></td> <td><span class="badge badge-success">{{__('messages.open')}}</span></td>
@else @else
<td><span class="badge badge-danger">CLOSED</span></td> <td><span class="badge badge-danger">{{__('messages.closed')}}</span></td>
@endif @endif
<td>{{$vacancy->created_at}}</td> <td>{{$vacancy->created_at}}</td>
<td> <td>
@ -223,7 +221,7 @@
@else @else
<div class="alert alert-warning"> <div class="alert alert-warning">
<p>Nothing to see here! Open some vacancies first. This will get applicants pouring in! (hopefully)</p> <p>{{__('messages.positions_p.empty_pos_warning')}}</p>
</div> </div>
@endif @endif
@ -231,7 +229,7 @@
<div class="card-footer"> <div class="card-footer">
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showForms')}}'">MANAGE APPLICATION FORMS</button> <button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route('showForms')}}'">{{__('messages.positions_p.manage_forms')}}</button>
</div> </div>

View File

@ -1,13 +1,13 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Open Positions') @section('title', config('app.name') . ' | ' . __('messages.settings.settings'))
@section('content_header') @section('content_header')
@if (Auth::user()->hasAnyRole('admin')) @if (Auth::user()->hasAnyRole('admin'))
<h4>Administration / Settings</h4> <h4>{{__('messages.adm')}} / {{__('messages.settings.settings')}}</h4>
@else @else
<h4>Application Access Denied</h4> <h4>{{__('messages.reusable.no_access')}}</h4>
@endif @endif
@stop @stop
@ -43,8 +43,8 @@
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h3>Notification Settings</h3> <h3>{{__('messages.settings.settings_header')}}</h3>
<p>Change which notifications are sent here.</p> <p>{{__('messages.settings.settings_p')}}</p>
</div> </div>
<div class="card-body"> <div class="card-body">
@ -63,8 +63,8 @@
</div> </div>
<div class="card-footer"> <div class="card-footer">
<button type="button" class="btn btn-success" onclick="$('#settings').submit()"><i class="fa fa-save"></i> Save changes</button> <button type="button" class="btn btn-success" onclick="$('#settings').submit()"><i class="fa fa-save"></i> {{__('messages.vacancy.save')}}</button>
<button type="button" class="btn btn-warning" onclick="window.location.href='{{route('dashboard')}}'"><i class="fa fa-arrow-circle-o-left"></i> Back to Dashboard</button> <button type="button" class="btn btn-warning" onclick="window.location.href='{{route('dashboard')}}'"><i class="fa fa-arrow-circle-o-left"></i> {{__('messages.settings.back_btn')}}</button>
</div> </div>
</div> </div>

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network | Staff Members') @section('title', config('app.name') . ' | ' . __('messages.staff.members'))
@section('content_header') @section('content_header')
<h4>Administration / Staff Members</h4> <h4>{{__('messages.adm')}} / {{__('messages.staff.members')}}</h4>
@stop @stop
@ -17,7 +17,7 @@
<div class="inner"> <div class="inner">
<h3>{{$users->count()}}</h3> <h3>{{$users->count()}}</h3>
<p>Active Staff Members</p> <p>{{__('messages.staff.active_sm')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fa fa-user-tie"></i> <i class="fa fa-user-tie"></i>
@ -35,7 +35,7 @@
<div class="card-header bg-indigo"> <div class="card-header bg-indigo">
<div class="card-title"><h4 class="text-bold">Member Listing</h4></div> <div class="card-title"><h4 class="text-bold">{{__('messages.staff.m_listing')}}</h4></div>
</div> </div>
@ -46,13 +46,13 @@
<thead> <thead>
<tr> <tr>
<th>#</th> <th>#</th>
<th>Full Name</th> <th>{{__('messages.staff.f_name')}}</th>
<th>UUID</th> <th>UUID</th>
<th>Rank</th> <th>{{__('messages.staff.rank')}}</th>
<th>Email</th> <th>{{__('messages.contactlabel_email')}}</th>
<th>Status</th> <th>{{__('messages.reusable.status')}}</th>
<th>Join Date</th> <th>{{__('messages.reusable.join_date')}}</th>
<th>Actions</th> <th>{{__('messages.reusable.actions')}}</th>
</tr> </tr>
</thead> </thead>
@ -70,7 +70,7 @@
@endforeach @endforeach
</td> </td>
<td>{{ $user->email }}</td> <td>{{ $user->email }}</td>
<td><span class="badge badge-success">Active</span></td> <td><span class="badge badge-success">{{__('messages.players.active')}}</span></td>
<td>{{$user->created_at}}</td> <td>{{$user->created_at}}</td>
<td> <td>
<button type="button" class="btn btn-sm btn-success mr-2" onclick="window.location.href='{{route('showSingleProfile', ['user' => $user->id])}}'"><i class="fa fa-eye"></i></button> <button type="button" class="btn btn-sm btn-success mr-2" onclick="window.location.href='{{route('showSingleProfile', ['user' => $user->id])}}'"><i class="fa fa-eye"></i></button>
@ -87,7 +87,7 @@
<div class="card-footer"> <div class="card-footer">
<button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("registeredPlayerList")}}'">See Registered Players (Applicant Pool)</button> <button type="button" class="btn btn-outline-primary" onclick="window.location.href='{{route("registeredPlayerList")}}'">{{__('messages.players.reg_players_staff')}}</button>
</div> </div>

View File

@ -1,9 +1,9 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', 'Raspberry Network Team Management') @section('title', config('app.name'))
@section('content_header') @section('content_header')
<h1>RaspberryNet Teams / Dashboard (<i>At a glance</i>)</h1> <h1>{{config('app.name')}} / {{__('messages.dashboard')}}</h1>
@stop @stop
@section('js') @section('js')
@ -18,15 +18,15 @@
@foreach($vacancies as $vacancy) @foreach($vacancies as $vacancy)
<x-modal id="{{ $vacancy->vacancySlug . '-details' }}" modal-label="{{ $vacancy->vacancySlug . '-details-label' }}" modal-title="Vacancy details" include-close-button="true"> <x-modal id="{{ $vacancy->vacancySlug . '-details' }}" modal-label="{{ $vacancy->vacancySlug . '-details-label' }}" modal-title="{{__('messages.details_m_title')}}" include-close-button="true">
@if (is_null($vacancy->vacancyFullDescription)) @if (is_null($vacancy->vacancyFullDescription))
<div class="alert alert-warning"> <div class="alert alert-warning">
<h3><i class="fas fa-question-circle"></i> There don't seem to be any details</h3> <h3><i class="fas fa-question-circle"></i> {{__('messages.opening_nodetails')}}</h3>
<p> <p>
This vacancy does not have any details yet. {{__('messages.opening_nodetails_exp')}}
</p> </p>
</div> </div>
@ -34,7 +34,7 @@
{!! $vacancy->vacancyFullDescription !!} {!! $vacancy->vacancyFullDescription !!}
<p class="text-sm text-muted"> <p class="text-sm text-muted">
Last updated @ {{ $vacancy->updated_at }} {{__('messages.last_updated')}} @ {{ $vacancy->updated_at }}
</p> </p>
@endif @endif
@ -52,7 +52,7 @@
<div class="text-center"> <div class="text-center">
<h4>Welcome back, {{ Auth::user()->name }}!</h4> <h4>{{__('messages.welcome_back')}} {{ Auth::user()->name }}!</h4>
</div> </div>
@ -66,9 +66,7 @@
<div class="col"> <div class="col">
<div class="alert alert-info"> <div class="alert alert-info">
<p>{{__('messages.eligibility_status', ['badgeStatus' => '<span class="badge badge-warning"> ' . ($isEligibleForApplication) ? __('messages.eligible') : __('messages.ineligible') .'</span>'])}}</p>
<p>Your current application eligibility status: <span class="badge badge-warning">{{($isEligibleForApplication) ? 'Eligibile' : 'Ineligible' }}</span></p>
</div> </div>
</div> </div>
@ -84,12 +82,12 @@
<div class="inner"> <div class="inner">
<h3>{{ $openApplications ?? 0 }}</h3> <h3>{{ $openApplications ?? 0 }}</h3>
<p>Ongoing Apps</p> <p>{{__('messages.ongoing_apps')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fas fa-sync"></i> <i class="fas fa-sync"></i>
</div> </div>
<a href="{{ route('showUserApps') }}" class="small-box-footer">Open <i class="fas fa-arrow-circle-right"></i></a> <a href="{{ route('showUserApps') }}" class="small-box-footer">{{__('messages.open')}} <i class="fas fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
@ -99,12 +97,12 @@
<div class="inner"> <div class="inner">
<h3>{{ $deniedApplications ?? 0 }}</h3> <h3>{{ $deniedApplications ?? 0 }}</h3>
<p>Denied Apps</p> <p>{{__('messages.denied_apps')}}/p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fas fa-times"></i> <i class="fas fa-times"></i>
</div> </div>
<a href="{{ route('showUserApps') }}" class="small-box-footer">Open <i class="fas fa-arrow-circle-right"></i></a> <a href="{{ route('showUserApps') }}" class="small-box-footer">{{__('messages.open')}} <i class="fas fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
</div> </div>
@ -118,14 +116,14 @@
<div class="inner"> <div class="inner">
<h3>{{ $totalUserCount }}</h3> <h3>{{ $totalUserCount }}</h3>
<p>Total Users + Staff</p> <p>{{__('messages.users_staff')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fas fa-users"></i> <i class="fas fa-users"></i>
</div> </div>
@if (Auth::user()->hasRole('admin')) @if (Auth::user()->hasRole('admin'))
<a href="{{ route('registeredPlayerList') }}" class="small-box-footer">Open <i class="fas fa-arrow-circle-right"></i></a> <a href="{{ route('registeredPlayerList') }}" class="small-box-footer">{{__('messages.open')}} <i class="fas fa-arrow-circle-right"></i></a>
@endif @endif
</div> </div>
@ -137,7 +135,7 @@
<div class="inner"> <div class="inner">
<h3>{{ $totalDenied }}</h3> <h3>{{ $totalDenied }}</h3>
<p>Denied applications</p> <p>{{__('messages.denied_apps')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fas fa-user-slash"></i> <i class="fas fa-user-slash"></i>
@ -151,12 +149,12 @@
<div class="inner"> <div class="inner">
<h3>{{ $totalNewApplications }}</h3> <h3>{{ $totalNewApplications }}</h3>
<p>New applications</p> <p>{{__('messages.new_apps')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fas fa-plus"></i> <i class="fas fa-plus"></i>
</div> </div>
<a href="{{ route('staffPendingApps') }}" class="small-box-footer">Open <i class="fas fa-arrow-circle-right"></i></a> <a href="{{ route('staffPendingApps') }}" class="small-box-footer">{{__('messages.open')}} <i class="fas fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
@ -166,12 +164,12 @@
<div class="inner"> <div class="inner">
<h3>{{ $totalPeerReview }}</h3> <h3>{{ $totalPeerReview }}</h3>
<p>Vote backlog</p> <p>{{__('messages.v_backlog')}}</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="fas fa-vote-yea"></i> <i class="fas fa-vote-yea"></i>
</div> </div>
<a href="{{ route('peerReview') }}" class="small-box-footer">Open <i class="fas fa-arrow-circle-right"></i></a> <a href="{{ route('peerReview') }}" class="small-box-footer">{{__('messages.open')}} <i class="fas fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
@ -185,7 +183,7 @@
<div class="col text-center"> <div class="col text-center">
<h4>Available ranks</h3> <h4>{{__('messages.ranks')}}</h4>
<hr /> <hr />
</div> </div>
@ -221,8 +219,8 @@
<div class="card-footer text-center"> <div class="card-footer text-center">
<button type="button" class="btn btn-primary btn-sm" onclick="window.location.href='{{ route('renderApplicationForm', ['vacancySlug' => $vacancy->vacancySlug]) }}'">Apply</button> <button type="button" class="btn btn-primary btn-sm" onclick="window.location.href='{{ route('renderApplicationForm', ['vacancySlug' => $vacancy->vacancySlug]) }}'">{{__('messages.txt_apply')}}</button>
<button type="button" class="btn btn-warning btn-sm" onclick="$('#{{ $vacancy->vacancySlug }}-details').modal('show')">Learn More</button> <button type="button" class="btn btn-warning btn-sm" onclick="$('#{{ $vacancy->vacancySlug }}-details').modal('show')">{{__('messages.txt_learn_more')}}</button>
</div> </div>
</div> </div>
@ -245,7 +243,7 @@
<div class="card-header"> <div class="card-header">
<h4> <h4>
<i class="fa fa-calendar"></i>&nbsp;&nbsp;Your upcoming interviews (<i>coming soon</i>) <i class="fa fa-calendar"></i>&nbsp;&nbsp;{{__('messages.upcoming')}} (<i>{{__('messages.soon')}}</i>)
</h4> </h4>
</div> </div>