@extends('layouts.app') @section('title', 'Finance & Accounting') @section('content')

Double-entry ledger

Finance & accounting

Live operational postings with government clearing and VAT liabilities kept out of revenue.

@foreach([['Monthly service revenue',$serviceRevenue,'text-emerald-600'],['Government fees handled',$governmentFees,'text-amber-600'],['VAT output payable',$vatPayable,'text-violet-600'],['Outstanding receivables',$receivables,'text-rose-600']] as [$label,$amount,$color])

{{ $label }}

AED {{ number_format((float)$amount,2) }}

@endforeach

Chart of accounts & balances

System accounts are created only when a real transaction posts.

@forelse($accounts as $account)@empty@endforelse
AccountTypeDebitCredit
{{ $account->account_code }}

{{ $account->account_name }}

{{ ucfirst($account->account_type) }} @if($account->is_clearing)CLEARING@endifAED {{ number_format((float)($account->debit_total ?? 0),2) }}AED {{ number_format((float)($account->credit_total ?? 0),2) }}
No journal activity yet.

Recent journals

@forelse($journals as $journal)

{{ $journal->entry_number }}

{{ $journal->narration }}

AED {{ number_format((float)$journal->total_debit,2) }}

Balanced

@foreach($journal->items as $item)
{{ $item->account?->account_name }}{{ (float)$item->debit > 0 ? 'Dr '.number_format((float)$item->debit,2) : 'Cr '.number_format((float)$item->credit,2) }}
@endforeach
@empty
No journals posted yet.
@endforelse
@endsection