refactor: refactored strings on primary user views

This commit is contained in:
Miguel Nogueira 2022-03-19 18:39:59 +00:00 committed by Miguel Nogueira
parent 678ac68c57
commit e0844a7a2b
3 changed files with 93 additions and 94 deletions

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', config('app.name') . ' | ' . __('messages.application_m.int_applications')) @section('title', config('app.name') . ' | ' . __('Applications'))
@section('content_header') @section('content_header')
<h4>{{__('messages.reusable.my_acc')}} / {{__('messages.application_m.int_applications')}}</h4> <h4>{{__('My account')}} / {{__('Applications')}}</h4>
@stop @stop
@ -20,10 +20,10 @@
<div class="col"> <div class="col">
<div class="callout callout-warning"> <div class="callout callout-warning">
<h5>{{__('messages.user.app_process.title')}}</h5> <h5>{{__('Application Process')}}</h5>
<p>{{__('messages.user.app_process.line1')}}</p> <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.line2')}}</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>
</div> </div>
</div> </div>
@ -35,7 +35,7 @@
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h3 class="card-title">{{__('messages.user.my_ongoingapps')}}</h3> <h3 class="card-title">{{__('My Ongoing Applications')}}</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 -->
@ -46,11 +46,11 @@
<thead> <thead>
<tr> <tr>
<th style="width: 10px">#</th> <th style="width: 10px">#</th>
<th>{{__('messages.application_m.applicant')}}</th> <th>{{__('Applicant')}}</th>
<th>{{__('messages.application_m.application_date')}}</th> <th>{{__('Application Date')}}</th>
<th>{{__('messages.last_updated')}}</th> <th>{{__('Last updated')}}</th>
<th style="width: 40px">{{__('messages.reusable.status')}}</th> <th style="width: 40px">{{__('Status')}}</th>
<th style="width: 40px">{{__('messages.reusable.actions')}}</th> <th style="width: 40px">{{__('Actions')}}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -66,36 +66,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> {{__('messages.user.submitted')}}</span> <span class="badge badge-success"><i class="fas fa-paper-plane"></i> {{__('Submitted')}}</span>
@break @break
@case('STAGE_PEERAPPROVAL') @case('STAGE_PEERAPPROVAL')
<span class="badge badge-warning"><i class="fas fa-users"></i> {{__('messages.user.peer_approval')}}</span> <span class="badge badge-warning"><i class="fas fa-users"></i> {{__('Peer Approval')}}</span>
@break @break
@case('STAGE_INTERVIEW') @case('STAGE_INTERVIEW')
<span class="badge badge-info"><i class="fa fa-microphone-alt"></i> {{__('messages.application_m.interview_p')}}</span> <span class="badge badge-info"><i class="fa fa-microphone-alt"></i> {{__('Interview')}}</span>
@break @break
@case('STAGE_INTERVIEW_SCHEDULED') @case('STAGE_INTERVIEW_SCHEDULED')
<span class="badge badge-warning"><i class="fa fa-clock"></i> {{__('messages.application_m.interview_s')}}</span> <span class="badge badge-warning"><i class="fa fa-clock"></i> {{__('Interview Scheduled')}}</span>
@break @break
@case('APPROVED') @case('APPROVED')
<span class="badge badge-success"><i class="fa fa-check-double"></i> {{__('messages.application_m.approved')}}</span> <span class="badge badge-success"><i class="fa fa-check-double"></i> {{__('Approved')}}</span>
@break @break
@case('DENIED') @case('DENIED')
<span class="badge badge-danger"><i class="fa fa-ban"></i> <b>{{__('messages.application_m.denied')}}</b></span> <span class="badge badge-danger"><i class="fa fa-ban"></i> <b>{{__('Denied')}}</b></span>
@break @break
@default @default
<span class="badge badge-danger"><i class="fa fa-question"></i> {{__('messages.application_m.unknown_stat')}}</span> <span class="badge badge-danger"><i class="fa fa-question"></i> {{__('Unknown')}}</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> {{__('messages.reusable.view')}}</button> <button type="button" class="btn btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fa fa-eye"></i> {{__('View')}}</button>
</td> </td>
</tr> </tr>
@ -107,8 +107,8 @@
@else @else
<div class="alert alert-warning"> <div class="alert alert-warning">
<p><i class="fa fa-info-circle"></i> <b>{{__('messages.user.nothing_to_show')}}</b></p> <p><i class="fa fa-info-circle"></i> <b>{{__('Nothing to show')}}</b></p>
<p>{{__('messages.user.nothing_to_show_exp')}}</p> <p>{{__("You currently have no applications to display. If you're eligible, you may apply once every month.")}}</p>
</div> </div>
@endif @endif
@ -117,7 +117,7 @@
<div class="card-footer"> <div class="card-footer">
<button type="button" class="btn btn-default mr-2" onclick="window.location.href='{{route('dashboard')}}'">{{__('messages.back')}}</button> <button type="button" class="btn btn-default mr-2" onclick="window.location.href='{{route('dashboard')}}'">{{__('Go back')}}</button>
</div> </div>
</div> </div>

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', config('app.name') . ' | ' . __('messages.user.directory.title')) @section('title', config('app.name') . ' | ' . __('User Directory'))
@section('content_header') @section('content_header')
<h4>{{__('messages.profile.users')}} / {{__('messages.user.directory.directory')}}</h4> <h4>{{__('Users')}} / {{__('Directory')}}</h4>
@stop @stop
@ -29,7 +29,6 @@
@foreach ($users as $user) @foreach ($users as $user)
<div class="col-md-4"> <div class="col-md-4">
<!-- Widget: user widget style 1 -->
<div class="card card-widget widget-user"> <div class="card card-widget widget-user">
<div class="widget-user-header bg-secondary"> <div class="widget-user-header bg-secondary">
<h3 class="widget-user-username">{{ $user->name }}</h3> <h3 class="widget-user-username">{{ $user->name }}</h3>
@ -38,9 +37,9 @@
<div class="widget-user-image"> <div class="widget-user-image">
@if($user->profile->avatarPreference == 'gravatar') @if($user->profile->avatarPreference == 'gravatar')
<img class="profile-user-img elevation-2 img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($user->email)}}" alt="User profile picture"> <img class="profile-user-img elevation-2 img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($user->email)}}" alt="{{ __('User profile picture') }}">
@else @else
<img class="profile-user-img elevation-2 img-fluid img-circle" src="https://crafatar.com/avatars/{{$user->uuid}}" alt="User profile picture"> <img class="profile-user-img elevation-2 img-fluid img-circle" src="https://crafatar.com/avatars/{{$user->uuid}}" alt="{{ __('User profile picture') }}">
@endif @endif
</div> </div>
<div class="card-footer text-center"> <div class="card-footer text-center">
@ -49,7 +48,7 @@
<div class="user-indicator mb-2"> <div class="user-indicator mb-2">
<span class="badge badge-success">{{__('messages.user.directory.itsyou')}}</span> <span class="badge badge-success">{{__("It's you!")}}</span>
</div> </div>
@ -65,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> {{__('messages.profile.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> {{__('Profile')}}</button>
</div> </div>
</div> </div>
@ -99,7 +98,7 @@
<div class="alert alert-danger"> <div class="alert alert-danger">
<p> <p>
{{__('messages.component_nopermission')}} {{__("We're sorry, but you do not have permission to access this web page.")}}
</p> </p>
</div> </div>

View File

@ -1,10 +1,10 @@
@extends('adminlte::page') @extends('adminlte::page')
@section('title', config('app.name') . ' | ' . __('messages.view_app.title')) @section('title', config('app.name') . ' | ' . __('Viewing application'))
@section('content_header') @section('content_header')
<h4>{{__('messages.application_m.title')}} / {{__('messages.view_app.viewing_app', ['user' => $application->user->name])}}</h4> <h4>{{__('Application Management')}} / {{__("Viewing :userNameValue's application", ['userNameValue' => $application->user->name])}}</h4>
@stop @stop
@ -24,7 +24,7 @@
<x-global-errors></x-global-errors> <x-global-errors></x-global-errors>
@if (!$canVote && Auth::user()->can('applications.vote') && $application->applicationStatus == 'STAGE_PEERAPPROVAL') @if (!$canVote && Auth::user()->can('applications.vote') && $application->applicationStatus == 'STAGE_PEERAPPROVAL')
<script> <script>
toastr.info('{{__('messages.view_app.cantvote')}}', '{{__('messages.warn')}}') toastr.info('{{__('You cannot vote on this application anymore.')}}', '{{__('Warning')}}')
</script> </script>
@endif @endif
@ -36,17 +36,17 @@
@canany('applications.view.all', 'appointments.*') @canany('applications.view.all', 'appointments.*')
<x-modal id="notes" modal-label="notes" modal-title="{{__('messages.reusable.notepad')}}" include-close-button="true"> <x-modal id="notes" modal-label="notes" modal-title="{{__('Shared Notepad')}}" include-close-button="true">
<form id="meetingNotes" method="POST" action="{{route('saveNotes', ['application' => $application->id])}}"> <form id="meetingNotes" method="POST" action="{{route('saveNotes', ['application' => $application->id])}}">
@csrf @csrf
@method('PATCH') @method('PATCH')
<textarea name="noteText" rows="5" class="form-control">{{$application->appointment->meetingNotes ?? __('messages.view_app.no_notes')}}</textarea> <textarea name="noteText" rows="5" class="form-control">{{$application->appointment->meetingNotes ?? __('There are no notes yet. Add some!')}}</textarea>
</form> </form>
<p class="text-muted text-sm">{{__('messages.last_updated')}} @ {{$application->appointment->updated_at}}</p> <p class="text-muted text-sm">{{__('Last updated')}} @ {{$application->appointment->updated_at}}</p>
<x-slot name="modalFooter"> <x-slot name="modalFooter">
<button type="button" class="btn btn-success" onclick="document.getElementById('meetingNotes').submit()"><i class="far fa-paper-plane"></i> {{__('messages.save_exit')}}</button> <button type="button" class="btn btn-success" onclick="document.getElementById('meetingNotes').submit()"><i class="far fa-paper-plane"></i> {{__('Save & Quit')}}</button>
</x-slot> </x-slot>
</x-modal> </x-modal>
@ -55,17 +55,17 @@
@role('hiringManager') @role('hiringManager')
<x-modal id="denyApplication" modal-label="denyApplicationLabel" modal-title="{{__('messages.reusable.confirm')}}" include-close-button="true"> <x-modal id="denyApplication" modal-label="denyApplicationLabel" modal-title="{{__('Please Confirm')}}" include-close-button="true">
<p>{{__('messages.view_app.deny_confirm')}}</p> <p>{{__('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.')}}</p>
<p class="text-muted">{{__('messages.view_app.deny_confirm_consequence')}}</p> <p class="text-muted">{{__('This action cannot be undone.')}}</p>
<x-slot name="modalFooter"> <x-slot name="modalFooter">
<form id="updateApplication" action="{{route('updateApplicationStatus', ['application' => $application->id, 'newStatus' => 'deny'])}}" method="POST"> <form id="updateApplication" action="{{route('updateApplicationStatus', ['application' => $application->id, 'newStatus' => 'deny'])}}" method="POST">
@csrf @csrf
@method('PATCH') @method('PATCH')
<button type="submit" class="btn btn-danger">{{__('messages.view_app.deny_confirm_btn')}}</button> <button type="submit" class="btn btn-danger">{{__('Confirm: Deny Applicant')}}</button>
</form> </form>
</x-slot> </x-slot>
@ -93,7 +93,7 @@
</form> </form>
<x-slot name="modalFooter"> <x-slot name="modalFooter">
<button type="button" class="btn btn-warning" onclick="$('#confirmCancelAppointment').submit()"><i class="fas fa-calendar-times""></i> {{ __('Finish cancelling appointment') }}</button> <button type="button" class="btn btn-warning" onclick="$('#confirmCancelAppointment').submit()"><i class="fas fa-calendar-times"></i> {{ __('Finish cancelling appointment') }}</button>
</x-slot> </x-slot>
</x-modal> </x-modal>
@ -106,7 +106,7 @@
<div class="alert alert-warning alert-dismissible"> <div class="alert alert-warning alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a> <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
{{__('messages.view_app.form_updated_alert')}} {{__('If this form has been updated, new fields and updated questions will not show up here!')}}
</div> </div>
</div> </div>
@ -150,43 +150,43 @@
<div class="card bg-gray"> <div class="card bg-gray">
<div class="card-header bg-gradient-gray"> <div class="card-header bg-gradient-gray">
<div class="card-title">{{__('messages.view_app.context_info')}}</div> <div class="card-title">{{__('Contextual information')}}</div>
</div> </div>
<div class="card-body"> <div class="card-body">
<p><b>{{__('messages.application_m.applicant_name')}} </b> <span class="badge badge-primary">{{$application->user->name}}</span></p> <p><b>{{__('Applicant Name')}} </b> <span class="badge badge-primary">{{$application->user->name}}</span></p>
@if (Auth::user()->hasRole('hiringManager')) @if (Auth::user()->hasRole('hiringManager'))
<p><b>{{__('messages.view_app.appl_ip')}}</b> <span class="badge badge-primary">{{ (!$shouldCollect) ? '0.0.0.0 (censored)' : $application->user->originalIP }}</span></p> <p><b>{{__('Applicant IP Address')}}</b> <span class="badge badge-primary">{{ (!$shouldCollect) ? __('0.0.0.0 (censored)') : $application->user->originalIP }}</span></p>
@endif @endif
<p><b>{{__('messages.application_m.application_date')}}</b> <span class="badge badge-primary">{{$application->created_at}}</span></p> <p><b>{{__('Application Date')}}</b> <span class="badge badge-primary">{{$application->created_at}}</span></p>
<p><b>{{__('messages.last_updated')}}</b><span class="badge badge-primary">{{$application->updated_at}}</span></p> <p><b>{{__('Last updated')}}</b><span class="badge badge-primary">{{$application->updated_at}}</span></p>
<p><b>{{__('messages.view_app.appl_for')}}</b> <span class="badge badge-primary">{{$vacancy->vacancyName}}</span></p> <p><b>{{__('Applying for')}}</b> <span class="badge badge-primary">{{$vacancy->vacancyName}}</span></p>
<p class="mt-2"><b>{{__('messages.view_app.currentstatus')}}</b> <p class="mt-2"><b>{{__('Current Status')}}</b>
@switch($application->applicationStatus) @switch($application->applicationStatus)
@case('STAGE_SUBMITTED') @case('STAGE_SUBMITTED')
<span class="badge badge-warning">{{__('messages.application_m.outstanding_sm')}}</span> <span class="badge badge-warning">{{__('Outstanding')}}</span>
@break @break
@case('STAGE_PEERAPPROVAL') @case('STAGE_PEERAPPROVAL')
<span class="badge badge-primary">{{__('messages.user.peer_approval')}}</span> <span class="badge badge-primary">{{__('Peer Approval')}}</span>
@break @break
@case('STAGE_INTERVIEW') @case('STAGE_INTERVIEW')
<span class="badge badge-primary">{{__('messages.application_m.pending_int')}}</span> <span class="badge badge-primary">{{__('Pending Interview')}}</span>
@break @break
@case('STAGE_INTERVIEW_SCHEDULED') @case('STAGE_INTERVIEW_SCHEDULED')
<span class="badge badge-primary"><i class="fas fa-clock"></i> {{__('messages.application_m.interview_s')}}</span> <span class="badge badge-primary"><i class="fas fa-clock"></i> {{__('Interview Scheduled')}}</span>
@break @break
@case('APPROVED') @case('APPROVED')
<span class="badge badge-success"><i class="fa fa-check-double"></i> {{__('messages.application_m.approved')}}</span> <span class="badge badge-success"><i class="fa fa-check-double"></i> {{__('Approved')}}</span>
@break @break
@case('DENIED') @case('DENIED')
<span class="badge badge-danger"><i class="fa fa-ban"></i> {{__('messages.application_m.denied')}}</span> <span class="badge badge-danger"><i class="fa fa-ban"></i> {{__('Denied')}}</span>
@break @break
@ -212,7 +212,7 @@
<div class="card bg-gray"> <div class="card bg-gray">
<div class="card-header bg-gradient-gray"> <div class="card-header bg-gradient-gray">
<div class="card-title">{{__('messages.view_app.decisionmod')}}</div> <div class="card-title">{{__('Decision & Moderation Tools')}}</div>
</div> </div>
@ -229,7 +229,7 @@
<form method="POST" action="{{route('updateApplicationStatus', ['application' => $application->id, 'newStatus' => 'interview'])}}"> <form method="POST" action="{{route('updateApplicationStatus', ['application' => $application->id, 'newStatus' => 'interview'])}}">
@csrf @csrf
@method('PATCH') @method('PATCH')
<button type="submit" class="btn btn-success" {{($application->applicationStatus == 'DENIED') ? 'disabled' : ''}}><i class="fas fa-arrow-right" ></i> {{__('messages.view_app.nextstage')}}</button> <button type="submit" class="btn btn-success" {{($application->applicationStatus == 'DENIED') ? 'disabled' : ''}}><i class="fas fa-arrow-right" ></i> {{__('Move to next stage')}}</button>
</form> </form>
</div> </div>
</div> </div>
@ -250,7 +250,7 @@
<div class="col"> <div class="col">
<x-card id="appointmentCard" card-title="{{__('messages.reusable.schedule_action')}}" footer-style="text-center"> <x-card id="appointmentCard" card-title="{{__('Schedule an Appointment')}}" footer-style="text-center">
<x-slot name="cardHeader"> <x-slot name="cardHeader">
@ -260,29 +260,29 @@
@csrf @csrf
<label for="appointmentDescription">{{__('messages.view_app.appointment_desc')}}</label> <label for="appointmentDescription">{{__('Appointment description')}}</label>
<input type="text" class="form-control" name="appointmentDescription"> <input type="text" class="form-control" name="appointmentDescription">
<label for="appointmentDateTime">{{__('messages.view_app.int_date_time')}}</label> <label for="appointmentDateTime">{{__('Appointment Date & Time')}}</label>
<input type="text" class="form-control" name="appointmentDateTime" id="appointmentDateTime"> <input type="text" class="form-control" name="appointmentDateTime" id="appointmentDateTime">
<p class="text-muted text-sm">{{__('messages.view_app.choosedate')}}</p> <p class="text-muted text-sm">{{__('Click to choose a date')}}</p>
<label for="appointmentLocation">{{__('messages.view_app.appointment_loc')}}</label> <label for="appointmentLocation">{{__('Appointment Location')}}</label>
<select class="custom-select" id="appointmentLocation" name="appointmentLocation"> <select class="custom-select" id="appointmentLocation" name="appointmentLocation">
<option value="nil" disabled>{{__('messages.view_app.pref_platform')}}</option> <option value="nil" disabled>{{__('Select your preferred platform')}}</option>
<option value="ZOOM">Zoom</option> <option value="ZOOM">{{ __('Zoom') }}</option>
<option value="DISCORD">Discord</option> <option value="DISCORD">{{ __('Discord') }}</option>
<option value="SKYPE">Skype</option> <option value="SKYPE">{{ __('Skype') }}</option>
<option value="MEET">Google Meet</option> <option value="MEET">{{ __('Google Meet') }}</option>
<option value="TEAMSPEAK">Teamspeak</option> <option value="TEAMSPEAK">{{ __('Teamspeak') }}</option>
</select> </select>
<p class="text-muted text-sm">{{__('messages.view_app.coming_soon_int')}}</p> <p class="text-muted text-sm">{{__('Embedded in-house video conferencing coming soon, powered by Jitsi Meet')}}</p>
</form> </form>
<x-slot name="cardFooter"> <x-slot name="cardFooter">
<button type="button" class="btn btn-warning text-center" onclick="document.getElementById('scheduleAppointment').submit()"><i class="fas fa-clock"></i> {{__('messages.reusable.schedule')}}</button> <button type="button" class="btn btn-warning text-center" onclick="document.getElementById('scheduleAppointment').submit()"><i class="fas fa-clock"></i> {{__('Schedule')}}</button>
</x-slot> </x-slot>
</x-card> </x-card>
@ -299,15 +299,15 @@
<div class="col"> <div class="col">
<x-card id="scheduleInfo" card-title="{{__('messages.reusable.appointment_info')}}" footer-style="text-center"> <x-card id="scheduleInfo" card-title="{{__('Appointment Information')}}" footer-style="text-center">
<x-slot name="cardHeader"></x-slot> <x-slot name="cardHeader"></x-slot>
<p class="text-muted">{{$application->appointment->appointmentDescription}}</p> <p class="text-muted">{{$application->appointment->appointmentDescription}}</p>
<p><b>{{__('messages.view_app.scheduled_for')}}</b> <span class="badge badge-primary">{{$application->appointment->appointmentDate}}</span></p> <p><b>{{__('Interview Scheduled for:')}}</b> <span class="badge badge-primary">{{$application->appointment->appointmentDate}}</span></p>
<p><b>{{__('messages.reusable.status')}}: </b> <span class="badge badge-primary">{{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}</span></p> <p><b>{{__('Status')}}: </b> <span class="badge badge-primary">{{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}</span></p>
<p><b>{{__('messages.reusable.platform')}}:</b> <span class="badge badge-primary">{{Str::ucfirst(Str::lower($application->appointment->appointmentLocation))}}</span></p> <p><b>{{__('Platform')}}:</b> <span class="badge badge-primary">{{Str::ucfirst(Str::lower($application->appointment->appointmentLocation))}}</span></p>
<x-slot name="cardFooter"> <x-slot name="cardFooter">
@ -315,13 +315,13 @@
<form style="white-space: nowrap;display:inline-block" class="footer-button" action="{{route('updateAppointment', ['application' => $application->id, 'status' => 'concluded'])}}" method="POST"> <form style="white-space: nowrap;display:inline-block" class="footer-button" action="{{route('updateAppointment', ['application' => $application->id, 'status' => 'concluded'])}}" method="POST">
@csrf @csrf
@method('PATCH') @method('PATCH')
<button type="submit" class="btn btn-success btn-sm"><i class="fas fa-check"></i> {{__('messages.view_app.finish_meeting')}}</button> <button type="submit" class="btn btn-success btn-sm"><i class="fas fa-check"></i> {{__('Finish Meeting')}}</button>
</form> </form>
<button type="button" class="btn btn-danger btn-sm" onclick="$('#cancelAppointmentModal').modal('show')"><i class="far fa-calendar-times"></i> {{__('Cancel meeting')}}</button> <button type="button" class="btn btn-danger btn-sm" onclick="$('#cancelAppointmentModal').modal('show')"><i class="far fa-calendar-times"></i> {{__('Cancel meeting')}}</button>
@endcan @endcan
@can('applications.vote') @can('applications.vote')
<button class="btn btn-warning mr-3 btn-sm" onclick="$('#notes').modal('show')"><i class="fas fa-clipboard"></i> {{__('messages.view_app.view_notes')}}</button> <button class="btn btn-warning mr-3 btn-sm" onclick="$('#notes').modal('show')"><i class="fas fa-clipboard"></i> {{__('View Meeting Notes')}}</button>
@endcan @endcan
</x-slot> </x-slot>
@ -336,14 +336,14 @@
@if ($application->applicationStatus == 'STAGE_PEERAPPROVAL' && Auth::user()->can('applications.vote')) @if ($application->applicationStatus == 'STAGE_PEERAPPROVAL' && Auth::user()->can('applications.vote'))
<x-card id="peerApproval" card-title="{{__('messages.view_app.vote_app')}}" footer-style="text-center"> <x-card id="peerApproval" card-title="{{__('Vote on this application')}}" footer-style="text-center">
<x-slot name="cardHeader"></x-slot> <x-slot name="cardHeader"></x-slot>
<p class="text-muted">{{__('messages.view_app.vote_explainer.line1')}}</p> <p class="text-muted">{{__("If you weren't present during this meeting, you can view the shared meeting notepad to help you make a decision.")}}</p>
<p class="text-muted">{{__('messages.view_app.vote_explainer.line2')}}</p> <p class="text-muted">{{__('You may vote on as many applications as needed; However, you can only vote once per application.')}}</p>
<p class="text-muted">{{__('messages.view_app.vote_explainer.line3')}}</p> <p class="text-muted">{{__('Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.')}}</p>
<x-slot name="cardFooter"> <x-slot name="cardFooter">
@ -352,17 +352,17 @@
<form class="d-inline-block" method="POST" action="{{route('voteApplication', ['application' => $application->id])}}"> <form class="d-inline-block" method="POST" action="{{route('voteApplication', ['application' => $application->id])}}">
@csrf @csrf
<input type="hidden" name="voteType" value="VOTE_APPROVE"> <input type="hidden" name="voteType" value="VOTE_APPROVE">
<button type="submit" class="btn btn-sm btn-warning">{{__('messages.view_app.vote_approve')}}</button> <button type="submit" class="btn btn-sm btn-warning">{{__('Vote: Approve Applicant')}}</button>
</form> </form>
<form class="d-inline-block" method="POST" action="{{route('voteApplication', ['application' => $application->id])}}"> <form class="d-inline-block" method="POST" action="{{route('voteApplication', ['application' => $application->id])}}">
@csrf @csrf
<input type="hidden" name="voteType" value="VOTE_DENY"> <input type="hidden" name="voteType" value="VOTE_DENY">
<button type="submit" class="btn btn-sm btn-warning">{{__('messages.view_app.vote_deny')}}</button> <button type="submit" class="btn btn-sm btn-warning">{{__('Vote: Deny Applicant')}}</button>
</form> </form>
@endif @endif
<button type="button" class="btn btn-sm btn-warning {{($canVote) ? 'ml-5' : ''}}" onclick="$('#notes').modal('show')">{{__('messages.view_app.m_notes')}}</button> <button type="button" class="btn btn-sm btn-warning {{($canVote) ? 'ml-5' : ''}}" onclick="$('#notes').modal('show')">{{__('Meeting notes')}}</button>
</x-slot> </x-slot>
</x-card> </x-card>
@ -375,7 +375,7 @@
<div class="col text-center"> <div class="col text-center">
<button type="button" class="btn btn-primary" onclick="window.location.href='{{route('allApplications')}}'">{{__('messages.view_app.view_more')}}</button> <button type="button" class="btn btn-primary" onclick="window.location.href='{{route('allApplications')}}'">{{__('View more Applications')}}</button>
</div> </div>
@ -391,7 +391,7 @@
@if (!Auth::user()->is($application->user)) @if (!Auth::user()->is($application->user))
<div class="row mb-3 mt-2"> <div class="row mb-3 mt-2">
<h3>{{__('messages.view_app.comments')}} ({{$comments->count()}})</h3> <h3>{{__('Comments')}} ({{$comments->count()}})</h3>
</div> </div>
@ -405,7 +405,7 @@
<i class="fas fa-question"></i> <b></b> <i class="fas fa-question"></i> <b></b>
<p>{{__('messages.view_app.no_comments_exp')}}</p> <p>{{__('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.')}}</p>
</div> </div>
@ -424,9 +424,9 @@
<div class="text-center"> <div class="text-center">
@if($comment->user->profile->avatarPreference == 'gravatar') @if($comment->user->profile->avatarPreference == 'gravatar')
<img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($comment->user->email)}}" alt="User profile picture"> <img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($comment->user->email)}}" alt="{{ __('User profile picture') }}">
@else @else
<img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{$comment->user->uuid}}" alt="User profile picture"> <img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{$comment->user->uuid}}" alt="{{ __('User profile picture') }}">
@endif @endif
</div> </div>
@ -477,9 +477,9 @@
<div class="text-center"> <div class="text-center">
@if($application->user->avatarPreference == 'gravatar') @if($application->user->avatarPreference == 'gravatar')
<img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5(Auth::user()->email)}}" alt="User profile picture"> <img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5(Auth::user()->email)}}" alt="{{__("User profile picture")}}">
@else @else
<img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{Auth::user()->uuid}}" alt="User profile picture"> <img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{Auth::user()->uuid}}" alt="{{__("User profile picture")}}>
@endif @endif
</div> </div>
@ -501,13 +501,13 @@
<div class="row"> <div class="row">
<div class="col text-left"> <div class="col text-left">
<p class="text-sm text-muted">{{__('messages.view_app.commenting_as', ['username' => Auth::user()->name ])}}</p> <p class="text-sm text-muted">{{__('Commenting as :usernameValue', ['usernameValue' => Auth::user()->name ])}}</p>
</div> </div>
<div class="col text-right"> <div class="col text-right">
<p class="text-sm text-muted"><span id="charcount">0</span>/600 {{__('messages.view_app.max_chars')}}</p> <p class="text-sm text-muted"><span id="charcount">0</span>/600 {{__(' max characters')}}</p>
</div> </div>
@ -517,7 +517,7 @@
<div class="card-footer text-right"> <div class="card-footer text-right">
<button type="button" id="submitComment" class="btn btn-sm btn-secondary">{{__('messages.view_app.post')}}</button> <button type="button" id="submitComment" class="btn btn-sm btn-secondary">{{__('Post')}}</button>
</div> </div>