{{ __('Customers') }}

{{ __('Every customer in this workspace. Click a row to open the profile.') }}

@if (trim($search) !== '') {{ __('Clear') }} @endif @if (trim($search) === '') {{ __(':n total', ['n' => number_format($this->totalCount)]) }} @else {{ __(':showing of :total match', [ 'showing' => number_format($this->customers->total()), 'total' => number_format($this->totalCount), ]) }} @endif
@if ($this->customers->isEmpty())
@if (trim($search) === '') {{ __('No customers yet. They\'ll appear here once tickets are linked or Shopify customers are matched.') }} @else {{ __('No customers match this search.') }} @endif
@else
@foreach ($this->customers as $customer) @endforeach
{{ __('Customer') }} {{ __('Email') }} {{ __('Phone') }} {{ __('Badge') }} {{ __('Updated') }}
@if ($customer->badge) {{ $customer->badge->emoji() }} @endif {{ $customer->name ?: ($customer->email ?: __('(unnamed)')) }} {{ $customer->email ?: '—' }} {{ $customer->phone ?: '—' }} @if ($customer->badge) {{ $customer->badge->displayLabel() }} @else @endif {{ $customer->updated_at?->diffForHumans() ?? '—' }}
{{ $this->customers->links() }}
@endif