@extends('Core.Sidebar') @section('content')

Dashboard Keuangan

Tanggal Awal
Tanggal Akhir

Total Pendapatan

@if($totalPendapatan < 0) -Rp {{ number_format(abs($totalPendapatan), 0, ',', '.') }} @else Rp {{ number_format($totalPendapatan, 0, ',', '.') }} @endif

Periode: {{ date('d/m/Y', strtotime($startDate)) }} - {{ date('d/m/Y', strtotime($endDate)) }}

Total Beban

@if($totalBeban < 0) -Rp {{ number_format(abs($totalBeban), 0, ',', '.') }} @else Rp {{ number_format($totalBeban, 0, ',', '.') }} @endif

Periode: {{ date('d/m/Y', strtotime($startDate)) }} - {{ date('d/m/Y', strtotime($endDate)) }}

Rincian Pendapatan

@foreach($pendapatan as $item)
{{ ucwords($item['kategori']) }} ({{ $item['kode_akun'] }})
@if($item['nominal'] < 0) -Rp {{ number_format(abs($item['nominal']), 0, ',', '.') }} @else Rp {{ number_format($item['nominal'], 0, ',', '.') }} @endif
@endforeach
Total Pendapatan @if($totalPendapatan < 0) -Rp {{ number_format(abs($totalPendapatan), 0, ',', '.') }} @else Rp {{ number_format($totalPendapatan, 0, ',', '.') }} @endif

Rincian Beban

@foreach($beban as $item)
{{ ucwords($item['kategori']) }} ({{ $item['kode_akun'] }})
@if($item['nominal'] < 0) -Rp {{ number_format(abs($item['nominal']), 0, ',', '.') }} @else Rp {{ number_format($item['nominal'], 0, ',', '.') }} @endif
@endforeach
Total Beban @if($totalBeban < 0) -Rp {{ number_format(abs($totalBeban), 0, ',', '.') }} @else Rp {{ number_format($totalBeban, 0, ',', '.') }} @endif

Laba/Rugi Total

@if($labaRugiTotal < 0) -Rp {{ number_format(abs($labaRugiTotal), 0, ',', '.') }} @else Rp {{ number_format($labaRugiTotal, 0, ',', '.') }} @endif

{{ $labaRugiTotal >= 0 ? 'Laba' : 'Rugi' }}

Laba/Rugi Periode Ini

@if($labaRugiBulanIni < 0) -Rp {{ number_format(abs($labaRugiBulanIni), 0, ',', '.') }} @else Rp {{ number_format($labaRugiBulanIni, 0, ',', '.') }} @endif

{{ $labaRugiBulanIni >= 0 ? 'Laba' : 'Rugi' }}

@if($labaRugiTotal < 0) -Rp {{ number_format(abs($labaRugiTotal), 0, ',', '.') }} @else Rp {{ number_format($labaRugiTotal, 0, ',', '.') }} @endif

Laba/Rugi Total

{{ number_format($growthPercentage, 1) }}%
Distribusi Neraca Saldo
@php $pieColors = ['#FF5733','#33FF57','#3357FF','#FF33A1','#FFBD33','#10b981','#f472b6','#6366f1','#f59e42','#e11d48']; @endphp @foreach($pieLabels as $i => $label)
{{ $label }}
@endforeach

Transaksi Terbaru

@foreach($recentTransactions as $transaction) @endforeach
Tanggal Kode Kategori Keterangan Pendapatan Beban
{{ date('d/m/Y', strtotime($transaction->Tanggal)) }} {{ $transaction->kode }} {{ $transaction->kategori }} {{ $transaction->keterangan }} {{ $transaction->uang_masuk > 0 ? 'Rp ' . number_format($transaction->uang_masuk, 0, ',', '.') : '-' }} {{ $transaction->uang_keluar > 0 ? 'Rp ' . number_format($transaction->uang_keluar, 0, ',', '.') : '-' }}
@endsection