@extends('components.company.reports.layout') @section('content')
{{ $report->getTitle() }}
{{ $company->name }}
@if($startDate && $endDate)
Date Range: {{ $startDate }} to {{ $endDate }}
@else
As of {{ $endDate }}
@endif
@foreach($report->getSummaryHeaders() as $index => $header) @endforeach @foreach($report->getSummaryCategories() as $category) @foreach($category->summary as $index => $cell) @endforeach @if($category->summary['account_name'] === 'Cost of Goods Sold') @foreach($report->getGrossProfit() as $grossProfitIndex => $grossProfitCell) @endforeach @endif @endforeach @foreach ($report->getOverallTotals() as $index => $total) @endforeach
{{ $header }}
getAlignmentClass($index), ]) > {{ $cell }}
{{ $grossProfitCell }}
{{ $total }}
@endsection