@if(array_key_exists('account_code', $report->getHeaders()))
@else
@endif
@foreach($report->getCategories() as $accountCategory)
@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
@foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
{{ $accountCategorySummaryCell }}
@endforeach
|
@endforeach