{{-- resources/views/public/confirmation-ecommerce.blade.php --}} @php // Get theme fonts from active preset $headingFont = 'Inter'; $bodyFont = 'Inter'; if ($website && $website->activeTheme && $website->activeTheme->theme) { $defaultPreset = $website->activeTheme->theme->presets()->where('is_default', true)->first(); if ($defaultPreset && isset($defaultPreset->font_scheme)) { $headingFont = $defaultPreset->font_scheme['heading'] ?? 'Inter'; $bodyFont = $defaultPreset->font_scheme['body'] ?? 'Inter'; } } // Build Google Fonts URL dynamically $fontsToLoad = []; if ($headingFont !== 'Default') { $fontsToLoad[] = str_replace(' ', '+', $headingFont) . ':wght@300;400;500;600;700;800;900'; } if ($bodyFont !== 'Default' && $bodyFont !== $headingFont) { $fontsToLoad[] = str_replace(' ', '+', $bodyFont) . ':wght@300;400;500;600;700;800;900'; } $googleFontsUrl = 'https://fonts.googleapis.com/css2?family=' . implode('&family=', $fontsToLoad) . '&display=swap'; @endphp Order Confirmation - {{ $website->name }} @if($website->theme) @endif @if(count($fontsToLoad) > 0) @endif @php $headerSection = $website->globalSections()->where('type', 'header')->where('is_default', true)->first(); @endphp @if($headerSection) @if($headerSection->builder_data)
{!! $headerSection->renderBuilderContent() !!}
@elseif($headerSection->builder_v2_data)
@include('global-sections.render-v2', ['section' => $headerSection])
@endif @endif
@if(false) @if($website->menus->count() > 0) @php $mainMenu = $website->menus->where('location', 'main')->first() ?? $website->menus->first(); @endphp @if($mainMenu && $mainMenu->items->count() > 0) @endif @endif @endif
@if(session('success')) @endif @if(request()->query('success')) @endif @if(request()->query('pending')) @endif

Order Confirmed!

Thank you for your order. We've received your order and will process it shortly.

Order #{{ $order->order_number }}
Order Information
Order Number:
{{ $order->order_number }}
Order Date:
{{ $order->created_at->format('F j, Y \a\t g:i A') }}
Payment Method:
@switch($order->payment_method) @case('chipin') ChipIn @break @case('bank_transfer') Bank Transfer @break @case('cash_on_delivery') Cash on Delivery @break @default {{ ucfirst(str_replace('_', ' ', $order->payment_method)) }} @endswitch
Payment Status:
{{ ucfirst($order->payment_status) }}
Order Status:
{{ ucfirst($order->status) }}
@if($order->payment_reference)
Payment Reference:
{{ $order->payment_reference }}
@endif
Customer Information
Name:
{{ $order->customer_name }}
Email:
{{ $order->customer_email }}
@if($order->customer_phone)
Phone:
{{ $order->customer_phone }}
@endif
Addresses
Billing Address
{{ $order->formatted_billing_address }}
Shipping Address
{{ $order->formatted_shipping_address }}
Order Items
@foreach($order->items as $item) @endforeach
Product Unit Price Quantity Total
@if($item->product && $item->product->main_image) {{ $item->display_name }} @else
@endif
{{ $item->display_name }}
@if($item->product_sku) SKU: {{ $item->product_sku }} @endif @if($item->variation_details)
{{ $item->variation_details }}
@endif
{{ $website->getCurrencySymbol() }} {{ number_format($item->unit_price, 2) }} {{ $item->quantity }} {{ $website->getCurrencySymbol() }} {{ number_format($item->total_price, 2) }}
@if($order->notes)
Order Notes

{{ $order->notes }}

@endif
Order Summary
Subtotal: {{ $website->getCurrencySymbol() }} {{ number_format($order->subtotal, 2) }}
Shipping: {{ $website->getCurrencySymbol() }} {{ number_format($order->shipping_amount, 2) }}
Tax: {{ $website->getCurrencySymbol() }} {{ number_format($order->tax_amount, 2) }}
@if($order->discount_amount > 0)
Discount: -{{ $website->getCurrencySymbol() }} {{ number_format($order->discount_amount, 2) }}
@endif
Total: {{ $website->getCurrencySymbol() }} {{ number_format($order->total_amount, 2) }}
Continue Shopping
What's Next?
Order confirmed and being prepared
Your order will be packed carefully
We'll send you tracking information
Delivery within 3-5 business days
Need Help?

If you have any questions about your order, please contact our support team.

support@{{ $website->subdomain }}.com
{{ $website->getSetting('contact.phone', '+60 12-345 6789') }}
@php $footerSection = $website->globalSections()->where('type', 'footer')->where('is_default', true)->first(); @endphp @if($footerSection) @if($footerSection->builder_data) @elseif($footerSection->builder_v2_data) @endif @endif