@foreach($transactions as $data)
{{ $loop->iteration }} |
{{ $data->nama_tagihan }} |
@if($data->jenis_transaksi == 'Pendapatan')
Rp. {{ number_format($data->jumlah, 0, ',', '.') }} |
- |
@elseif($data->jenis_transaksi == 'Pengeluaran')
- |
Rp. {{ number_format($data->jumlah, 0, ',', '.') }} |
@endif
@endforeach
|
Total |
Rp. {{ number_format($totalsaldo, 0, ',', '.') }} |
Rp. {{ number_format($totalpengeluaran, 0, ',', '.') }} |
Jumlah Saldo {{ Carbon::createFromFormat('m', $bulan)->translatedFormat('F') }} {{ $tahun }} |
Rp. {{ number_format($totalsaldo - $totalpengeluaran, 0, ',', '.') }} |