@foreach ($topCustomersByTotal as $item) {{ $item->customer->name ?? '--deleted--' }} {{ $item->customer->contact_number ?? '-' }} {{ $item->transaction_count }} {{ formatToRupiah($item->total_transaction) }} @endforeach