✓
Order Confirmed!
Thank you for your purchase. Your order has been successfully received.
Order Number:
{{ $order->order_number }}
Customer Name:
{{ $order->customer_name }}
Email:
{{ $order->customer_email }}
Shipping Address:
{{ $order->shipping_address }}
Order Status:
{{ $order->status }}
Order Items
@foreach($order->items as $item)
{{ $item->product->name }}{{ $item->is_sample ? ' - Sample' : '' }}
@php
$stock = $item->printStock;
$stockText = $stock ? "{$stock->name}" : "Standard";
$stockCost = 0;
if (!$item->is_sample && $stock) {
$stockCost = $item->type === 'wallpaper' ? $stock->cost_per_meter : $stock->cost_per_m2;
}
@endphp
@if($item->is_sample)
Sample - Fixed Price: R{{ number_format(\App\Services\ShippingService::getSampleCost(), 2) }}
@elseif($item->type === 'wallpaper')
Length: {{ $item->length }}m | Finish: {{ $stockText }}
Stock Cost: R{{ number_format($stockCost, 2) }}/m
@elseif($item->type === 'mural')
Dimensions: {{ $item->width }}m × {{ $item->height }}m ({{ number_format($item->width * $item->height, 2) }}m²) | Finish: {{ $stockText }}
Stock Cost: R{{ number_format($stockCost, 2) }}/m²
@else
Price: R{{ number_format($stockCost, 2) }} per unit
@endif
R{{ number_format(
$item->is_sample
? \App\Services\ShippingService::getSampleCost() * $item->quantity
: $item->quantity * (
$item->type === 'wallpaper'
? $stockCost * $item->length
: ($item->type === 'mural'
? $stockCost * $item->width * $item->height
: $stockCost
)
),
2
) }}
@endforeach
Subtotal:
R{{ number_format($order->total, 2) }}
@if($order->shipping_fee)
Shipping:
R{{ number_format($order->shipping_fee, 2) }}
@endif
Order Total:
R{{ number_format($order->total + ($order->shipping_fee ?? 0), 2) }}