$is_print,
                    'flex justify-between border-0 m-0 p-0' => ! $is_print
                ])
            >
                @if (isset($parent_id))
                
                @else
                
                @endif
                    {{ $class->row_names[$table_key][$id] }}
                
                {{ $class->has_money ? money($row_total) : $row_total }}
            
        
    @endif
@endif
@if (is_array($node))
    
    @php
        $parent_row_values = $class->row_values[$table_key][$id];
        array_walk_recursive($node, function ($value, $key) use ($class, $table_key, $id, &$parent_row_values) {
            if ($key == $id) {
                return;
            }
            foreach($class->row_values[$table_key][$key] as $date => $amount) {
                $parent_row_values[$date] += $amount;
            }
        });
    @endphp
    @if ($row_total = array_sum($parent_row_values))
        @if (isset($parent_id))
        
 $is_print,
                'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
            ])
            data-collapse="child-{{ $parent_id }}">
        @else
        
        @endif
            
                
                    {{ $class->row_names[$table_key][$id] }}
                    @if (! $is_print)
                        @if (array_sum($parent_row_values) != array_sum($class->row_values[$table_key][$id]))
                            
                        @endif
                    @endif
                
                {{ $class->has_money ? money($row_total) : $row_total }}
             
        
    @endif
    
    @php $rows = $class->row_values[$table_key][$id]; @endphp
    @if (($row_total = array_sum($rows)) && array_sum($parent_row_values) != array_sum($rows))
    
 $is_print,
            'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
        ])
        data-collapse="child-{{ $id }}">
        
            
                {{ $class->row_names[$table_key][$id] }}
            
            {{ $class->has_money ? money($row_total) : $row_total }}
         
    
    @endif
    
    @php
        $parent_id = $id;
        $tree_level++;
    @endphp
    @foreach($node as $id => $node)
        @if ($parent_id != $id)
            @include($class->views['summary.table.row'], ['parent_id' => $parent_id, 'tree_level' => $tree_level])
        @endif
    @endforeach
@endif