@php use App\Domains\Engine\Enums\EngineEnum;use App\Domains\Entity\Enums\EntityEnum; @endphp @extends('panel.layout.settings') @section('title', __('Login/Signup Settings')) @section('titlebar_actions', '') @section('additional_css') @endsection @section('settings')
@csrf {{ __('Recaptcha Settings') }}
{{ __('Check the documentation.') }}

{{ __('Do not activate without ensuring that the key values are entered correctly.') }}

{{ __('Social Login Settings') }}
{{ __('Free Credits Usage Upon Registration') }}

@php $freshCredits = \App\Models\User::getFreshCredits(); $registrationCredits = setting('freeCreditsUponRegistration', []); $entities = deepMerge($freshCredits, $registrationCredits); @endphp @livewire('assign-view-credits', ['entities' => $entities])
{{ __('Limitations') }}
{{ __('Required Fields During Registration') }}

{{ __('Configure which fields are required during user registration. Email and password fields are always required.') }}

@php $optionalFields = [ [ 'id' => 'country', 'label' => __('Country'), 'icon' => 'map-pin', 'checked' => (bool) setting('registration_fields_country', 0), ], [ 'id' => 'phone', 'label' => __('Phone'), 'icon' => 'phone', 'checked' => (bool) setting('registration_fields_phone', 0), ], [ 'id' => 'name', 'label' => __('Name'), 'icon' => 'user', 'checked' => (bool) setting('registration_fields_name', 1), ], [ 'id' => 'surname', 'label' => __('Last Name'), 'icon' => 'user', 'checked' => (bool) setting('registration_fields_surname', 1), ], ]; $requiredFields = [ [ 'label' => __('Email Address'), 'icon' => 'mail', ], [ 'label' => __('Password'), 'icon' => 'key', ], [ 'label' => __('Confirm Password'), 'icon' => 'lock', ], ]; @endphp
{{-- Optional Fields --}}
{{ __('Optional Fields') }}
@foreach($optionalFields as $field)
{{ $field['label'] }}
@endforeach
{{-- Required Fields --}}
{{ __('Required Fields') }}
@foreach($requiredFields as $field)
{{ $field['label'] }}
{{ __('Required') }}
@endforeach
{{ __('Other Settings') }}
@endsection @push('script') @endpush