@php $item = Cache::get('site_status'); $ecomm_setting = $item ? json_decode($item) : null; @endphp @if(Auth::user()) {{ Auth::user()->name??'Dashboard' }} @else login @endif shopping_cart {{ getTotalCart()}} Home SHOP PRODUCT @foreach($cats as $cat) @php $count=$cat->sub_categories->count(); @endphp {{ $cat->name}} @if($count) @foreach($cat->sub_categories as $sub) {{$sub->name}} @endforeach @endif @endforeach search Search @if(Auth::user()) {{ Auth::user()->name??'Dashboard' }} @else Login @endif shopping_cart {{ getTotalCart()}}