Sync 18 Add VerifyController + Fixes on CRM register
This commit is contained in:
parent
145d5c8894
commit
cfba2ac697
2 changed files with 9 additions and 3 deletions
|
|
@ -5,12 +5,12 @@
|
|||
$countries = collect(\LDC\LDCCRM\Enums\Country::getValidCountries())->filter(fn($enum) => !$franceCountries->contains($enum));
|
||||
$old_country = old('country', optional($crmCustomer->country ?? null)->value ?: null);
|
||||
@endphp
|
||||
<select id="country" aria-label="{{ Str::ucfirst(__('validation.attributes.country')) }}" @class([
|
||||
<select id="country" name="country" aria-label="{{ Str::ucfirst(__('validation.attributes.country')) }}" @class([
|
||||
'form-select',
|
||||
'mx-auto',
|
||||
'is-invalid' => $errors->has('country'),
|
||||
]) @readonly(!empty($readonly))
|
||||
@disabled(!empty($disabled)) @required(!empty($required))>
|
||||
])
|
||||
@readonly(!empty($readonly)) @disabled(!empty($disabled)) @required(!empty($required))>
|
||||
<option @selected(!$old_country) disabled>
|
||||
{{ __('Votre :attribute', [
|
||||
'attribute' => __('validation.attributes.country'),
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
<form class="container-fluid" method="POST" action="{{ route('fo.profil.verify-submit') }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
|
||||
<div class="row justify-content-center mb-3">
|
||||
<div class="col-md-8">
|
||||
|
|
@ -66,6 +67,11 @@
|
|||
@include('theme::auth.partials.inputs.phone')
|
||||
</div>
|
||||
|
||||
{{-- BIRTH_DATE --}}
|
||||
<div class="col-12 col-md-6 py-2">
|
||||
@include('theme::auth.partials.inputs.birth_date', ['readonly' => true])
|
||||
</div>
|
||||
|
||||
{{-- EMAIL --}}
|
||||
<div class="col-12 col-md-6 py-2">
|
||||
@include('theme::auth.partials.inputs.email', ['readonly' => true])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue