feat: add user dob to profile

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
Miguel Nogueira 2022-10-24 00:43:25 +01:00
parent 59351ef7bc
commit f5dc235a72
No known key found for this signature in database
GPG Key ID: 3C6A7E29AF26D370
2 changed files with 11 additions and 0 deletions

View File

@ -46,6 +46,10 @@
<x-alert title="{{ __('Date of birth required to continue') }}" alert-type="warning" icon="fa fa-exclamation-triangle">
{{ __('Because you signed up using Discord, your age was not registered in our system. In order to continue applying for this position, please add your date of birth below. Please note that we don\'t accept registrations from users under 13 years of age.') }}
</x-alert>
<x-alert title="{{ __('Warning') }}" alert-type="danger" icon="fas fa-user-lock">
{{ __('You can\'t change your date of birth after first setting it.') }}
</x-alert>
</div>
</div>

View File

@ -151,6 +151,13 @@
</div>
<div class="form-group mt-3">
<label for="dob">{{__('Date of birth')}}</label>
<input type="text" disabled name="dob" id="dob" class="form-control" value="{{ (is_null($profile->user->dob)) ? __('Not set yet') : __(':dob (:age yrs old)', ['dob' => $profile->user->dob, 'age' => \Carbon\Carbon::parse($profile->user->dob)->age]) }}">
</div>
<div class="form-group mt-3">
<label for="aboutMe">{{__('About me')}}</label>