@component('admin::emails.layout')
@php
$order = $sellerOrder->order;
@endphp
@lang('marketplace::app.emails.seller.orders.canceled.title')
@lang('marketplace::app.emails.dear', ['customer_name' => $order->customer_full_name]),👋
{!! __('marketplace::app.emails.seller.orders.canceled.greeting', [
'order_id' => '#' . $order->increment_id . '',
'created_at' => core()->formatDate($order->created_at, 'Y-m-d H:i:s')
])
!!}
@lang('marketplace::app.emails.seller.orders.canceled.summary')
@if ($order->shipping_address)
@lang('marketplace::app.emails.seller.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('marketplace::app.emails.seller.orders.contact') : {{ $order->billing_address->phone }}
@lang('marketplace::app.emails.seller.orders.shipping')
{{ $order->shipping_title }}
@endif
@if ($order->billing_address)
@lang('marketplace::app.emails.seller.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('marketplace::app.emails.seller.orders.contact') : {{ $order->billing_address->phone }}
@lang('marketplace::app.emails.seller.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
@foreach (['sku', 'name', 'price', 'qty'] as $item)
|
@lang('marketplace::app.emails.seller.orders.' . $item)
|
@endforeach
@foreach ($sellerOrder->items as $orderItem)
@php
$item = $orderItem->item;
@endphp
|
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }}
|
{{ $item->name }}
@if (isset($orderItem->item->additional['attributes']))
@foreach ($orderItem->item->additional['attributes'] as $attribute)
{{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
|
{{ core()->formatBasePrice($orderItem->item->base_price) }}
|
{{ $item->qty_canceled }}
|
@endforeach
@lang('marketplace::app.emails.seller.orders.subtotal')
{{ core()->formatBasePrice($sellerOrder->order->base_sub_total) }}
@if ($sellerOrder->order->shipping_address)
@lang('marketplace::app.emails.seller.orders.shipping-handling')
{{ core()->formatBasePrice($sellerOrder->order->base_shipping_amount) }}
@endif
@foreach (\Webkul\Tax\Facades\Tax::getTaxRatesWithAmount($sellerOrder->order, false) as $taxRate => $taxAmount )
@lang('marketplace::app.emails.seller.orders.tax') {{ $taxRate }} %
{{ core()->formatBasePrice($taxAmount) }}
@endforeach
@if ($sellerOrder->order->discount_amount > 0)
@lang('marketplace::app.emails.seller.orders.discount')
{{ core()->formatBasePrice($sellerOrder->order->base_discount_amount) }}
@endif
@lang('marketplace::app.emails.seller.orders.grand-total')
{{ core()->formatBasePrice($sellerOrder->order->base_grand_total) }}
@endcomponent