fix: show age in user mgmt page and appl page
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
parent
501399ee2e
commit
621d262d29
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user