@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->getHeaders() as $index => $header) @endforeach @foreach($report->getCategories() as $category) @foreach($category->header as $index => $header) @endforeach @foreach($category->data as $account) @foreach($account as $index => $cell) @endforeach @endforeach @foreach($category->types ?? [] as $type) @foreach($type->header as $index => $header) @endforeach @foreach($type->data as $typeRow) @foreach($typeRow as $index => $cell) @endforeach @endforeach @foreach($type->summary as $index => $cell) @endforeach @endforeach @foreach($category->summary as $index => $cell) @endforeach @unless($loop->last && empty($report->getOverallTotals())) @endunless @endforeach @foreach ($report->getOverallTotals() as $index => $total) @endforeach
{{ $header }}
{{ $header }}
getAlignmentClass($index), 'whitespace-normal' => $index === 'account_name', 'whitespace-nowrap' => $index !== 'account_name', ]) > @if(is_array($cell) && isset($cell['name'])) {{ $cell['name'] }} @else {{ $cell }} @endif
getAlignmentClass($index), 'type-row-indent' => $index === 'account_name', ]) > {{ $header }}
getAlignmentClass($index), 'whitespace-normal type-row-indent' => $index === 'account_name', 'whitespace-nowrap' => $index !== 'account_name', ]) > @if(is_array($cell) && isset($cell['name'])) {{ $cell['name'] }} @else {{ $cell }} @endif
getAlignmentClass($index), 'type-row-indent' => $index === 'account_name', ]) > {{ $cell }}
{{ $cell }}
@endsection