@php $pciBoqRows = $rows ?? []; @endphp @foreach($pciBoqRows as $r) @php $t = is_array($r) ? (string) ($r['type'] ?? '') : ''; @endphp @if($t === 'title') {{ $r['text'] ?? '' }} @elseif($t === 'scheme_cost') {{ $r['sr'] ?? '' }}{{ $r['item'] ?? '' }}{{ $r['cost_display'] ?? '' }} @elseif($t === 'col_headers') SR. NOITEMS OF WORKSCOST @elseif($t === 'category') {{ $r['sr'] ?? '' }}{{ $r['item'] ?? '' }} @elseif($t === 'chapter_row') {{ $r['sr'] ?? '' }}{{ $r['item'] ?? '' }}{{ $r['cost_display'] ?? '' }} @elseif($t === 'subtotal_a') {{ $r['item'] ?? '' }}{{ $r['cost_display'] ?? '' }} @elseif($t === 'other_header') {{ $r['item'] ?? '' }} @elseif($t === 'other_row') {{ $r['sr'] ?? '' }}{{ $r['item'] ?? '' }}{{ $r['cost_display'] ?? '' }} @elseif($t === 'grand' || $t === 'million') {{ $r['item'] ?? '' }}{{ $r['cost_display'] ?? '' }} @endif @endforeach