@php $currentSearch = request('search'); $currentStatus = request('status'); $currentPerPage = request('per_page', 10); @endphp @if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif @if ($errors->any())
@endif

Data Kustomer

Kelola data kustomer untuk transaksi dan pengiriman nota WhatsApp

@if($currentSearch) @endif
@if($currentSearch || $currentStatus || request()->has('per_page')) Reset @endif
@forelse($customers as $customer) @php $status = $customer->status ?? 'inactive'; $customerJson = json_encode([ 'id' => $customer->id, 'name' => $customer->name, 'whatsapp' => $customer->whatsapp, 'email' => $customer->email, 'address' => $customer->address, 'status' => $customer->status, 'created_at' => optional($customer->created_at)->format('d M Y H:i'), 'updated_at' => optional($customer->updated_at)->format('d M Y H:i'), ], JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP); $customerDeleteJson = json_encode([ 'id' => $customer->id, 'name' => $customer->name, ], JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP); @endphp @empty @endforelse
Nama WhatsApp Email Alamat Status Dibuat Aksi
{{ $customer->name }} {{ $customer->whatsapp ?? '-' }} {{ $customer->email ?? '-' }} {{ $customer->address ?? '-' }} {{ $status === 'active' ? 'Active' : 'Inactive' }} {{ optional($customer->created_at)->format('d M Y H:i') ?? '-' }}
Tidak ada kustomer ditemukan
{{ $customers->withQueryString()->links() }}