4. Technical Details
@php $tech_id = 0; $tech_det_array = $tech_det_array ?? []; $val_field_array = $val_field_array ?? []; $val_field_desc_array = $val_field_desc_array ?? []; $val_counter = $val_counter ?? 0; @endphp @foreach($formTechDetail as $form) @php $tech_id++; $tech_desc = optional($form->formMaster)->c_field_name; $tech_yn = $form->c_allow_yn; $tech_code = optional($form->formMaster)->c_short_code; $tech_field_type = optional($form->formMaster)->c_field_type ?? 'text'; // default value safe handling $value = $tech_det_array[$tech_id] ?? ''; if($tech_field_type == "number" && $value == "") { $value = 0; } @endphp {{-- Hours of Operation --}} @if($tech_desc == "Hours of Operation") {{-- Mode of Operation --}} @elseif($tech_desc == "Mode of Operation") {{-- Other Fields --}} @else @endif @php $val_field_array[$val_counter] = $tech_code; $val_field_desc_array[$val_counter] = $tech_desc; $val_counter++; @endphp @endforeach
4.{{ $tech_id }} * {{ $tech_desc }}
4.{{ $tech_id }}. {{ $tech_desc }}
4.{{ $tech_id }}. {{ $tech_desc }}