@component('store::emails.layout')
@lang('store::app.emails.orders.shipped.title')

@lang('store::app.emails.dear', ['customer_name' => $shipment->order->customer_full_name]),👋

@lang('store::app.emails.orders.shipped.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('store::app.emails.orders.shipped.summary')
@if ($shipment->order->shipping_address)
@lang('store::app.emails.orders.shipping-address')
{{ $shipment->order->shipping_address->company_name ?? '' }}
{{ $shipment->order->shipping_address->name }}
{{ $shipment->order->shipping_address->address1 }}
{{ $shipment->order->shipping_address->postcode . " " . $shipment->order->shipping_address->city }}
{{ $shipment->order->shipping_address->state }}
---
@lang('store::app.emails.orders.contact') : {{ $shipment->order->billing_address->phone }}
@lang('store::app.emails.orders.shipping')
{{ $shipment->order->shipping_title }}
@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($shipment->order->payment->method); @endphp @if (! empty($additionalDetails))
@lang('store::app.emails.orders.carrier') : {{ $shipment->carrier_title }}
@lang('store::app.emails.orders.tracking-number', ['tracking_number' => $shipment->track_number])
@endif
@endif @if ($shipment->order->billing_address)
@lang('store::app.emails.orders.billing-address')
{{ $shipment->order->billing_address->company_name ?? '' }}
{{ $shipment->order->billing_address->name }}
{{ $shipment->order->billing_address->address1 }}
{{ $shipment->order->billing_address->postcode . " " . $shipment->order->billing_address->city }}
{{ $shipment->order->billing_address->state }}
---
@lang('store::app.emails.orders.contact') : {{ $shipment->order->billing_address->phone }}
@lang('store::app.emails.orders.payment')
{{ core()->getConfigData('sales.payment_methods.' . $shipment->order->payment->method . '.title') }}
@endif
@foreach (['sku', 'name', 'price', 'qty'] as $item) @endforeach @foreach ($shipment->items as $item) @endforeach
@lang('store::app.emails.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()->formatPrice($item->price, $shipment->order_currency_code) }} {{ $item->qty }}
@lang('store::app.emails.orders.subtotal') {{ core()->formatPrice($shipment->sub_total, $shipment->order_currency_code) }}
@if ($shipment->order->shipping_address)
@lang('store::app.emails.orders.shipping-handling') {{ core()->formatPrice($shipment->shipping_amount, $shipment->order_currency_code) }}
@endif @foreach (Webkul\Tax\Helpers\Tax::getTaxRatesWithAmount($shipment->order, false) as $taxRate => $taxAmount )
@lang('store::app.emails.orders.tax') {{ $taxRate }} % {{ core()->formatPrice($shipment->tax_amount, $shipment->order_currency_code) }}
@endforeach @if ($shipment->discount_amount > 0)
@lang('store::app.emails.orders.discount') {{ core()->formatPrice($shipment->discount_amount, $shipment->order_currency_code) }}
@endif
@lang('store::app.emails.orders.grand-total') {{ core()->formatPrice($shipment->grand_total, $shipment->order_currency_code) }}
@endcomponent