@extends('layouts.app') @section('content')
@forelse($cartItems as $item) @php $product = $item->product; $price = $item->custom_price ?? $product->price; $total = $price * $item->quantity; $custom = $item->custom_attributes; @endphp @empty @endforelse
Product Price Quantity Total
img-product
{{ $product->name }} @if(!empty($custom))
@foreach($custom as $key => $value)
{{ ucfirst($key) }}: @if(is_array($value)) {{ implode(', ', $value) }} @else {{ $value }} @endif
@endforeach
@endif Remove
£{{ number_format($price, 2) }}
- +
£{{ number_format($total, 2) }}
Your cart is empty.
Total: £{{ number_format($cartTotal, 2) }}

Taxes and shipping calculated at checkout

@endsection