@extends('layouts.app') @section('content')
 Continue Shopping

Your Basket ({{ cart_count() }} items)

@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
img-product
{{ $product->name }} @if(!empty($custom) && is_array($custom))
@foreach($custom as $key => $value) {{-- ✅ If Selected Options (nested) --}} @if($key === 'Selected Options' && is_array($value)) @foreach($value as $optionName => $optionData)
{{ $optionName }} : {{ $optionData['value'] ?? '' }}
@endforeach {{-- ✅ Normal array --}} @elseif(is_array($value))
{{ ucfirst($key) }} : {{ implode(', ', $value) }}
{{-- ✅ Normal string --}} @else
{{ ucfirst($key) }} : {{ $value }}
@endif @endforeach
@endif
£{{ number_format($price, 2) }}
- +
 Remove
£{{ number_format($total, 2) }}
Your cart is empty.

Summary

Subtotal ({{ cart_count() }} items) £{{ number_format($cartTotal, 2) }}
Shipping (Standard Delivery - Fixed) £0.00
Total incl. VAT £{{ number_format($cartTotal, 2) }}
@endsection