@php $user = auth()->user(); $panel = current_panel(); // The reseller's prepaid balance lives in the OWNER panel (they pay the owner // at cost); resolve it by user identity so it is never blocked by PanelScope. $prepaid = app(\App\Services\Wallet\WalletService::class)->balanceOf($user); $currency = $panel?->base_currency ?: 'USD'; @endphp
{{-- Mobile sidebar toggle --}}
{{-- Prepaid balance widget (reseller -> owner) --}}
{{ money($prepaid, $currency) }} {{ __('Add funds') }}
{{-- Direct link to THEIR store. Not url('/'), which is the owner's: the panel is administered under the owner's domain, so the link has to come from the panel's own host. With no domain verified there is nowhere to go, and the button says so instead of leading to a 404. --}} @php $storeUrl = $panel?->publicUrl(); @endphp @if ($storeUrl) @else @endif {{-- Language switcher — rows come from the `languages` table (active only), the same list Admin → Languages manages. --}}
@foreach (active_locales() as $code => $label) {{ $label }} @endforeach
{{-- Theme toggle --}} {{-- Fullscreen toggle --}} {{-- User menu --}}
{{ $user->email }}
{{ __('Profile') }} {{ __('Settings') }}
@csrf