@extends('panel.authentication.layout.app') @section('title', __('Register')) @section('form') @if ($setting->register_active == 1)

{{ __('Sign up') }}

@if ($setting->github_active || $setting->twitter_active || $setting->google_active || $setting->facebook_active)
@if ($setting->google_active) {{ __('Login with Google') }} @endif @if ($setting->github_active) {{ __('Login with Github') }} @endif @if ($setting->twitter_active) {{ __('Login with Twitter') }} @endif @if ($setting->facebook_active) {{ __('Login with Facebook') }} @endif
{{ __('or') }}
@endif @php // Optional fields controlled by settings $optionalFields = [ [ 'id' => 'name', 'label' => __('Name'), 'placeholder' => __('Your Name'), 'type' => 'text', ], [ 'id' => 'surname', 'label' => __('Last Name'), 'placeholder' => __('Your Last Name'), 'type' => 'text', ], [ 'id' => 'phone', 'label' => __('Phone'), 'placeholder' => __('Your Phone Number'), 'type' => 'tel', ], [ 'id' => 'country', 'label' => __('Country'), 'placeholder' => __('Your Country'), 'type' => 'text', ], ]; @endphp
{{-- Render optional fields dynamically --}} @foreach ($optionalFields as $field) @if (setting("registration_fields_{$field['id']}", 0)) @endif @endforeach {{-- Always required fields --}} @if ($setting->recaptcha_register && config('services.recaptcha.key') && config('services.recaptcha.secret'))
@else @endif {{ __('Sign up') }} @if ($setting->privacy_enable == 1 && $setting->privacy_enable_login == 1)
{{ __('By proceeding, you acknowledge and accept our') }} {{ __('Terms and Conditions') }} {{ __('and') }} {{ __('Privacy Policy') }} .
@endif
@else

{{ __('Registration is currently unavailable.') }}

@endif
{{ __('Have an account?') }} {{ __('Sign in') }}
@endsection @push('script') @endpush