@extends('layouts.mobile') @section('title', 'Cart - Gletra') @push('styles') @endpush @section('content')
My Cart
@include('partials.cart-advice-panel')

{{ Auth::check() ? Auth::user()->name : 'Guest User' }} @if(Auth::check() && Auth::user()->email) {{ Auth::user()->email }} @endif

Select or add a delivery address before checkout.

Change
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(isset($cartItems) && $cartItems->count() > 0)
Cart Items ({{ $cartItems->count() }})
@foreach($cartItems as $item) @include('partials.cart-item', ['item' => $item, 'compact' => true]) @endforeach
@include('partials.cart-price-summary', [ 'cartItems' => $cartItems, 'total' => $total, 'pricing' => $pricing ?? null, 'decimals' => 2, 'showSecure' => false, ]) @else

Your cart is empty

Add products you love and checkout in a few taps.

Start Shopping
@endif @if(isset($relatedProducts) && $relatedProducts->count() > 0)

Suggested for You

@foreach($relatedProducts as $product)
{{ $product->name }}
{{ $product->name }}
₹{{ number_format($product->sale_price ?? $product->price, 0) }}
@endforeach
@endif @if(auth()->check() && isset($recentlyViewed) && $recentlyViewed->count() > 0)

Recently Viewed

View All
@foreach($recentlyViewed as $rv) @if($rv->product)
{{ $rv->product->name }}
{{ $rv->product->name }}
₹{{ number_format($rv->product->sale_price ?? $rv->product->price, 0) }}
@endif @endforeach
@endif
@if(isset($cartItems) && $cartItems->count() > 0) @php $meetsMinOrder = $pricing['meets_minimum_order'] ?? true; $minOrderAmount = $pricing['minimum_order_amount'] ?? 100; @endphp @push('mobile-fixed-footer')

Order Total

₹{{ number_format($total, 2) }}

@if($meetsMinOrder) Place Order @else @endif
@endpush @endif @endsection