@foreach($report->getCategories() as $accountCategory)
        
        @if(! empty($accountCategory->header))
            
        @endif
        @foreach($accountCategory->data as $categoryAccount)
            
                @foreach($categoryAccount as $accountIndex => $categoryAccountCell)
                    
                        @if(is_array($categoryAccountCell) && isset($categoryAccountCell['name']))
                            @if($categoryAccountCell['name'] === 'Retained Earnings' && isset($categoryAccountCell['start_date']) && isset($categoryAccountCell['end_date']))
                                
                                    {{ $categoryAccountCell['name'] }}
                                
                            @elseif(isset($categoryAccountCell['id']) && isset($categoryAccountCell['start_date']) && isset($categoryAccountCell['end_date']))
                                
                                    {{ $categoryAccountCell['name'] }}
                                
                            @else
                                {{ $categoryAccountCell['name'] }}
                            @endif
                        @else
                            {{ $categoryAccountCell }}
                        @endif
                    
                @endforeach
            
        @endforeach
        @if(! empty($accountCategory->summary))
            
                @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
                    
                        {{ $accountCategorySummaryCell }}
                    
                @endforeach
            
            
                |  | 
        @endif
        
    @endforeach