вкладка для ботов в админке
This commit is contained in:
@@ -79,11 +79,23 @@
|
||||
<p>Здесь видны все игровые аккаунты, их персонажи и текущий уровень доступа.</p>
|
||||
</div>
|
||||
|
||||
<div class="tab-switcher">
|
||||
@foreach ($accountTabs as $tabKey => $tab)
|
||||
<a
|
||||
class="button {{ $activeTab === $tabKey ? 'button--gold' : 'button--ghost' }}"
|
||||
href="{{ route('admin.accounts.index', array_filter(['tab' => $tabKey, 'search' => $search !== '' ? $search : null])) }}"
|
||||
>
|
||||
{{ $tab['label'] }} · {{ $tab['count'] }}
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<form class="search-form" method="GET" action="{{ route('admin.accounts.index') }}">
|
||||
<input type="hidden" name="tab" value="{{ $activeTab }}">
|
||||
<input class="form-control" type="search" name="search" value="{{ $search }}" placeholder="Поиск по логину или email">
|
||||
<button class="button button--gold" type="submit">Найти</button>
|
||||
@if ($search !== '')
|
||||
<a class="button button--ghost" href="{{ route('admin.accounts.index') }}">Сбросить</a>
|
||||
<a class="button button--ghost" href="{{ route('admin.accounts.index', ['tab' => $activeTab]) }}">Сбросить</a>
|
||||
@endif
|
||||
</form>
|
||||
</section>
|
||||
@@ -157,8 +169,8 @@
|
||||
</article>
|
||||
@empty
|
||||
<article class="content-card empty-state">
|
||||
<h3>Аккаунты не найдены</h3>
|
||||
<p>Измени поисковый запрос или попробуй позже.</p>
|
||||
<h3>{{ $activeTab === 'bots' ? 'Боты не найдены' : 'Игроки не найдены' }}</h3>
|
||||
<p>Измени поисковый запрос или переключись на другую вкладку.</p>
|
||||
</article>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user