fix: show age in user mgmt page and appl page

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
Miguel Nogueira 2022-10-28 20:15:45 +01:00
parent 501399ee2e
commit 621d262d29
No known key found for this signature in database
GPG Key ID: 3C6A7E29AF26D370
2 changed files with 7 additions and 0 deletions

View File

@ -270,6 +270,11 @@
</div>
<div class="row">
<div class="col">
<label for="uage">{{ __(' Age') }}</label>
<input id="uage" class="form-control" type="text" value="{{ (is_null($user->dob)) ? __('Age not provided yet') : __(':age years old', ['age' => \Carbon\Carbon::parse($user->dob)->age]) }}" disabled>
</div>
<div class="col">
<label for="uregdate">{{ __(' Registered at') }}</label>
<input id="uregdate" class="form-control" type="text" value="{{ $user->created_at }} ({{ $user->created_at->diffForHumans() }})" disabled>

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