@php $fmt = fn($n) => 'Rp ' . number_format((float) $n, 0, ',', '.'); @endphp @php $warna = [ 'inquired' => 'bg-orange-100 text-orange-700', 'paid' => 'bg-green-100 text-green-700', 'failed' => 'bg-red-100 text-red-700', 'expired' => 'bg-slate-100 text-slate-600', ]; $label = [ 'inquired' => 'Siap Bayar', 'paid' => 'Lunas', 'failed' => 'Gagal', 'expired' => 'Kedaluarsa', ]; $ikon = [ 'inquired' => '⏳', 'paid' => '✅', 'failed' => '❌', 'expired' => '↩️', ]; @endphp
@if ($bills->isEmpty())
🧾

Belum ada riwayat tagihan.

Cek Tagihan →
@else

Riwayat Tagihan

{{ $bills->total() }} tagihan
@if ($bills->hasPages())
{{ $bills->links() }}
@endif @endif