{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: payout-tabs.blade.php ------------------------------------------------------ Use: The strip that ties the pay-out queues together -- user withdrawals, shop settlements and the bank accounts they pay into -- while each keeps its own page. Only the tabs the operator may see are shown. ===================================================== --}} @php $admin = auth('admin')->user(); $tabs = []; if ($admin->allowed('withdrawals.view')) { $tabs[] = [ 'label' => __('admin.payouts.tab_withdrawals'), 'url' => route('admin.withdrawals.index'), 'on' => request()->routeIs('admin.withdrawals.index'), 'badge' => \App\Models\Withdrawal::query()->where('status', \App\Models\Withdrawal::STATUS_PENDING)->count(), ]; } if ($admin->allowed('shops.view')) { $tabs[] = [ 'label' => __('admin.payouts.tab_settlements'), 'url' => route('admin.settlements.index'), 'on' => request()->routeIs('admin.settlements.*'), 'badge' => \App\Models\ShopSettlement::query()->where('status', \App\Models\ShopSettlement::STATUS_PENDING)->count(), ]; } if ($admin->allowed('withdrawals.view')) { $tabs[] = [ 'label' => __('admin.payouts.tab_accounts'), 'url' => route('admin.withdrawals.accounts'), 'on' => request()->routeIs('admin.withdrawals.accounts'), 'badge' => \App\Models\BankAccount::query()->where('status', \App\Models\BankAccount::STATUS_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