@csrf
@include("shared.input", ["name" => "firstname", "label" => __('global.firstname') ])
@include("shared.input", ["name" => "lastname", "label" => __('global.lastname')])
@include("shared.input", ["name" => "email", "label" => __('global.email'), "type" => "email", "value" => old('email', $email ?? null)])
@include('shared.phone-intl', [ 'name' => 'phone', 'label' => __('global.phone'), 'optional' => true, 'country' => old('country', 'FR'), ])
@include("shared.input", ["name" => "address", "label" => __('global.address')])
@include("shared.input", ["name" => "address2", "label" => __('global.address2'), "optional" => true])
@include("shared.input", ["name" => "zipcode", "label" => __('global.zip')])
@include("shared.select", ["name" => "country", "label" => __('global.country'), "options" => $countries, "value" => old("country", "FR")])
@include("shared.input", ["name" => "region", "label" => __('global.region')])
@include("shared.input", ["name" => "city", "label" => __('global.city')])
@include("shared.password", ["name" => "password", "label" => __('global.password'), "generate" => true])
@include("shared.password", ["name" => "password_confirmation", "label" => __('global.password_confirmation')])
@if (setting('register.toslink'))
@include('shared/checkbox', ['label' => __('auth.register.accept'), 'name' => 'accept_tos'])
@endif @if (isset($redirect)) @endif @include('shared.captcha') @includeWhen(app('extension')->extensionIsEnabled('how-did-you-find-us'), 'how-did-you-find-us::shared.register_field')