@lang('shop::app.emails.orders.created.title')
@lang('shop::app.emails.dear', ['customer_name' => $order->customer_full_name]),👋
{!! __('shop::app.emails.orders.created.greeting', [
'order_id' => '#' . $order->increment_id . '',
'created_at' => core()->formatDate($order->created_at, 'Y-m-d H:i:s')
])
!!}
@if ($order->shipping_address)
@lang('shop::app.emails.orders.shipping-address')
{{ $order->shipping_address->company_name ?? '' }}
{{ $order->shipping_address->name }}
{{ $order->shipping_address->address }}
{{ $order->shipping_address->postcode . " " . $order->shipping_address->city }}
{{ $order->shipping_address->state }}
---
@lang('shop::app.emails.orders.contact') : {{ $order->billing_address->phone }}
@lang('shop::app.emails.orders.shipping')
{{ $order->shipping_title }}
@endif
@if ($order->billing_address)
@lang('shop::app.emails.orders.billing-address')
{{ $order->billing_address->company_name ?? '' }}
{{ $order->billing_address->name }}
{{ $order->billing_address->address }}
{{ $order->billing_address->postcode . " " . $order->billing_address->city }}
{{ $order->billing_address->state }}
---
@lang('shop::app.emails.orders.contact') : {{ $order->billing_address->phone }}
@lang('shop::app.emails.orders.payment')
{{ core()->getConfigData('sales.payment_methods.' . $order->payment->method . '.title') }}
@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($order->payment->method); @endphp
@if (! empty($additionalDetails))
{{ $additionalDetails['title'] }}
{{ $additionalDetails['value'] }}
@endif
@endif
@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')
@lang('shop::app.emails.orders.subtotal')
{{ core()->formatPrice($order->sub_total, $order->order_currency_code_incl_tax) }}
@elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')
@lang('shop::app.emails.orders.subtotal-excl-tax')
{{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}
@lang('shop::app.emails.orders.subtotal-incl-tax')
{{ core()->formatPrice($order->sub_total, $order->order_currency_code_incl_tax) }}
@else
@lang('shop::app.emails.orders.subtotal')
{{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}
@endif
@if ($order->shipping_address)
@if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax')
@lang('shop::app.emails.orders.shipping-handling')
{{ core()->formatPrice($order->shipping_amount_incl_tax, $order->order_currency_code) }}
@elseif (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')
@lang('shop::app.emails.orders.shipping-handling-excl-tax')
{{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}
@lang('shop::app.emails.orders.shipping-handling-incl-tax')
{{ core()->formatPrice($order->shipping_amount_incl_tax, $order->order_currency_code) }}
@else
@lang('shop::app.emails.orders.shipping-handling')
{{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}
@endif
@endif
@lang('shop::app.emails.orders.tax')
{{ core()->formatPrice($order->tax_amount, $order->order_currency_code) }}
@if ($order->discount_amount > 0)
@lang('shop::app.emails.orders.discount')
{{ core()->formatPrice($order->discount_amount, $order->order_currency_code) }}
@endif
@lang('shop::app.emails.orders.grand-total')
{{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}
@endcomponent