@php use App\Models\Information; use App\Models\Category; $information = Information::first(); $categories = Category::where('parent_id', null)->get(); @endphp সমস্ত ক্যাটাগরি @foreach($categories as $cat) {{ $cat->name }} @if($cat->subcats->count()) @else @endif @if($cat->subcats->count()) @foreach($cat->subcats as $sub) {{ $sub->name}} @endforeach @else @endif @endforeach {{ getTotalCart()}} Cart {{ getTotalCart()}} @guest @else {{ auth()->user()->first_name ?auth()->user()->first_name.' '.auth()->user()->last_name:auth()->user()->mobile }} @endguest @foreach($categories as $key=>$cat) @if(($cat->subcats->count() > 0)) {{ $cat->name}} @else {{ $cat->name}} @endif @if($cat->subcats->count()) @foreach($cat->subcats as $sub) {{ $sub->name}} @endforeach @endif @endforeach @if(getTotalCart() > 1) {{ getTotalCart()}} items @else {{ getTotalCart()}} item @endif ৳ {{ getTotalAmount() }} @if($information->whats_active == '1') @endif
@if(($cat->subcats->count() > 0)) {{ $cat->name}} @else {{ $cat->name}} @endif
@if(getTotalCart() > 1) {{ getTotalCart()}} items @else {{ getTotalCart()}} item @endif
৳ {{ getTotalAmount() }}