Menu
@guest @else
{{ substr(Auth::user()->name, 0, 1) }}
{{ Auth::user()->name }}
@php $roleDisplay = 'User'; if(Auth::user()->hasRole('admin')) { $roleDisplay = 'Admin'; } elseif(Auth::user()->hasRole('seller')) { $roleDisplay = 'Seller'; } elseif(Auth::user()->hasRole('buyer')) { $roleDisplay = 'Buyer'; } @endphp
{{ $roleDisplay }}
@php $dashboardRoute = 'home'; if(Auth::user()->hasRole('admin')) { $dashboardRoute = 'admin.dashboard'; } elseif(Auth::user()->hasRole('seller')) { $dashboardRoute = 'seller.dashboard'; } elseif(Auth::user()->hasRole('buyer')) { $dashboardRoute = 'buyer.dashboard'; } @endphp Go to Dashboard
@endguest

@foreach(($categories ?? collect())->take(8) as $category) {{ $category->name }} @endforeach View All
@auth
@csrf
@endauth