@php $isPdf = $isPdf ?? false; @endphp
|
Homeowner Checklist
Action items from your home evaluation
|
@php
$tenantLogoUrl = is_array($tenantLogo ?? null) ? ($tenantLogo['original'] ?? null) : null;
@endphp
|
| Homeowner: {{ $primaryCustomer['name'] ?? 'N/A' }} | Eval Date: {{ $scheduledDateTime ?: 'N/A' }} |
| Address: {{ $propertyAddress ?: 'N/A' }} | File #: {{ $schedule->appointment_id ?? 'N/A' }} |
| Evaluator: {{ $evaluatorNames ?: 'N/A' }} |
|
@if($checkboxClass === 'non-compliant')
|
{{ $questionName }}
@if(!empty($allSideNames))
({{ implode(', ', $allSideNames) }})
@endif
@if(!empty($questionCategory))
- {{ $questionCategory }}
@endif
{{-- Status summary for each variant --}}
@foreach($variants as $v)
@php
$vOption = $v['option']['option_title'] ?? 'N/A';
$vOptionType = $v['option']['option_type'] ?? null;
$vOptionLower = strtolower($vOption);
$vIsNonCompliance = $vOptionType !== null ? (int)$vOptionType === 0 : $vOptionLower === 'non-compliance';
$vIsCompliance = $vOptionType !== null ? (int)$vOptionType === 1 : $vOptionLower === 'compliance';
$vSideNames = [];
if (!empty($v['side_ids'])) {
foreach ($v['side_ids'] as $sId) {
if (!empty($sideMap[$sId])) $vSideNames[] = $sideMap[$sId];
}
}
$optionCat = data_get($v, 'option.option_category.category_name', '');
@endphp
@if(count($variants) > 1 && !empty($vSideNames))
{{ implode(', ', $vSideNames) }}:
@endif
@if($vIsNonCompliance)
@endforeach
{{-- Recommendations --}}
@if(!empty($groupedRecommendations))
Recommendations:
@foreach($groupedRecommendations as $recText)
Special Notes:
@foreach($groupedComments as $noteText)
|
|
|
|
- Not Applicable / Other |