админка
This commit is contained in:
@@ -17,6 +17,18 @@
|
||||
<a href="#start">Как начать</a>
|
||||
<a href="#register">Регистрация</a>
|
||||
</nav>
|
||||
|
||||
<div class="topbar-actions">
|
||||
@auth
|
||||
<a class="button button--ghost" href="{{ route('cabinet.index') }}">Личный кабинет</a>
|
||||
|
||||
@if (auth()->user()->canAccessAdminPanel())
|
||||
<a class="button button--ghost" href="{{ route('admin.accounts.index') }}">Админка</a>
|
||||
@endif
|
||||
@else
|
||||
<a class="button button--ghost" href="{{ route('login') }}">Войти</a>
|
||||
@endauth
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
@@ -49,7 +61,7 @@
|
||||
<div class="panel-header">
|
||||
<span class="eyebrow">Регистрация</span>
|
||||
<h2>Создать игровой аккаунт</h2>
|
||||
<p>Укажи логин, почту и пароль — аккаунт будет готов к входу в игру сразу после регистрации.</p>
|
||||
<p>Укажи инвайт-код, логин, почту и пароль — аккаунт будет готов к входу в игру сразу после регистрации.</p>
|
||||
</div>
|
||||
|
||||
@if (session('registration_success'))
|
||||
@@ -94,6 +106,22 @@
|
||||
@error('email')<span class="form-error">{{ $message }}</span>@enderror
|
||||
</label>
|
||||
|
||||
<label class="form-field">
|
||||
<span>Инвайт-код</span>
|
||||
<input
|
||||
class="form-control @error('invite_code') is-invalid @enderror"
|
||||
type="text"
|
||||
name="invite_code"
|
||||
value="{{ old('invite_code') }}"
|
||||
autocomplete="off"
|
||||
placeholder="ABCD-EFGH-IJKL"
|
||||
maxlength="32"
|
||||
required
|
||||
>
|
||||
<small>Регистрация доступна только по действующему инвайт-коду.</small>
|
||||
@error('invite_code')<span class="form-error">{{ $message }}</span>@enderror
|
||||
</label>
|
||||
|
||||
<div class="form-row">
|
||||
<label class="form-field">
|
||||
<span>Пароль</span>
|
||||
|
||||
Reference in New Issue
Block a user