@extends('layouts.desktop')
@section('title', 'Your Shopping Cart - Gletra')
@push('styles')
@endpush
@section('content')
@include('partials.cart-advice-panel')
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if($cartItems->count() > 0)
My Cart ({{ $cartItems->count() }} {{ Str::plural('item', $cartItems->count()) }})
@foreach($cartItems as $item)
@include('partials.cart-item', ['item' => $item, 'compact' => false])
@endforeach
@else
Your cart is empty
Explore our collection and add items to your cart.
Shop Now
@endif
@if(isset($relatedProducts) && $relatedProducts->count() > 0)
More Items to Consider
@foreach($relatedProducts as $product)
{{ $product->name }}
₹{{ number_format($product->sale_price ?? $product->price, 0) }}
@endforeach
@endif
@if(auth()->check() && isset($recentlyViewed) && $recentlyViewed->count() > 0)
@foreach($recentlyViewed as $rv)
@if($rv->product)
{{ $rv->product->name }}
₹{{ number_format($rv->product->sale_price ?? $rv->product->price, 0) }}
@endif
@endforeach
@endif
@endsection