- {{ $order->shipping_title }}
+ @if ($order->shipping_address)
+
+
+ {{ __('shop::app.mail.order.shipping-address') }}
-
-
{{ __('shop::app.mail.shipment.carrier') }} : {{ $shipment->carrier_title }}
+
+ {{ $order->shipping_address->company_name ?? '' }}
-
-
{{ __('shop::app.mail.shipment.tracking-number') }} : {{ $shipment->track_number }}
+
+ {{ $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 }}
+
+
+
+ {{ __('shop::app.mail.shipment.carrier') }} : {{ $shipment->carrier_title }}
+
+
+
+ {{ __('shop::app.mail.shipment.tracking-number') }} : {{ $shipment->track_number }}
+
-
+ @endif
-
-
- {{ __('shop::app.mail.order.billing-address') }}
-
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.mail.order.billing-address') }}
+
-
- {{ $order->billing_address->company_name ?? '' }}
-
+
+ {{ $order->billing_address->company_name ?? '' }}
+
-
- {{ $order->billing_address->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) }}
-
+
+ {{ $order->billing_address->address1 }}
+
-
---
+
+ {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
+
-
- {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
-
+
+ {{ $order->billing_address->state }}
+
-
- {{ __('shop::app.mail.order.payment') }}
-
+
+ {{ core()->country_name($order->billing_address->country) }}
+
-
- {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
---
+
+
+ {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
+
+
+
+ {{ __('shop::app.mail.order.payment') }}
+
+
+
+ {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
-
+ @endif
diff --git a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php
index f19247178..73102da0f 100755
--- a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php
@@ -78,49 +78,51 @@
@endif
-
-
- {{ __('shop::app.mail.order.billing-address') }}
-
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.mail.order.billing-address') }}
+
-
- {{ $order->billing_address->company_name ?? '' }}
-
+
+ {{ $order->billing_address->company_name ?? '' }}
+
-
- {{ $order->billing_address->name }}
-
+
+ {{ $order->billing_address->name }}
+
-
- {{ $order->billing_address->address1 }}
-
+
+ {{ $order->billing_address->address1 }}
+
-
- {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
-
+
+ {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
+
-
- {{ $order->billing_address->state }}
-
+
+ {{ $order->billing_address->state }}
+
-
- {{ core()->country_name($order->billing_address->country) }}
-
+
+ {{ core()->country_name($order->billing_address->country) }}
+
-
---
+
---
-
- {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
-
+
+ {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
+
-
- {{ __('shop::app.mail.order.payment') }}
-
+
+ {{ __('shop::app.mail.order.payment') }}
+
-
- {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
+ {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
-
+ @endif
diff --git a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-order.blade.php b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-order.blade.php
index e6021ee94..8fc385165 100755
--- a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-order.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-order.blade.php
@@ -75,58 +75,60 @@
@endif
-
-
- {{ __('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'] }}
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.mail.order.billing-address') }}
- @endif
-
+
+
+ {{ $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
diff --git a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-refund.blade.php b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-refund.blade.php
index cc71d2b6c..873d12bfa 100644
--- a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-refund.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-refund.blade.php
@@ -77,49 +77,51 @@
@endif
-
-
- {{ __('shop::app.mail.order.billing-address') }}
-
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.mail.order.billing-address') }}
+
-
- {{ $order->billing_address->company_name ?? '' }}
-
+
+ {{ $order->billing_address->company_name ?? '' }}
+
-
- {{ $order->billing_address->name }}
-
+
+ {{ $order->billing_address->name }}
+
-
- {{ $order->billing_address->address1 }}
-
+
+ {{ $order->billing_address->address1 }}
+
-
- {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
-
-
-
- {{ $order->billing_address->state }}
-
+
+ {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
+
-
- {{ core()->country_name($order->billing_address->country) }}
-
+
+ {{ $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') }}
-
+
+ {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
+
-
- {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
+ {{ __('shop::app.mail.order.payment') }}
+
+
+
+ {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
-
+ @endif
diff --git a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-shipment.blade.php b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-shipment.blade.php
index 7acab7816..d9c535a95 100755
--- a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-shipment.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-shipment.blade.php
@@ -31,103 +31,107 @@
-
-
- {{ __('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 }}
+ @if ($order->shipping_address)
+
+
+ {{ __('shop::app.mail.order.shipping-address') }}
-
-
{{ __('shop::app.mail.shipment.carrier') }} : {{ $shipment->carrier_title }}
+
+ {{ $order->shipping_address->company_name ?? '' }}
-
-
{{ __('shop::app.mail.shipment.tracking-number') }} : {{ $shipment->track_number }}
+
+ {{ $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 }}
+
+
+
+ {{ __('shop::app.mail.shipment.carrier') }} : {{ $shipment->carrier_title }}
+
+
+
+ {{ __('shop::app.mail.shipment.tracking-number') }} : {{ $shipment->track_number }}
+
-
+ @endif
-
-
- {{ __('shop::app.mail.order.billing-address') }}
-
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.mail.order.billing-address') }}
+
-
- {{ $order->billing_address->company_name ?? '' }}
-
+
+ {{ $order->billing_address->company_name ?? '' }}
+
-
- {{ $order->billing_address->name }}
-
+
+ {{ $order->billing_address->name }}
+
-
- {{ $order->billing_address->address1 }}
-
+
+ {{ $order->billing_address->address1 }}
+
-
- {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
-
-
-
- {{ $order->billing_address->state }}
-
+
+ {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
+
-
- {{ core()->country_name($order->billing_address->country) }}
-
+
+ {{ $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') }}
-
+
+ {{ __('shop::app.mail.order.contact') }} : {{ $order->billing_address->phone }}
+
-
- {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
+ {{ __('shop::app.mail.order.payment') }}
+
+
+
+ {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
-
+ @endif
diff --git a/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel-admin.blade.php b/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel-admin.blade.php
index 5c08eca68..91d54e6bb 100644
--- a/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel-admin.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel-admin.blade.php
@@ -33,93 +33,97 @@
-
-
- {{ __('shop::app.mail.order.cancel.shipping-address') }}
+ @if ($order->shipping_address)
+
+
+ {{ __('shop::app.mail.order.cancel.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.cancel.contact') }} : {{ $order->shipping_address->phone }}
+
+
+
+ {{ __('shop::app.mail.order.cancel.shipping') }}
+
+
+
+ {{ $order->shipping_title }}
+
+ @endif
-
- {{ $order->shipping_address->company_name ?? '' }}
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.mail.order.cancel.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.cancel.contact') }} : {{ $order->billing_address->phone }}
+
+
+
+ {{ __('shop::app.mail.order.cancel.payment') }}
+
+
+
+ {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
-
-
- {{ $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.cancel.contact') }} : {{ $order->shipping_address->phone }}
-
-
-
- {{ __('shop::app.mail.order.cancel.shipping') }}
-
-
-
- {{ $order->shipping_title }}
-
-
-
-
-
- {{ __('shop::app.mail.order.cancel.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.cancel.contact') }} : {{ $order->billing_address->phone }}
-
-
-
- {{ __('shop::app.mail.order.cancel.payment') }}
-
-
-
- {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
-
-
+ @endif
diff --git a/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel.blade.php b/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel.blade.php
index b7a5b6bbf..c469a90c3 100644
--- a/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/emails/sales/order-cancel.blade.php
@@ -29,89 +29,93 @@
-
-
- {{ __('shop::app.mail.order.cancel.shipping-address') }}
-
+ @if ($order->shipping_address)
+
+
+ {{ __('shop::app.mail.order.cancel.shipping-address') }}
+
-
- {{ $order->shipping_address->company_name ?? '' }}
-
+
+ {{ $order->shipping_address->company_name ?? '' }}
+
-
- {{ $order->shipping_address->name }}
-
+
+ {{ $order->shipping_address->name }}
+
-
- {{ $order->shipping_address->address1 }}
-
+
+ {{ $order->shipping_address->address1 }}
+
-
- {{ $order->shipping_address->postcode . " " . $order->shipping_address->city }}
-
+
+ {{ $order->shipping_address->postcode . " " . $order->shipping_address->city }}
+
-
- {{ $order->shipping_address->state }}
-
+
+ {{ $order->shipping_address->state }}
+
-
- {{ core()->country_name($order->shipping_address->country) }}
-
+
+ {{ core()->country_name($order->shipping_address->country) }}
+
-
---
+
---
-
- {{ __('shop::app.mail.order.cancel.contact') }} : {{ $order->shipping_address->phone }}
-
+
+ {{ __('shop::app.mail.order.cancel.contact') }} : {{ $order->shipping_address->phone }}
+
-
- {{ __('shop::app.mail.order.cancel.shipping') }}
-
+
+ {{ __('shop::app.mail.order.cancel.shipping') }}
+
-
- {{ $order->shipping_title }}
+
+ {{ $order->shipping_title }}
+
-
+ @endif
-
-
- {{ __('shop::app.mail.order.cancel.billing-address') }}
-
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.mail.order.cancel.billing-address') }}
+
-
- {{ $order->billing_address->company_name ?? '' }}
-
+
+ {{ $order->billing_address->company_name ?? '' }}
+
-
- {{ $order->billing_address->address1 }}
-
+
+ {{ $order->billing_address->address1 }}
+
-
- {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
-
-
-
- {{ $order->billing_address->state }}
-
+
+ {{ $order->billing_address->postcode . " " . $order->billing_address->city }}
+
-
- {{ core()->country_name($order->billing_address->country) }}
-
+
+ {{ $order->billing_address->state }}
+
-
---
+
+ {{ core()->country_name($order->billing_address->country) }}
+
-
- {{ __('shop::app.mail.order.cancel.contact') }} : {{ $order->billing_address->phone }}
-
+
---
-
- {{ __('shop::app.mail.order.cancel.payment') }}
-
+
+ {{ __('shop::app.mail.order.cancel.contact') }} : {{ $order->billing_address->phone }}
+
-
- {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
+ {{ __('shop::app.mail.order.cancel.payment') }}
+
+
+
+ {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
+
-
+ @endif
diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/orders/view.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/orders/view.blade.php
index 106688978..5dce34e92 100644
--- a/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/orders/view.blade.php
+++ b/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/orders/view.blade.php
@@ -513,17 +513,19 @@
-
-
- {{ __('shop::app.customer.account.order.view.billing-address') }}
-
+ @if ($order->billing_address)
+
+
+ {{ __('shop::app.customer.account.order.view.billing-address') }}
+
-
- @include ('admin::sales.address', ['address' => $order->billing_address])
+
+ @include ('admin::sales.address', ['address' => $order->billing_address])
- {!! view_render_event('bagisto.shop.customers.account.orders.view.billing-address.after', ['order' => $order]) !!}
+ {!! view_render_event('bagisto.shop.customers.account.orders.view.billing-address.after', ['order' => $order]) !!}
+
-
+ @endif
@if ($order->shipping_address)