@extends('layouts.base') @section('title', 'Thank You - Order Received') @php // Favicon fallback logic if (isset($salesPage)) { $faviconPath = $salesPage->getFaviconPath() ?? $salesPage->user->company_logo ?? asset('favicon.ico'); } else { $faviconPath = asset('favicon.ico'); } @endphp @push('scripts') @if(isset($salesPage) && isset($order)) @if($salesPage->facebook_pixel_id) @endif @if($salesPage->google_analytics_id) @endif @if($salesPage->tiktok_pixel_id) @endif @endif @endpush @section('body')

Thank You!

Your order has been successfully placed

@if(isset($order))

Order Number

{{ $order->order_number }}

Awaiting Payment

Customer Information

Name

@php // Support both formats: 'name' or 'first_name' + 'last_name' $customerName = $order->billing['name'] ?? trim(($order->billing['first_name'] ?? '') . ' ' . ($order->billing['last_name'] ?? '')); @endphp

{{ $customerName ?: 'N/A' }}

Phone Number

{{ $order->billing['phone'] ?? 'N/A' }}

@if(!empty($order->billing['email']))

Email

{{ $order->billing['email'] }}

@endif

Order Items

@foreach($order->line_items as $item)

{{ $item['name'] }}

Quantity: {{ $item['quantity'] }} × RM {{ number_format($item['price'], 2) }}

RM {{ number_format($item['price'] * $item['quantity'], 2) }}

@endforeach
Total Amount RM {{ number_format($order->total, 2) }}

Next Steps

@if($order->payment_method === 'cod')
1

Our team will contact you via WhatsApp shortly

2

(COD) Pay to courier when you receive the product

@else
1

Our team will contact you via WhatsApp shortly

2

Payment information will be sent to you

3

Please make payment and send proof of payment

4

Your order will be processed after payment confirmation

@endif
@else

Your order has been received and is being processed.

@endif
@if(isset($salesPage)) ← Back to Sales Page @else ← Back to Home @endif
@endsection