@extends('layouts.app') @section('title', __('account.balance_sheet')) @section('css') @endsection @section('content')
{{-- CSRF Protection --}} @csrf @method('POST')
{{ __('app.filter') }}
{{ __('account.balance_sheet_report') }}
@foreach($mains as $main) @endforeach @php function renderOptions($group, $indent = 0, $allAccounts, $treeRowId, $childOf = null) { //$showArrow = ($indent!=0) ? '    ' : ''; $childOfClas = $childOf ? 'treegrid-parent-'.$childOf : ''; echo ""; echo ""; echo ""; echo ""; $parentTreeID = $treeRowId; $treeRowId++; $accounts = $allAccounts->where('group_id', $group->id); // Access the name property if an account is found if ($accounts) { foreach($accounts as $account){ echo ""; echo ""; echo ""; echo ""; $treeRowId++; } } if ($group->children->isNotEmpty()) { foreach ($group->children as $child) { renderOptions($child, $indent + 1, $allAccounts, $treeRowId++, $childOf = $parentTreeID); } } } @endphp
{{ $main->name }}
"; //echo str_repeat(' ', $indent * 4); //echo $showArrow; echo $group->name; echo ""; echo "0.0000"; echo "
"; //echo str_repeat(' ', $indent * 5); //echo $showArrow; echo $account->name; echo ""; echo "0.0000"; echo "
@php foreach ($assetGroups as $group){ renderOptions($group, 0, $allAccounts, $treeRowId = 1); } @endphp
@php foreach ($equityLiabilityGroups as $group){ renderOptions($group, 0, $allAccounts, $treeRowId = 1); } @endphp
@endsection @section('js') @include("plugin.export-table") @endsection