@extends('adminlte::page') @section('title', 'Realisasi Perbulan | Smart Finance') @section('content_header')
Rangkuman Pendapatan & Beban dari Januari s/d Desember.
| Keterangan Akun | @php $namaBulan = ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nov', 'Des']; @endphp @foreach($namaBulan as $bln){{ $bln }} | @endforeachTOTAL YTD | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $currentType == 'REVENUE' ? 'I. PENDAPATAN (REVENUE)' : 'II. BEBAN & BIAYA (EXPENSES)' }} | |||||||||||||
| {{ $data['akun']->code }} - {{ $data['akun']->name }} | @for($i = 1; $i <= 12; $i++) @php $nilaiBulan = $data['bulanan'][$i]; // Akumulasi total bawah (Pendapatan bertambah, Beban mengurang) if($currentType == 'REVENUE') { $totalPerBulan[$i] += $nilaiBulan; } else { $totalPerBulan[$i] -= $nilaiBulan; } @endphp{{ $nilaiBulan == 0 ? '-' : number_format($nilaiBulan, 0, ',', '.') }} | @endfor {{-- Kolom Total Setahun --}} @php if($currentType == 'REVENUE') { $grandTotalYTD += $data['total_setahun']; } else { $grandTotalYTD -= $data['total_setahun']; } @endphp{{ number_format($data['total_setahun'], 0, ',', '.') }} | |||||||||||
| Belum ada data transaksi Pendapatan/Beban di tahun ini. | |||||||||||||
| SURPLUS / (DEFISIT) BERSIH | @for($i = 1; $i <= 12; $i++){{ number_format($totalPerBulan[$i], 0, ',', '.') }} | @endfor{{ number_format($grandTotalYTD, 0, ',', '.') }} | |||||||||||