@if (is_null($emailLogo)) {{ config('app.name') }} @else {{ config('app.name') }} @endif
Payment Method: {{ ucfirst($order->transactions->method) }}
User: @if ($order->user) {{ $order->user->id . ' / ' . $order->user->name }} @elseif($order->orderAddress) {{ $order->orderAddress->mobile }}
{{ $order->orderAddress->email }} @else --- @endif

# {{ $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

{{ $extraData['subtotal'] }}

Delivery

{{ $order['shipping'] }}

Total

{{ floatval($extraData['subtotal']) + floatval($order['shipping']) }}