@if(in_array($subcategories['id'], array_keys($final_data)))
@for ($i = 1; $i <= $level; $i++)
@endfor
@if(setUserLang() == "ar")
{{$subcategories->code}} - {{$subcategories->arabic_name}}
@else
{{$subcategories->code}} - {{$subcategories->name}}
@endif
|
@if(count($subcategories['subcategory']) < 1)
@php
format_balance_excel($final_data[$subcategories['id']]);
@endphp
|
@else
|
@endif
@endif
@if(count($subcategories['subcategory']) > 0)
@foreach($subcategories['subcategory'] as $key => $subcategory)
@include('accounting.reports.sub_balance_sheet_excel', ['subcategories'=>$subcategory, 'level' => ($level + 4)])
{{-- @php--}}
{{-- Log::channel('test_log')->info("Sub =>{$subcategories->name} - {$subcategories->code}");--}}
{{-- @endphp--}}
@endforeach
@if(in_array($subcategories['id'], array_keys($final_data)) && $subcategories->parent_id != 0)
@for ($i = 1; $i <= $level; $i++)
@endfor
{{__('messages.Total')}} {{$subcategories['code']}} - {{$subcategories['name']}}
|
@php
format_balance_excel($final_data[$subcategories['id']]);
@endphp
|
@endif
@endif