@extends('layouts.admin') @section('title', 'Trial Balance') @section('content')

Trial Balance

As of {{ date('F jS, Y') }}

@forelse($balances as $balance) @empty @endforelse @if(round($totalDebit, 2) !== round($totalCredit, 2)) @endif
Code Account Debit Credit
{{ $balance['account_code'] }} {{ $balance['account_name'] }} {{ $balance['debit'] > 0 ? number_format($balance['debit'], 2) : '-' }} {{ $balance['credit'] > 0 ? number_format($balance['credit'], 2) : '-' }}
No accounts with balances found.
Totals Rs. {{ number_format($totalDebit, 2) }} Rs. {{ number_format($totalCredit, 2) }}
Warning: Totals do not match!
@endsection