{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: request-tabs.blade.php ------------------------------------------------------ Use: The shortcut strip that ties the three approval queues together -- credit, physical card, and withdrawal -- while each keeps its own page. Only the tabs the operator has access to are shown. ===================================================== --}} @php $admin = auth('admin')->user(); // Each queue's tab shows only if the operator may view that queue. $tabs = []; if ($admin->allowed('requests.view')) { $tabs[] = [ 'label' => __('admin.requests.tab_credit'), 'url' => route('admin.requests.index'), 'on' => request()->routeIs('admin.requests.index'), 'badge' => \App\Models\CreditRequest::query()->where('status', \App\Models\CreditRequest::STATUS_PENDING)->count(), ]; } if ($admin->allowed('requests.cards_view')) { $tabs[] = [ 'label' => __('admin.requests.tab_card'), 'url' => route('admin.requests.cards'), 'on' => request()->routeIs('admin.requests.cards'), 'badge' => \App\Models\PhysicalCardRequest::query()->where('status', \App\Models\PhysicalCardRequest::STATUS_PENDING)->count(), ]; } if ($admin->allowed('requests.gateways_view')) { $tabs[] = [ 'label' => __('admin.requests.tab_gateway'), 'url' => route('admin.requests.gateways'), 'on' => request()->routeIs('admin.requests.gateways'), 'badge' => \App\Models\Shop::query()->where('website_status', \App\Models\Shop::WEBSITE_PENDING)->count(), ]; } @endphp @if (count($tabs) > 1)
@foreach ($tabs as $tab) $tab['on'], 'text-ink-muted hover:text-primary-600' => ! $tab['on'], ])> {{ $tab['label'] }} @if ($tab['badge'] > 0) @fa($tab['badge']) @endif @endforeach
@endif