@if (is_null($emailLogo)) {{ config('app.name') }} @else {{ config('app.name') }} @endif

Thanks for using {{ config('app.name') }}. This is an invoice for your recent purchase.

Payment Method: {{ ucfirst($order->transactions->method) }}

# {{ $order['id'] }}

{{ $order['created_at'] }}

@foreach ($order->orderProducts->mergeRecursive($order->orderVariations) as $orderProduct) @endforeach

Title

Quantity

Price

{{ isset($orderProduct->product_variant_id) && !empty($orderProduct->product_variant_id) ? generateVariantProductData($orderProduct->variant->product, $orderProduct->product_variant_id, $orderProduct->variant->productValues->pluck('option_value_id')->toArray())['name'] : optional($orderProduct->product)->getTranslation('title', 'ar') }}
@if ($orderProduct->variant) {{ optional(optional($orderProduct->variant)->product)->getTranslation('title', 'en') }} @else {{ optional($orderProduct->product)->getTranslation('title', 'en') }} @endif
{{ $orderProduct->qty }} {{ $orderProduct->sale_price }}

SubTotal

{{ $order['subtotal'] }}

Delivery

{{ $order['shipping'] }}

Total

{{ $order['total'] }}