@component('admin::emails.layout')
@lang('admin::app.emails.orders.inventory-source.title')

@lang('admin::app.emails.dear', ['admin_name' => $shipment->inventory_source->contact_name]),👋

@lang('admin::app.emails.orders.inventory-source.greeting', [ 'invoice_id' => $shipment->increment_id, 'order_id' => '#' . $shipment->order->increment_id . '', 'created_at' => core()->formatDate($shipment->order->created_at, 'Y-m-d H:i:s') ])

@lang('admin::app.emails.orders.inventory-source.summary')
@if ($shipment->order->shipping_address)
@lang('admin::app.emails.orders.shipping-address')
{{ $shipment->order->shipping_address->company_name ?? '' }}
{{ $shipment->order->shipping_address->name }}
{{ $shipment->order->shipping_address->address }}
{{ $shipment->order->shipping_address->postcode . " " . $shipment->order->shipping_address->city }}
{{ $shipment->order->shipping_address->state }}
---
@lang('admin::app.emails.orders.contact') : {{ $shipment->order->billing_address->phone }}
@lang('admin::app.emails.orders.shipping')
{{ $shipment->order->shipping_title }}
@lang('admin::app.emails.orders.carrier') : {{ $shipment->carrier_title }}
@lang('admin::app.emails.orders.tracking-number') : {{ $shipment->track_number }}
@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($shipment->order->payment->method); @endphp @if (! empty($additionalDetails))
{{ $additionalDetails->title }} :
{{ $additionalDetails->value }}
@endif
@endif @if ($shipment->order->billing_address)
@lang('admin::app.emails.orders.billing-address')
{{ $shipment->order->billing_address->company_name ?? '' }}
{{ $shipment->order->billing_address->name }}
{{ $shipment->order->billing_address->address }}
{{ $shipment->order->billing_address->postcode . " " . $shipment->order->billing_address->city }}
{{ $shipment->order->billing_address->state }}
---
@lang('admin::app.emails.orders.contact') : {{ $shipment->order->billing_address->phone }}
@lang('admin::app.emails.orders.payment')
{{ core()->getConfigData('sales.payment_methods.' . $shipment->order->payment->method . '.title') }}
@endif
@foreach ($shipment->items as $item) @endforeach
@lang('admin::app.emails.orders.sku') @lang('admin::app.emails.orders.name') @lang('admin::app.emails.orders.price') @lang('admin::app.emails.orders.qty')
{{ $item->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
@if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax') {{ core()->formatBasePrice($item->base_price_incl_tax) }} @elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both') {{ core()->formatBasePrice($item->base_price_incl_tax) }} @lang('admin::app.emails.orders.excl-tax') {{ core()->formatBasePrice($item->base_price) }} @else {{ core()->formatBasePrice($item->base_price) }} @endif {{ $item->qty }}
@endcomponent