@extends('layouts.app') @section('title', 'Checkout - Additional Design') @section('styles') @endsection @section('content')

Checkout

@if ($errors->any())
@endif
@csrf

Delivery Information

Note: Payment will be processed securely through Yoco. You'll be redirected to complete your card payment after confirming this order.

Order Summary

@foreach($items as $item)
{{ $item['product']->name }}{{ $item['is_sample'] ? ' - Sample' : '' }}
@php $stockCost = 0; $stockUnit = $item['type'] === 'wallpaper' ? '/m' : '/m²'; if (!$item['is_sample'] && $item['stock']) { $stockCost = $item['type'] === 'wallpaper' ? $item['stock']->cost_per_meter : $item['stock']->cost_per_m2; } @endphp
@if($item['is_sample']) Sample - Fixed Price: R{{ number_format(\App\Services\ShippingService::getSampleCost(), 2) }}
@elseif($item['stock']) {{ $item['stock']->name }}: R{{ number_format($stockCost, 2) }}{{ $stockUnit }}
@endif @if(!$item['is_sample']) @if($item['type'] === 'wallpaper') Length: {{ $item['length'] }}m @elseif($item['type'] === 'mural') Dimensions: {{ $item['width'] }}m × {{ $item['height'] }}m ({{ number_format($item['width'] * $item['height'], 2) }}m²) @endif @if($item['quantity'] > 1)
Quantity: {{ $item['quantity'] }} @endif @endif
R{{ number_format($item['subtotal'], 2) }}
@endforeach
Subtotal: R{{ number_format($total, 2) }}
{{ $shippingLabel }}: R{{ number_format($shippingFee, 2) }}
Total: R{{ number_format($grandTotal, 2) }}
← Back to Cart
@php $apiKey = config('services.google_places.api_key'); @endphp @if(!$apiKey)
⚠️ Configuration Issue: Google Places API key is not configured. Please add GOOGLE_PLACES_API_KEY to your .env file.
@endif @if($apiKey) @endif @endsection