@extends('layouts.front_layout') @section('title', 'Your Cart | Edexcel Papers') @section('content')
← Continue shopping

Your shopping cart

@csrf
@if ($cartItems->isEmpty())

Your cart is empty

Browse our latest books and add your favourites to get started.

Browse books
@else
@foreach ($cartItems as $item)
@if ($item->book->cover_image) Cover of {{ $item->book->title }} @else {{ $item->book->title }} @endif
{{ $item->book->category?->name }}

{{ $item->book->title }}

{{ $item->quantity }} × Rs. {{ number_format((float) $item->unit_price, 2) }}

Rs. {{ number_format($item->quantity * (float) $item->unit_price, 2) }}
@csrf @method('PATCH')
{{ $item->quantity }}
@csrf @method('PATCH')
@csrf @method('DELETE')
@endforeach
@endif
@endsection