@php($labels = $doc['labels']) @php($rtl = $doc['direction'] === 'rtl') @php($ar = $doc['locale'] === 'ar')
@if (! empty($doc['store']['email_logo_cid']))
{{ $doc['store']['name'] }}
@endif
{{ $doc['store']['name'] }}

{{ $doc['document_title'] }}

{{ $labels['order_number'] }}: {{ $doc['order']['number'] }}
@if (! empty($doc['order']['placed_at']))
{{ $labels['order_date'] }}: {{ $doc['order']['placed_at'] }}
@endif

{{ $ar ? 'مرحبًا' : 'Hello' }} {{ $doc['customer']['name'] ?? '' }}{{ $ar ? '،' : ',' }}

@if ($doc['order']['payment_status_raw'] === 'cod_pending') {{ $ar ? 'تم استلام طلبك بنجاح. الدفع عند الاستلام، والمبلغ يُحصّل عند التسليم. تجد فاتورة الطلب بصيغة PDF مرفقة بهذه الرسالة.' : 'Your order has been received. Payment is cash on delivery and will be collected when the order arrives. Your order invoice is attached as a PDF.' }} @elseif ($doc['order']['payment_status_raw'] === 'paid') {{ $ar ? 'تم تأكيد الدفع لطلبك بنجاح. تجد الفاتورة بصيغة PDF مرفقة بهذه الرسالة.' : 'Payment for your order has been confirmed. Your invoice is attached as a PDF.' }} @else {{ $ar ? 'تجد أدناه تفاصيل طلبك وحالة الدفع، وفاتورة الطلب بصيغة PDF مرفقة بهذه الرسالة.' : 'Your order details and payment status are below. Your order invoice is attached as a PDF.' }} @endif

{{ $labels['payment_status'] }}
{{ $doc['order']['payment_status'] }}
{{ $labels['grand_total'] }}
{{ $doc['totals']['grand_total'] }}

{{ $labels['items'] }}

@foreach ($doc['items'] as $item) @endforeach
{{ $labels['product'] }} {{ $labels['qty'] }} {{ $labels['line_total'] }}
@if (! empty($item['email_image_cid'])) @endif
{{ $item['name'] }}
{{ $item['name'] }}
{{ $labels['sku'] }}: {{ $item['sku'] ?: '—' }}
@if (! empty($item['options']))
{{ $item['options'] }}
@endif
{{ $labels['unit_price'] }}: {{ $item['unit_price'] }}
@if ((float) $item['discount'] > 0)
{{ $labels['discount'] }}: {{ $item['discount'] }}
@endif
{{ $item['quantity'] }} {{ $item['line_total'] }}
@foreach (['subtotal' => 'subtotal', 'discount_total' => 'discount', 'shipping_amount' => 'shipping'] as $key => $label) @endforeach @if (! empty($doc['totals']['show_tax']) && ! empty($doc['tax']['enabled'])) @endif @if (! empty($doc['totals']['show_refunded'])) @endif
{{ $labels[$label] }}{{ $doc['totals'][$key] }}
{{ $labels['tax'] }}{{ $doc['totals']['tax_amount'] }}
{{ $labels['grand_total'] }}{{ $doc['totals']['grand_total'] }}
{{ $labels['paid_amount'] }}{{ $doc['totals']['paid_amount'] }}
{{ $labels['refunded_amount'] }}{{ $doc['totals']['refunded_amount'] }}
{{ $labels['outstanding_amount'] }}{{ $doc['totals']['outstanding_amount'] }}

{{ $ar ? 'شكرًا لتسوّقك معنا.' : 'Thank you for shopping with us.' }}

{{ $doc['store']['name'] }} @if (! empty($doc['store']['support_phone']))
{{ $doc['store']['support_phone'] }}
@endif @if (! empty($doc['store']['support_email']))
{{ $doc['store']['support_email'] }}
@endif