@extends('layouts.app') @section('content')

Trail Balance

{{--

This is the most basic and cost estimation form is the default position.

--}}
@php $grandDebit = 0; $grandCredit = 0; @endphp @forelse ($data as $d) @php $grandDebit += $d->debit_balance; $grandCredit += $d->credit_balance; @endphp @empty @endforelse
Account Name Debit Total Credit Total
{{ $d->account_name }} {{ number_format($d->debit_balance, 2) }} {{ number_format($d->credit_balance, 2) }}
No record Found
TOTAL {{ number_format($grandDebit, 2) }} {{ number_format($grandCredit, 2) }}
@endsection @section('afterScript') @endsection