mastercut/resources/views/partials/admin/_customer-by-total.blade.php

9 lines
308 B
PHP
Executable File

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