{{-- Header --}}

Customer

Kelola seluruh customer terdaftar dan tamu.

{{-- Filter Status (tab) --}}
{{-- Search & Sort --}}
{{-- Loading indicator --}}
Memuat data...
{{-- Tabel --}}
@forelse ($customers as $customer) {{-- Avatar + Nama --}} @empty @endforelse
Customer Nomor HP Email Total Pesanan Total Belanja Bergabung Status Aksi
{{ strtoupper(substr($customer->name, 0, 1)) }}

{{ $customer->name }}

{{ $customer->type === 'user' ? 'Member' : 'Guest' }}

{{ $customer->phone ?? '—' }} {{ $customer->email ?? '—' }} {{ $customer->orders_count }} Rp {{ number_format($customer->orders_sum, 0, ',', '.') }} {{ $customer->joined_at?->format('d M Y') ?? '—' }} @if ($customer->type === 'user') {{ $customer->is_active ? 'Aktif' : 'Tidak Aktif' }} @else @endif
@if ($customer->type === 'user') @can('customer.deactivate') @endcan @endif

Belum ada data customer.

{{-- Footer: Pagination + Per Page --}}
Tampilkan data per halaman
{{ $customers->links() }}