@php $authUser = auth()->guard('web')->user(); $isUserHeader = $authUser && ! $authUser->hasAnyRole(['admin', 'super admin']); $userNavSection = $userNavSection ?? null; @endphp @include('partials.account-dropdown-styles') @if($isUserHeader) @php $displayBalance = number_format((float) ($authUser->balance ?? 0), 2); $displayCurrency = optional($authUser->wallet)->currency ?? 'USD'; $currencySymbol = match (strtoupper((string) $displayCurrency)) { 'EUR' => '€', 'GBP' => '£', default => '$', }; $avatar = $authUser->avatar ?: 'assets/img/avatars/user_avatar.webp'; @endphp @if(($showSidebar ?? true)) @endif Home My Subscriptions Chat Notice {{-- My Listings --}} Split a subscription @include('partials.account-dropdown-menu') Home Subscription Message Profile @else @php $displayBalance = number_format((float) ($authUser->balance ?? 0), 2); $displayCurrency = optional($authUser->wallet)->currency ?? 'USD'; $currencySymbol = match (strtoupper((string) $displayCurrency)) { 'EUR' => '€', 'GBP' => '£', default => '$', }; @endphp @if(($showSidebar ?? true)) @endif @php $avatar = auth()->guard('web')->user()->avatar; if (empty($avatar)) { $avatar = 'assets/img/avatars/user_avatar.webp'; } @endphp @include('partials.account-dropdown-menu') @endif @include('partials.account-dropdown-script')