@extends('store.layouts.app') @section('title', 'Cart') @section('meta_description', 'Your cart – ' . ($store_name ?? config('app.name'))) @section('content')
{{-- Step Indicator --}}

Shopping Cart

@if($cart->items->isEmpty())

Your cart is empty

Looks like you haven't added anything to your cart yet.

Start Shopping
@else
{{-- Cart Items --}}
@foreach($cart->items as $item)
@php $img = $item->product->images->sortBy('sort_order')->first(); $imgUrl = \App\Helpers\ImageHelper::urlOrPlaceholder($img->image_path ?? null, 'https://images.unsplash.com/photo-1542838132-92c53300491e?w=200'); @endphp {{ $item->product->name }}
{{ $item->product->name }} @if($item->variant)

{{ $item->variant->name }}

@endif

{{ $currency_symbol }}{{ number_format($item->price, 0) }} each

@csrf @method('PUT')
@csrf @method('DELETE')

{{ $currency_symbol }}{{ number_format($item->subtotal, 0) }}

{{ $item->quantity }} × {{ $currency_symbol }}{{ number_format($item->price, 0) }}

@endforeach
{{-- Order Summary --}}

Order Summary

Subtotal ({{ $cart->items->sum('quantity') }} items) {{ $currency_symbol }}{{ number_format($cart->subtotal, 0) }}
Delivery Charges FREE
Total {{ $currency_symbol }}{{ number_format($cart->subtotal, 0) }}
@auth('web') Proceed to Checkout @else Login to Checkout @endauth @guest('web')

You'll be asked to log in when you proceed

@endguest
@csrf @method('DELETE')
{{-- Trust Badges --}}
Secure Payment
Free Delivery
Easy Returns
@endif
@push('scripts') @endpush @endsection