| a |
| 1/{{$bulan}}/{{$tahun}} |
@php
$currentDate = new DateTime("$tahun-$bulan-01");
$currentDate->sub(new DateInterval('P1M'));
$previousMonth = $currentDate->format('n');
$previousYear = $currentDate->format('Y');
$currentDate->add(new DateInterval('P2M'));
$nextMonth = $currentDate->format('n');
$nextYear = $currentDate->format('Y');
@endphp
Saldo Kas {{ $monthsId[$previousMonth] }} {{ $previousYear }}
|
|
{{ 'Rp ' . number_format($awal, 2, ',', '.') }} |
|
Pemasukan |
|
|
@php
$totalPemasukan = 0;
$totalPengeluaran = 0;
@endphp
@foreach($pemasukan as $val)
@php
$date = new DateTime($val->tanggal);
$formattedDate = $date->format('d/m/Y');
$totalPemasukan += $val->nominal_debet;
@endphp
| {{ $formattedDate }} |
{{ $val->keterangan }} |
|
@if($loop->last)
{{ 'Rp ' . number_format($val->nominal_debet, 2, ',', '.') }} |
@else
{{ 'Rp ' . number_format($val->nominal_debet, 2, ',', '.') }} |
@endif
@endforeach
|
|
|
{{ 'Rp ' . number_format($totalPemasukan, 2, ',', '.') }} |
|
Pengeluaran |
|
|
@foreach($pengeluaran as $val)
@php
$date = new DateTime($val->tanggal);
$formattedDate = $date->format('d/m/Y');
$totalPengeluaran += $val->nominal_kredit;
@endphp
| {{ $formattedDate }} |
{{ $val->keterangan }} |
@if($loop->last)
{{ 'Rp ' . number_format($val->nominal_kredit, 2, ',', '.') }} |
@else
{{ 'Rp ' . number_format($val->nominal_kredit, 2, ',', '.') }} |
@endif
|
@endforeach
|
|
{{ 'Rp ' . number_format($totalPengeluaran, 2, ',', '.') }} |
|
|
@php
$date = new DateTime("$tahun-$bulan-01");
$date->modify('last day of this month');
$lastDayOfMonth = $date->format('d');
@endphp
| Saldo kas musholla per {{ $lastDayOfMonth.' '.$monthsId[$bulan].' '.$tahun}} Maret 2024 |
|
{{ 'Rp ' . number_format(($awal+$totalPemasukan-$totalPengeluaran), 2, ',', '.') }}
|
| a |
| a |
| a |
| Diketahui |
Solok, 1 {{ $monthsId[$nextMonth] }} {{ $nextYear }} |
| Ketua Mushola |
Bendahara Mushola |
| a |
| a |
| a |
| a |
| a |
| Andry Surya Dinata |
Gusti Ayu Dwi Wulandari |