@extends('layouts.web.index') @php use Illuminate\Support\Str; @endphp @section('content') @include('layouts.web.header')

Shopping Cart

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

Shopping Cart ({{ $cartItems->count() }} {{ Str::plural('item', $cartItems->count()) }})

@foreach($cartItems as $item)
{{ $item->book->title }}
{{ $item->book->title }}

by {{ $item->book->author }}

₹{{ number_format($item->price, 2) }}
per item
₹{{ number_format($item->price * $item->quantity, 2) }}
@endforeach

Order Summary

Subtotal: ₹{{ number_format($total, 2) }}
Tax (8%): ₹{{ number_format($total * 0.08, 2) }}
Shipping: FREE

Total: ₹{{ number_format($total * 1.08, 2) }}
Proceed to Checkout
Secure checkout with Razorpay
@else

Your cart is empty

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

Browse Books
@endif
@include('layouts.web.footer') @endsection