@if (!empty($setting->logo_header)) logo @endif

{{ $subject ?? '' }}

{{ $data['no'] ?? '-' }}
{{ $data['status_text'] ?? '' }}
{{ $data['payment']['name'] ?? '-' }}
{{ str_date($data['payment']['date'] ?? '', 'd m y H:i') }}
@if (!empty($data['items'])) @foreach ($data['items'] as $k => $item) {{-- --}} @endforeach @endif @if (!empty($data['discount'])) @endif @if (!empty($data['vat']['total'])) @endif @if (!empty($data['wht']['total'])) @endif @if (!empty($data['total_shipping_fee'])) @endif
# Product Quantity Price
{{ $loop->iteration }}

{{ $item['name'] ?? '' }}

{!! str_implode( ' ', 'SKU : ' . $item['sku'] ?? '', 'Color : ' . ($item['color']['name'] ?? '-'), 'Size : ' . ($item['size']['name'] ?? '-'), ) !!}
Remark : {{ $item['category']['name'] ?? '' }}

{{ number_format($item['price'] ?? 0) }}THB

@if ($item['original'] > $item['price']) {{ number_format($item['original'] ?? 0) }}THB @endif
{{ number_format($item['quantity'] ?? 0) }} {{ number_format($item['total'] ?? 0) }} THB
{{ $text['subtotal'] ?? 'Sub Total' }} {{ number_format($data['subtotal'] ?? 0, 2) }}
Coupon/Discount : {{ number_format($data['discount'] ?? 0, 2) }}
VAT : {{ number_format($data['vat']['total'] ?? 0, 2) }}
Withholding tax : {{ number_format($data['wht']['total'] ?? 0, 2) }}
Shipping Fee : {{ number_format($data['total_shipping_fee'] ?? 0, 2) }}
Total Amount : {{ number_format($data['total_amount'] ?? 0, 2) }}
Order Detail