|
Escalator No. |
| MACHINE ROOM |
@php
$machineNumbers = $service_form->attributes->selected_machine_number ?? [];
$count = count($machineNumbers);
@endphp
@foreach($machineNumbers as $machineNo)
{{ $machineNo }} |
@endforeach
@for($i = $count; $i < 4; $i++)
|
@endfor
@if(isset($service_form->attributes->value[0]->rows))
@foreach($service_form->attributes->value[0]->rows as $machine_room)
| @if(isset($machine_room->item_no)) {{$machine_room->item_no}} @endif |
@if(isset($machine_room->description)) {{$machine_room->description}} @endif |
@if(isset($machine_room->values))
@foreach($machine_room->values as $value)
@php
$selected = $value->selected_object ?? null;
@endphp
@switch($selected)
@case(1)
@break
@case(2)
@break
@case(3)
@break
@case(4)
NA
@break
@default
@endswitch
|
@endforeach
@endif
@php
$machineValues = $machine_room->values ?? [];
$count = count($machineValues);
@endphp
@for($i = $count; $i < 4; $i++)
|
@endfor
@endforeach
@endif
|
|
|
Escalator No. |
@foreach($sections as $index => $label)
| {{ strtoupper($label) }} |
@if($label == 'Safety Features')
@php
$machineNumbers = $service_form->attributes->selected_machine_number ?? [];
$count = count($machineNumbers);
@endphp
@foreach($machineNumbers as $machineNo)
{{ $machineNo }} |
@endforeach
@for($i = $count; $i < 4; $i++)
|
@endfor
@else
|
|
|
|
@endif
@if(isset($service_form->attributes->value[$index]->rows))
@foreach($service_form->attributes->value[$index]->rows as $row)
| {{ $row->item_no ?? '' }} |
{{ $row->description ?? '' }} |
@if(isset($row->values))
@foreach($row->values as $value)
@php
$selected = $value->selected_object ?? null;
@endphp
@switch($selected)
@case(1)
@break
@case(2)
@break
@case(3)
@break
@case(4)
NA
@break
@default
@endswitch
|
@endforeach
@endif
@php
$machineValues = $row->values ?? [];
$count = count($machineValues);
@endphp
@for($i = $count; $i < 4; $i++)
|
@endfor
@endforeach
@endif
@endforeach
|
|
LEGEND: √ = NORMAL, X = TO BE REPAIRED OR OVERHAULED, O = SERVICED, REPLACED, LUBRICATED & CLEANED, NA = NOT APPLICABLE
|