@extends('layouts.app') @section('title','Trial Balance') @section('pages')
@include('layouts.partials.nav-menu')
@php $i=1; $totalDebit=0;$totalCredit=0;$totalBalance=0; @endphp @foreach ($trialBalance as $groupName => $groupData) @php $totalDebit +=$groupData['total_debit']; $totalCredit +=$groupData['total_credit']; $totalBalance +=$groupData['total_balance']; @endphp @endforeach
Sl No Account Name Debit Credit Balance
{!! $i++ !!} {{ $groupName }} {{ convertDecimelPoint($groupData['total_debit']) }} {{ convertDecimelPoint($groupData['total_credit']) }} {{ convertDecimelPoint($groupData['total_balance']) }}
Total {{ $totalDebit }} {{ $totalCredit }} {{ $totalBalance }}
@endsection