@extends('layouts.admin') @section('title', 'Neraca Saldo') @section('content')

Neraca Saldo

Laporan neraca saldo per akun pada periode tertentu

@if(isset($error))

Error

{{ $error }}

@endif @if(isset($accounts) && $accounts !== null)

POLJAMTECH

Jl. Lkr. Barat 3 No.1, Bagan Pete, Kec. Kota Baru, Kota Jambi, Jambi 36361

NERACA SALDO

Per {{ isset($endDate) ? \Carbon\Carbon::parse($endDate)->format('d-M-y') : date('d-M-y') }}

@php $currentCategory = null; $categoryTotal = 0; @endphp @if($accounts && $accounts->count() > 0) @foreach($accounts->sortBy('kd_perk')->values() as $account) @if($currentCategory !== $account['category'] && $currentCategory !== null) @if($categoryTotal != 0) @endif @php $categoryTotal = 0; @endphp @endif @if($currentCategory !== $account['category']) @php $currentCategory = $account['category']; @endphp @endif @if(abs($account['balance']) > 0.01) @php $categoryTotal += $account['balance']; @endphp @endif @endforeach @if($currentCategory !== null && $categoryTotal != 0) @endif @else @endif
KODE AKUN NAMA AKUN JUMLAH TOTAL
Jumlah {{ $currentCategory }} {{ number_format($categoryTotal, 0, ',', '.') }}
{{ $account['kd_perk'] }} {{ $account['nama_perkiraan'] }} {{ number_format($account['balance'], 0, ',', '.') }}
Jumlah {{ $currentCategory }} {{ number_format($categoryTotal, 0, ',', '.') }}
TOTAL AKTIVA {{ number_format(abs($totalAktiva ?? 0), 0, ',', '.') }}
TOTAL KEWAJIBAN DAN EKUITAS {{ number_format(abs(($totalKewajiban ?? 0) + ($totalEkuitas ?? 0)), 0, ',', '.') }}
Tidak ada data untuk periode yang dipilih
@else

Tidak Ada Data

Tidak ada data neraca saldo untuk periode yang dipilih

@endif
@endsection