@foreach($report->getSummaryCategories() as $accountCategory) @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell) {{ $accountCategorySummaryCell }} @endforeach @if($accountCategory->summary['account_name'] === 'Cost of Goods Sold') @foreach($report->getGrossProfit() as $grossProfitIndex => $grossProfitCell) {{ $grossProfitCell }} @endforeach @endif @endforeach