Kekayaan Bersih

Pantau total kekayaan bersih Anda

Kekayaan Bersih Saat Ini

Rp {{ number_format($currentNetWorth ?? 0, 0, ',', '.') }}

@if(isset($change) && $change != 0)

Rp {{ number_format(abs($change), 0, ',', '.') }} @if(isset($changePercentage)) ({{ number_format(abs($changePercentage), 1) }}%) @endif vs bulan lalu

@endif
@php $dataValues = collect($data ?? [])->pluck('net_worth'); $minValue = $dataValues->min() ?? 0; $maxValue = $dataValues->max() ?? 0; $avgValue = $dataValues->avg() ?? 0; @endphp

Tertinggi

Rp {{ number_format($maxValue, 0, ',', '.') }}

Rata-rata

Rp {{ number_format($avgValue, 0, ',', '.') }}

Terendah

Rp {{ number_format($minValue, 0, ',', '.') }}

Riwayat Kekayaan Bersih

@if(count($data ?? []) > 0)
@else

Tidak ada data untuk periode ini

@endif

Detail per Bulan

@forelse($data ?? [] as $index => $row) @php $prevNetWorth = $index > 0 ? $data[$index - 1]['net_worth'] ?? 0 : 0; $monthChange = $row['net_worth'] - $prevNetWorth; @endphp
{{ $row['label'] }} Rp {{ number_format($row['net_worth'], 0, ',', '.') }}
@if($index > 0)

{{ $monthChange >= 0 ? '+' : '' }}Rp {{ number_format($monthChange, 0, ',', '.') }}

@endif
@empty

Tidak ada data

@endforelse
@push('scripts') @endpush