@extends('mails.order-place-frame', ['order' => $order]) @section('order-detail')
{{ text('order_code') }} {{ $order->id }}
{{ text('subtotals') }} {{ get_currency_format($order->sub_total) }}
{{ text('tax') }} {{ get_currency_format($order->tax) }}
{{ text('total') }} {{ get_currency_format($order->total_money) }}
@if ($order->ship_to_different_address)

{{ text('billing_detail') }}

{{ text('checkout_billing_name') }} {{ $order->billing->name }}
{{ text('checkout_billing_phone_number') }} {{ $order->billing->phone_number }}
{{ text('checkout_billing_email') }} {{ $order->billing->email }}
{{ text('checkout_billing_address') }} {{ $order->billing->getFullAddressText() }}


{{ text('shipping_and_payment_information') }}

{{ text('checkout_billing_name') }} {{ $order->shipping->name }}
{{ text('checkout_billing_phone_number') }} {{ $order->shipping->phone_number }}
{{ text('checkout_billing_email') }} {{ $order->shipping->email }}
{{ text('checkout_billing_address') }} {{ $order->shipping->getFullAddressText() }}
@else

{{ text('shipping_and_payment_information') }}

{{ text('checkout_billing_name') }} {{ $order->shipping->name }}
{{ text('checkout_billing_phone_number') }} {{ $order->shipping->phone_number }}
{{ text('checkout_billing_email') }} {{ $order->shipping->email }}
{{ text('checkout_billing_address') }} {{ $order->shipping->getFullAddressText() }}
@endif

{{ text('order_details') }}

@foreach ($order->details as $item) @endforeach
{{ text('image') }} {{ text('product') }} {{ text('attributes') }} {{ text('quantity') }} {{ text('total') }}
{{ $item->product_name }} {{ $item->product_name }} @if ($item->attributes && count($item->attributes)) @foreach ($item->attributes as $attr)
{{ $attr->label ?? $attr->name }}: {{ $attr->text }}
@endforeach @endif
{{ $item->quantity }} {{ $item->getTotalFormat() }}
@endsection