@component('shop::emails.layouts.master')
@if (core()->getConfigData('general.design.admin_logo.logo_image')) {{ config('app.name') }} @else {{ config('app.name') }} @endif
{{ __('shop::app.mail.order.heading') }}

{{ __('shop::app.mail.order.dear-admin', ['admin_name' => core()->getAdminEmailDetails()['name']]) }},

{!! __('shop::app.mail.order.greeting-admin', [ 'order_id' => '#' . $order->increment_id . '', 'created_at' => $order->created_at ]) !!}

{{ __('shop::app.mail.order.summary') }}
@if ($order->shipping_address)
{{ __('shop::app.mail.order.shipping-address') }}
{{ $order->shipping_address->company_name ?? '' }}
{{ $order->shipping_address->name }}
{{ $order->shipping_address->address1 }}
{{ $order->shipping_address->postcode . " " . $order->shipping_address->city }}
{{ $order->shipping_address->state }}
{{ core()->country_name($order->shipping_address->country) }}
---
{{ __('shop::app.mail.order.contact') }} : {{ $order->shipping_address->phone }}
{{ __('shop::app.mail.order.shipping') }}
{{ $order->shipping_title }}
@endif @if ($order->billing_address)
{{ __('shop::app.mail.order.billing-address') }}
{{ $order->billing_address->company_name ?? '' }}
{{ $order->billing_address->name }}
{{ $order->billing_address->address1 }}
{{ $order->billing_address->postcode . " " . $order->billing_address->city }}
{{ $order->billing_address->state }}
{{ core()->country_name($order->billing_address->country) }}
---
{{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
{{ __('shop::app.mail.order.payment') }}
{{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($order->payment->method); @endphp @if (! empty($additionalDetails))
{{ $additionalDetails['title'] }}
{{ $additionalDetails['value'] }}
@endif
@endif
@foreach ($order->items as $item) @endforeach
{{ __('shop::app.customer.account.order.view.SKU') }} {{ __('shop::app.customer.account.order.view.product-name') }} {{ __('shop::app.customer.account.order.view.price') }} {{ __('shop::app.customer.account.order.view.qty') }}
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
{{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ $item->qty_ordered }}
{{ __('shop::app.mail.order.subtotal') }} {{ core()->formatBasePrice($order->base_sub_total) }}
{{ __('shop::app.mail.order.shipping-handling') }} {{ core()->formatBasePrice($order->base_shipping_amount) }}
@foreach (Webkul\Tax\Helpers\Tax::getTaxRatesWithAmount($order, true) as $taxRate => $baseTaxAmount )
{{ __('shop::app.mail.order.tax') }} {{ $taxRate }} % {{ core()->formatBasePrice($baseTaxAmount) }}
@endforeach @if ($order->discount_amount > 0)
{{ __('shop::app.mail.order.discount') }} {{ core()->formatBasePrice($order->base_discount_amount) }}
@endif
{{ __('shop::app.mail.order.grand-total') }} {{ core()->formatBasePrice($order->base_grand_total) }}

{!! __('shop::app.mail.order.help', [ 'support_email' => '' . config('mail.admin.address') . '' ]) !!}

{{ __('shop::app.mail.order.thanks') }}

@endcomponent