@if ($customer->badge)
{{ $customer->badge->emoji() }}
@endif
{{ $customer->name ?: $customer->email }}
@if ($this->shopifyCustomer)
{{ __('Shopify customer') }}
@endif
@if ($customer->email)
{{ $customer->email }}
@endif
@if ($customer->phone)
·
{{ $customer->phone }}
@endif
{{-- Badge dropdown + lifetime spend. Same controls as
the inbox right-sidebar — all members can change a
badge. The £-prefixed row hides at zero so a
brand-new customer doesn't show a meaningless £0.00. --}}
{{ __('Badge') }}
{{ __('— None —') }}
@foreach (\App\Enums\CustomerBadge::cases() as $b)
badge === $b)
>
{{ $b->displayLabel() }}
@endforeach
@php $lifetimeSpend = $this->customerLifetimeSpend; @endphp
@if ($lifetimeSpend > 0)
{{ __('Lifetime spend') }}
£{{ number_format($lifetimeSpend, 2) }}
@endif
{{-- Shopify customer summary --}}
@if ($this->shopifyCustomer)
{{ __('Shopify orders') }}
@if (trim($ordersSearch) === '')
{{ __(':n total', ['n' => number_format($this->totalShopifyOrdersCount)]) }}
@else
{{ __(':showing of :total match', [
'showing' => number_format($this->recentShopifyOrders->count()),
'total' => number_format($this->totalShopifyOrdersCount),
]) }}
@endif
@if (trim($ordersSearch) !== '')
{{ __('Clear') }}
@endif
@if ($this->recentShopifyOrders->isEmpty())
{{ __('No orders match this search.') }}
@else
{{ __('Order') }}
{{ __('Date') }}
{{ __('Status') }}
{{ __('Total') }}
{{ __('Store') }}
@foreach ($this->recentShopifyOrders as $order)
{{ $order->shopify_order_name ?? '#'.$order->shopify_order_id }}
{{ $order->processed_at?->diffForHumans() ?? '—' }}
@if ($order->cancelled_at)
{{ __('Cancelled') }}
@else
{{ $order->financial_status ?? '—' }}
@if ($order->fulfillment_status)
· {{ $order->fulfillment_status }}
@endif
@endif
{{ $order->total_price ?? '—' }} {{ $order->currency }}
{{ $order->store?->name ?? '—' }}
@endforeach
@if ($this->recentShopifyOrders->count() >= \App\Livewire\Customers\Show::ORDERS_RESULT_CAP)
{{ __('Showing the most recent :n. Use the search to narrow further.', ['n' => \App\Livewire\Customers\Show::ORDERS_RESULT_CAP]) }}
@endif
@endif
@endif
{{-- Historic tickets --}}