@vite(['resources/css/app.css', 'resources/js/app.js']) @stack('styles')
Free shipping on orders over $99
@auth
My Account
@if(auth()->user()->isVendor())
Vendor Dashboard
@endif @if(auth()->user()->isAdmin())
Admin Panel
@endif
@csrf
Logout
@else
Login
Register
@endauth
AutoParts
Search
@auth
@endauth
@php $cartCount = \App\Models\Cart::where('user_id', auth()->id() ?? 0)->orWhere('session_id', session()->getId())->count(); @endphp @if($cartCount > 0)
{{ $cartCount }}
@endif
Home
All Parts
Shop by Car
@foreach(\App\Models\Category::active()->whereNull('parent_id')->orderBy('sort_order')->take(6)->get() as $cat)
{{ $cat->name }}
@endforeach @guest
Sell on AutoParts
@endguest
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('warning'))
{{ session('warning') }}
@endif
@yield('content')
@stack('scripts')