@extends('components.company.reports.layout') @section('content')
{{ $report->getTitle() }}
{{ $company->name }}
@if($startDate && $endDate)
Date Range: {{ $startDate }} to {{ $endDate }}
@else
As of {{ $endDate }}
@endif
@if(array_key_exists('account_code', $report->getHeaders())) @else @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 }}
getAlignmentClass($index), 'underline-bold' => $loop->last, ]) > {{ $cell }}
@if(array_key_exists('account_code', $report->getHeaders())) @else @endif @foreach($report->getOverviewHeaders() as $index => $header) @endforeach @foreach($report->getOverview() as $overviewCategory) @foreach($overviewCategory->header as $index => $header) @endforeach @foreach($overviewCategory->data as $overviewAccount) @foreach($overviewAccount as $index => $cell) @endforeach @endforeach @foreach($overviewCategory->summary as $index => $summaryCell) @endforeach @if($overviewCategory->header['account_name'] === 'Starting Balance') @foreach($report->getOverviewAlignedWithColumns() as $summaryRow) @foreach($summaryRow as $index => $summaryCell) @endforeach @endforeach @endif @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
{{ $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 }}
@endsection