Laporan Transaksi Kontrakan

@php $total = 0; @endphp @foreach($transactions as $index => $t) @php $total += $t->amount; @endphp @endforeach
No Tanggal Penyewa Tipe Periode Jumlah
{{ $index + 1 }} {{ \Carbon\Carbon::parse($t->transaction_date)->format('d/m/Y') }} {{ $t->penyewa->nama_1 ?? '-' }} {{ ucfirst($t->type) }} {{ $t->periode_mulai }} s/d {{ $t->periode_selesai }} Rp {{ number_format($t->amount, 0, ',', '.') }}
TOTAL KESELURUHAN: Rp {{ number_format($total, 0, ',', '.') }}