@extends('panel.layouts.base') @section('seo_description', __('panel/auth/dashboard.description')) @section('title', 'Регистрация почты') @php use MoonShine\Fields\Text; use MoonShine\Decorations\Grid; use MoonShine\Decorations\Column; use MoonShine\Components\FormBuilder; use Illuminate\Support\Str; use MoonShine\Fields\Select; use MoonShine\Decorations\Block; use MoonShine\Components\Title; use MoonShine\Components\Link; use MoonShine\Fields\Template; use MoonShine\Fields\Switcher; use MoonShine\Fields\Hidden; @endphp @section('content.top')
{!! Title::make('Регистрация игрового аккаунта')->customAttributes(['class' => 'text-center']), \MoonShine\Decorations\Divider::make(), FormBuilder::make( action: route('email-save'), fields: [ count($servers) > 1 ? Select::make(__('panel/guest/sign_in.main.9'), 'server') ->options( fn() => server()->getServers() ->mapWithKeys(fn($item) => [$item['id'] => "{$item['game_server_name']} {$item['rate']}"]) ->toArray() )->default(session('id',1)) : Title::make(''), Text::make(__('panel/guest/sign_up.main.2'), 'email')->copy()->placeholder(__('panel/guest/sign_up.main.12')) ->setAttribute('minlength',config('cabinet.register.min_email_length')) ->setAttribute('maxlength',config('cabinet.register.max_email_length')), \MoonShine\Decorations\Divider::make(), view('panel.guest.sign-up.inc-input'), \MoonShine\Decorations\Divider::make(), Text::make(__('panel/guest/sign_up.main.3'), 'password')->eye()->placeholder(__('panel/guest/sign_up.main.13')) ->setAttribute('minlength',config('cabinet.register.min_password_length')) ->setAttribute('maxlength',config('cabinet.register.max_password_length')), \MoonShine\Decorations\Divider::make(), view('components.recaptcha.recaptcha') ], )->name('register-guest-form')->submit(label: __('panel/guest/sign_in.main.4'), attributes: ['class' => 'btn-close w-full']) !!}
@endsection