@component('shop::emails.layout') @php $order = $sellerOrder->order; @endphp
@lang('marketplace::app.emails.seller.orders.created.title')

@lang('marketplace::app.emails.dear-seller'),👋

{!! trans('marketplace::app.emails.seller.orders.created.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.created.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->address1 }}
{{ $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->address1 }}
{{ $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) @endforeach @foreach ($sellerOrder->items as $orderItem) @php $item = $orderItem->item; @endphp @endforeach
@lang('marketplace::app.emails.seller.orders.'.$item)
{{ $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()->formatBasePrice($item->base_price) }} {{ $item->qty_ordered }}
@lang('marketplace::app.emails.seller.orders.subtotal') {{ core()->formatBasePrice($sellerOrder->base_sub_total) }}
@if ($sellerOrder->order->shipping_address)
@lang('marketplace::app.emails.seller.orders.shipping-handling') {{ core()->formatBasePrice(0) }}
@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->base_discount_amount) }}
@endif
@lang('marketplace::app.emails.seller.orders.grand-total') {{ core()->formatBasePrice($sellerOrder->base_grand_total - $sellerOrder->base_shipping_amount) }}
@endcomponent