@extends('layouts.admin') @section('title', 'Trial Balance') @section('content')
Trial Balance
@foreach ($rows as $r) @endforeach
Code Account Type Debit Credit
{{ $r->account_code }} {{ $r->account_name }} {{ ucfirst($r->account_type) }} {{ number_format($r->debit, 2) }} {{ number_format($r->credit, 2) }}
Total {{ number_format($totalDebit, 2) }} {{ number_format($totalCredit, 2) }}
@endsection