@extends('layouts.app') @section('title', 'Trial balance') @section('content') @include('ledger._asof', ['export' => true])
{{ $balanced ? 'The books balance' : 'The books are out of balance' }}
{{ $balanced ? 'Total debits equal total credits.' : 'Debits and credits differ by '.money(abs($debit - $credit)).'. Run the Ledger check to find out why.' }}
Debits
{{ money($debit) }}
Credits
{{ money($credit) }}
@foreach ($rows as $a) @endforeach
CodeAccountTypeDebitCredit
{{ $a->code }} {{ $a->name }} {{ $a->typeLabel() }} {{ $a->tb_debit ? money($a->tb_debit) : '' }} {{ $a->tb_credit ? money($a->tb_credit) : '' }}
Totals{{ money($debit) }}{{ money($credit) }}
@endsection