fix: show age in user mgmt page and appl page

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
2022-10-28 20:15:45 +01:00
parent 501399ee2e
commit 621d262d29
2 changed files with 7 additions and 0 deletions

View File

@@ -161,6 +161,8 @@
<p><b>{{ __('Discord tag: ') }}</b><i class="fab fa-discord"> </i> {{ __(':discordUsername (Connected account)', ['discordUsername' => $application->user->username]) }} </p>
@endif
<p><b>{{ __('Age: ') }}</b>{{ __(':age years old', ['age' => \Carbon\Carbon::parse($application->user->dob)->age]) }}</p>
@if (Auth::user()->hasRole('hiringManager'))
<p><b>{{__('Applicant IP Address')}}</b> <span class="badge badge-primary">{{ (!$shouldCollect) ? __('0.0.0.0 (censored)') : $application->user->registrationIp }}</span></p>
@endif