← Back to orders
@if (!empty($brand['logo'])) {{ $brand['name'] }} {{-- Legal company name (Company & billing identity). A legal document must name the seller even when a logo is present — previously the name was suppressed whenever a logo existed. --}} @if (!empty($brand['name']))
{{ $brand['name'] }}
@endif @else

{{ $brand['name'] }}

@endif
@if ($brand['address'])
{{ $brand['address'] }}
@endif @if (!empty($brand['email']))
{{ $brand['email'] }}
@endif @if (!empty($brand['phone']))
{{ $brand['phone'] }}
@endif @if ($brand['tax_id'])
{{ $brand['tax_label'] ?: 'Tax ID' }}: {{ $brand['tax_id'] }}
@endif @if (!empty($brand['reg_no']))
{{ __('Reg. No:') }} {{ $brand['reg_no'] }}
@endif
{{ __('Invoice') }}
{{ $order->order_number }}
{{ optional($order->created_at)->format('M j, Y') }}
{{ $order->status }}
{{ __('Billed to') }}
{{ $order->customer_name ?: optional($order->user)->name }}
{{ $order->customer_email ?: optional($order->user)->email }}
@if ($order->billing_company)
{{ $order->billing_company }}
@endif @if ($order->billing_address)
{{ $order->billing_address }}
@endif @if ($order->billing_city || $order->billing_postal)
{{ trim($order->billing_city . ' ' . $order->billing_postal) }}
@endif @if ($order->billing_country)
{{ $order->billing_country }}
@endif @if ($order->billing_tax_id)
{{ __('Tax ID:') }} {{ $order->billing_tax_id }}
@endif
{{ __('Payment') }}
{{-- Payment-gateway name intentionally NOT shown to the buyer (a customer doesn't need to know which processor was used). --}} @if ($order->gateway_payment_id)
{{ __('Reference:') }} {{ $order->gateway_payment_id }}
@endif @if ($order->paid_at)
Paid on: {{ $order->paid_at->format('M j, Y H:i') }}
@endif
{{ __('Item') }} {{ __('Qty') }} {{ __('Amount') }}
{{ optional($order->package)->pname ?: 'Plan #' . $order->package_id }}
@if (optional($order->package)->subtitle)
{{ $order->package->subtitle }}
@endif @if ($order->package)
{{ $order->package->plan_duration }} {{ $order->package->plan_unit }}
@endif
1 {!! \App\Support\FormatSettings::formatIn( $order->amount + $order->discount_amount - $order->tax_amount, $order->currency, ) !!}
{{ __('Subtotal') }} {!! \App\Support\FormatSettings::formatIn( $order->amount + $order->discount_amount - $order->tax_amount, $order->currency, ) !!}
@if ($order->discount_amount > 0)
Discount {{ $order->coupon_code ? '· ' . $order->coupon_code : '' }} −{!! \App\Support\FormatSettings::formatIn($order->discount_amount, $order->currency) !!}
@endif @if ($order->tax_amount > 0)
{{ \App\Models\SystemSetting::get('checkout.tax_label', 'Tax') }} ({{ rtrim(rtrim(number_format($order->tax_rate, 2), '0'), '.') }}%) {!! \App\Support\FormatSettings::formatIn($order->tax_amount, $order->currency) !!}
@endif
{{ __('Total') }} {!! \App\Support\FormatSettings::formatIn($order->amount, $order->currency) !!}
{{-- Unambiguous currency line so "$" is never mistaken for S$ / A$ / etc. on a cross-border charge (the reported USD-vs-SGD dispute risk). --}}
{{ __('All amounts shown in') }} {{ strtoupper((string) $order->currency) }}.
@php // Support address = the configured billing/support email. NEVER // fabricate support@ — on an IP-only / unset install // that produced the bogus "support@139.99.88.136". If nothing is // configured, drop the "reply to …" clause rather than print junk. $supportEmail = $brand['email'] ?: (string) \App\Models\SystemSetting::get('support_email', ''); $refundDays = (int) \App\Models\SystemSetting::get('pricing.refund_days', 7); $thankLine = 'Thank you for your purchase. For support or refunds within ' . $refundDays . ' days' . ($supportEmail ? ', reply to ' . $supportEmail : '') . '.'; @endphp {{-- Redundant raw DB "Order ID: " removed — the invoice number above already identifies the order. --}}
{{ $thankLine }}