@php $models=\App\Models\HVACModel::all(); $families=\App\Models\HVACFamily::all(); $modelLines=\App\Models\HVACModelLine::all(); $heatStripVersions=\App\Models\HVACHeatStripVersion::all(); $refrigerantTypes=\App\Models\HVACRefrigerantType::all(); $modelMapping=[]; foreach ($models AS $m){ $sku=substr($m->sku,0,7).substr($m->sku,-1); $mappingLevel=&$modelMapping; for ($s=0;$s<=7;$s++){ $l=($s==3)?2:1; $symbol=substr($sku,$s,$l); if (!isset($mappingLevel[$symbol])){ $mappingLevel[$symbol]=[]; } $mappingLevel=&$mappingLevel[$symbol]; if ($l==2){ $s++; } } } @endphp @if (isset($withStep1))
Note: Check * if you need all options from that list. The chosen option will affect only the next elements of the selector but will be completely ignored during device selection.
@endifA | Family | AIO | |
? | Model Line | @if (isset($withStep1)) | * | @endif
? | Heat Pump Version | @if (isset($withStep1)) | * | @endif
? | Capacity | @if (isset($withStep1)) | * | @endif
? | With ERV ? | @if (isset($withStep1)) | * | @endif
? | Refrigerant Type | @if (isset($withStep1)) | * | @endif
H | |||
? | Voltage | @if (isset($withStep1)) | * | @endif