Fixed issue in order view page if customer group is null

This commit is contained in:
jitendra 2020-07-07 12:20:51 +05:30
parent fa05bc8f0a
commit fdb214ec22
1 changed files with 2 additions and 2 deletions

View File

@ -138,14 +138,14 @@
{!! view_render_event('sales.order.customer_email.after', ['order' => $order]) !!} {!! view_render_event('sales.order.customer_email.after', ['order' => $order]) !!}
@if (! is_null($order->customer)) @if (! is_null($order->customer) && ! is_null($order->customer->group))
<div class="row"> <div class="row">
<span class="title"> <span class="title">
{{ __('admin::app.customers.customers.customer_group') }} {{ __('admin::app.customers.customers.customer_group') }}
</span> </span>
<span class="value"> <span class="value">
{{ $order->customer->group['name'] }} {{ $order->customer->group->name }}
</span> </span>
</div> </div>
@endif @endif