@extends('layouts.frontend.app') @section('content')
Back to Home

Your Shopping Cart

Review your items and proceed to checkout

Your Cart

@if(count($cartItems->where('type','cart')) > 0) @foreach($cartItems->where('type','cart') as $item)

{{ $item->product->title ?? 'No Name' }}

{{ $item->product->publisher_name }}

{{ $item->product->contributor_full_name_inverted }}

In Stock ({{ $item->product->available }})

@php $priceAmount = $item->product->price_amount; $discountPercent = $item->product->discount_price ?? 0; $finalPrice = $priceAmount - ($priceAmount * $discountPercent / 100); @endphp
₹{{ number_format($finalPrice * $item->quantity), 2 }}
-
+

@endforeach @else

Your cart is empty.

@endif

Saved for Later

@if(count($savedItems) > 0) @foreach($savedItems as $item)

{{ $item->product->title ?? 'No Name' }}

{{ $item->product->publisher_name }}

{{ $item->product->contributor_full_name_inverted }}

₹{{ number_format($item->product->price_amount),2 }}

@endforeach @else

No items saved for later.

@endif
@if(count($cartItems) > 0)

Order Summary

Items ({{ $cartItems->sum('quantity') }}) ₹{{number_format($subtotal),2}}

Total: ₹{{number_format($subtotal),2 }}
Continue Shopping
@endif
{{-- --}} @endsection