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

Chart of Accounts Data

Reset

TRUSTWAY LANKA (Pvt) Ltd

Chart of Accounts Data

Branch: {{ $branchName }} | Period: {{ \Carbon\Carbon::parse($dateFrom)->format('d/m/Y') }} to {{ \Carbon\Carbon::parse($dateTo)->format('d/m/Y') }}

@if(count($groupedData) > 0)
@foreach($groupedData as $categoryId => $category) @foreach($category['accounts'] as $accountId => $account) @foreach($account['sub_accounts'] as $subAccount) @endforeach @endforeach @endforeach
Account Code Account Description Debit Credit Balance
{{ $category['category_name'] }}
Total {{ $category['category_name'] }} {{ number_format($category['total_debit'], 2) }} {{ number_format($category['total_credit'], 2) }} {{ number_format($category['total_balance'], 2) }}
@else
No data found for the selected criteria

Try adjusting your filters or check if there are any transactions in the selected period.

@endif
@endsection