@extends('layouts.school') @section('title', 'Trial Balance') @section('header', 'Trial Balance') @section('content')
{{ $balance['balanced'] ? 'Balanced' : 'Out of balance' }} {{ $balance['rows']->count() }} account(s)
@forelse ($balance['rows'] as $row) @empty @endforelse @if ($balance['rows']->isNotEmpty()) @endif
Account Debit Credit Balance
{{ $row['account'] }} ₦{{ number_format($row['debit'], 2) }} ₦{{ number_format($row['credit'], 2) }} ₦{{ number_format(abs($row['balance']), 2) }}
No cashbook entries yet.
Totals ₦{{ number_format($balance['totals']['debit'], 2) }} ₦{{ number_format($balance['totals']['credit'], 2) }}
@endsection