@extends('settings.layout') @section('card')

{{ trans('settings.reg_settings') }}

{!! csrf_field() !!}

{!! trans('settings.reg_enable_desc') !!}

@include('form.toggle-switch', [ 'name' => 'setting-registration-enabled', 'value' => setting('registration-enabled'), 'label' => trans('settings.reg_enable_toggle') ]) @if(in_array(config('auth.method'), ['ldap', 'saml2', 'oidc']))
{{ trans('settings.reg_enable_external_warning') }}
@endif

{!! trans('settings.reg_confirm_restrict_domain_desc') !!}

{{ trans('settings.reg_confirm_email_desc') }}

@include('form.toggle-switch', [ 'name' => 'setting-registration-confirmation', 'value' => setting('registration-confirmation'), 'label' => trans('settings.reg_email_confirmation_toggle') ])
@endsection