{{ $company ?? 'Medical Center' }}
Balance Sheet
As of: {{ $data['as_of_date'] ?? 'N/A' }}
ASSETS
@foreach($data['assets']['items'] ?? [] as $item) @php $itemData = (array)$item; $childrenArray = $itemData['children'] ?? []; @endphp @if(is_array($childrenArray) && count($childrenArray) > 0) @foreach($childrenArray as $child) @php $childData = (array)$child; @endphp @endforeach @endif @endforeach
{{ number_format($childData['balance'] ?? 0, 2) }}
{{ number_format($data['assets']['total'] ?? 0, 2) }}
LIABILITIES
@foreach($data['liabilities']['items'] ?? [] as $item) @php $itemData = (array)$item; $childrenArray = $itemData['children'] ?? []; @endphp @if(is_array($childrenArray) && count($childrenArray) > 0) @foreach($childrenArray as $child) @php $childData = (array)$child; @endphp @endforeach @endif @endforeach
{{ number_format($childData['balance'] ?? 0, 2) }}
{{ number_format($data['liabilities']['total'] ?? 0, 2) }}
EQUITY
@foreach($data['equity']['items'] ?? [] as $item) @php $itemData = (array)$item; $childrenArray = $itemData['children'] ?? []; @endphp @if(is_array($childrenArray) && count($childrenArray) > 0) @foreach($childrenArray as $child) @php $childData = (array)$child; @endphp @endforeach @endif @endforeach
{{ number_format($childData['balance'] ?? 0, 2) }}
{{ number_format($data['equity']['total'] ?? 0, 2) }}
{{ number_format(($data['liabilities']['total'] ?? 0) + ($data['equity']['total'] ?? 0), 2) }}