@props(['position' => 'top', 'align' => 'start', 'width' => 'w-full'])
{{-- Trigger Button --}} {{-- Dropdown Menu (Strict Tailwind Rewrite - Fixed to Drop-up for Sidebar, Drop-down for Header) --}}
{{-- User Info Header --}}

{{ auth()->user()->name }}

{{ auth()->user()->email }}

{{-- Contextual Link Filtering (Panel-Aware) --}} {{-- 1. If in Customer Panel context --}} @if(request()->is('account*')) {{ __('Customer Dashboard') }} {{ __('My Purchases') }} {{ __('Affiliate Program') }} {{-- 2. If in Vendor Panel context --}} @elseif(request()->is('vendor*')) {{ __('Vendor Dashboard') }} {{ __('Store Settings') }} {{-- 3. Default to Admin if they have the role, otherwise show Customer links --}} @elseif(auth()->user()->hasAnyRole('super_admin|admin')) {{ __('Admin Panel') }} {{ __('System Settings') }} {{ __('Customer Dashboard') }} {{ __('My Purchases') }} @if(\App\Models\Setting::get('enable_affiliate_system', true)) {{ __('Affiliate Program') }} @endif @endif
{{-- 4. Everyone --}} {{ __('Profile') }}
@csrf