New Order Notification

A new order has been placed on your website.

Order Details

Order #: {{ $invoiceNumber ?? 'N/A' }}

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

Email: {{ $customerEmail ?? 'N/A' }}

Order Total: $ {{ isset($grandTotal) ? number_format($grandTotal, 2) : '0.00' }}

Order Date: {{ $orderDate ?? 'N/A' }}

Shipping Address

@if(is_array($shippingAddress ?? null)) {!! nl2br(e( ($shippingAddress['name'] ?? '') . "\n" . ($shippingAddress['company'] ?? '') . "\n" . ($shippingAddress['address1'] ?? '') . "\n" . ($shippingAddress['address2'] ?? '') . "\n" . ($shippingAddress['city'] ?? '') . ', ' . ($shippingAddress['province_code'] ?? '') . ' ' . ($shippingAddress['postal_code'] ?? '') . "\n" . ($shippingAddress['country_code'] ?? '') . "\n" . 'Phone: ' . ($shippingAddress['phone'] ?? 'N/A') . "\n" . 'Email: ' . ($shippingAddress['email'] ?? 'N/A') )) !!} @else {{ $shippingAddress ?? 'No shipping address provided' }} @endif

Order Items

@forelse($cartItems ?? [] as $item) @empty @endforelse @php $shipping = $shipping ?? 0; $tax = $tax ?? 0; $subtotal = isset($grandTotal) ? ($grandTotal - $shipping - $tax) : 0; @endphp @if(($shipping ?? 0) > 0) @endif @if(($tax ?? 0) > 0) @endif
Product Quantity Price
{{ $item['name'] ?? 'Unknown Product' }} {{ $item['quantity'] ?? 0 }} ${{ isset($item['price']) ? number_format($item['price'], 2) : '0.00' }}
No items in this order
Subtotal: ${{ number_format($subtotal, 2) }}
Shipping: ${{ number_format($shipping, 2) }}
Tax: ${{ number_format($tax, 2) }}
Total: ${{ isset($grandTotal) ? number_format($grandTotal, 2) : '0.00' }}

This is an automated notification. Please do not reply to this email.

© {{ date('Y') }} {{ config('app.name') ?? 'Upsence' }}. All rights reserved.