{{ $customer->fullName }}
@foreach ($this->getSlotsByPosition('top') as $slot)
@livewire($slot->component, ['slotModel' => $customer], key('top-slot-' . $slot->handle))
@endforeach
{{ __('adminhub::components.customers.show.customer_groups') }}
@foreach ($this->customerGroups as $group) @endforeach
@include('adminhub::partials.attributes', ['inline' => true])
@foreach ($this->getSlotsByPosition('bottom') as $slot)
@livewire($slot->component, ['slotModel' => $customer], key('top-slot-' . $slot->handle))
@endforeach
{{ __('adminhub::components.customers.show.save_customer') }}
{{ __('adminhub::components.customers.show.metrics.total_orders') }}
{{ $this->ordersCount }}
{{ __('adminhub::components.customers.show.metrics.avg_spend') }}
{{ $this->avgSpend->formatted }}
{{ __('adminhub::components.customers.show.metrics.total_spend') }}
{{ $this->totalSpend->formatted }}
{{ __('adminhub::components.customers.show.year_spending') }}
@livewire('hub.components.reporting.apex-chart', ['options' => $this->spendingChart])
@if (!$this->orders->count())
{{ __('adminhub::components.customers.show.no_order_history') }}
@else @livewire('hub.components.orders.table', [ 'searchable' => false, 'canSaveSearches' => false, 'filterable' => false, 'customerId' => $this->customer->id, ]) @endif
@if (!$this->purchaseHistory->count())
{{ __('adminhub::components.customers.show.no_purchase_history') }}
@else @include('adminhub::partials.customers.purchase-history') @endif
@if (!$this->users->count())
{{ __('adminhub::components.customers.show.no_users') }}
@else @include('adminhub::partials.customers.users') @endif
@if (!$this->addresses->count())
{{ __('adminhub::components.customers.show.no_addresses') }}
@else @include('adminhub::partials.customers.addresses') @endif
@include('adminhub::partials.forms.address', [ 'bind' => 'address', 'states' => $this->states, ])
{{ __('adminhub::global.cancel') }} {{ __('adminhub::components.orders.show.save_shipping_btn') }}
{{ __('adminhub::components.customers.show.remove_address.title') }} {{ __('adminhub::components.customers.show.remove_address.confirm') }} {{ __('adminhub::global.cancel') }} {{ __('adminhub::components.customers.show.remove_address_btn') }}