@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->header as $index => $header) @endforeach @foreach($category->types ?? [] as $type) @foreach($type->summary as $index => $cell) @endforeach @endforeach @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 }}
{{ $header }}
getAlignmentClass($index), ]) > {{ $cell }}
getAlignmentClass($index), 'underline-bold' => $loop->last && $report->getTitle() === 'Cash Flow Statement', ]) > {{ $cell }}
{{ $grossProfitCell }}
@if(method_exists($report, 'getSummaryOverviewHeaders') && filled($report->getSummaryOverviewHeaders())) @foreach($report->getOverviewHeaders() as $index => $header) @endforeach @foreach($report->getSummaryOverview() as $overviewCategory) @foreach($overviewCategory->summary as $index => $summaryCell) @endforeach @if($overviewCategory->summary['account_name'] === 'Starting Balance') @foreach($report->getSummaryOverviewAlignedWithColumns() as $summaryRow) @foreach($summaryRow as $index => $summaryCell) @endforeach @endforeach @endif @endforeach
{{ $header }}
{{ $summaryCell }}
getAlignmentClass($index), 'font-bold' => $loop->parent->last, 'underline-thin' => $loop->parent->remaining === 1 && $index === 'net_movement', 'underline-bold' => $loop->parent->last && $index === 'net_movement', ]) > {{ $summaryCell }}
@endif @endsection