@extends('layouts.app') @section('title') {{ $pageInfo['title'] }} @endsection @section('admin-content')

{{ $pageInfo['title'] }}

  • Cabang: {{ $cabang->name }}
  • Periode: {{ ucfirst($month) }} {{ $year }}
  • Cost Centre {{ $cabang->cost->code }}
@php use App\Helpers\FormHelper; @endphp
@include('backend.layouts.partials.messages')
@php $totalDr = 0; $totalCr = 0; @endphp @foreach ($kategori as $item) @php $drValue = $nominals[$item->id] ?? 0; $drFormatted = $drValue == 0 ? '' : number_format($drValue, 0, ',', ','); $totalDr += $drValue; @endphp @endforeach {{-- Static Rows --}}
# Type Account Number Dr Cr
{{ $loop->iteration }} {{ $item->name }} {{ $item->account_number }} {{ $drFormatted }}
{{ $kategori->count() + 1 }} Petty Cash @php $crValue = $budget && $budget->amount != 0 ? $budget->amount : 0; $totalCr += $crValue; echo $crValue == 0 ? '' : number_format($crValue, 0, ',', ','); @endphp
{{ $kategori->count() + 2 }} Cash Advance (Opening Balance) {{ $kategori_bca->account_number }} @php $totalCr += 500000; @endphp {{ number_format(500000, 0, ',', ',') }}
{{ $kategori->count() + 3 }} Cash Advance (Ending Balance) {{ $kategori_bca->account_number }} @php $totalDr += 500000; @endphp {{ number_format(500000, 0, ',', ',') }}
Total {{ number_format($totalDr, 0, ',', ',') }} {{ number_format($totalCr, 0, ',', ',') }}
@endsection @section('scripts') @endsection