@php @endphp @foreach ($products as $val) @php $itemNo = 0; @endphp @foreach ($val as $lkey => $location) @php $itemNo ++; @endphp @endforeach @endforeach @php $itemNo = 1; @endphp @foreach ($products as $val) $copArr= array(); @foreach ($val as $lkey => $location) $copArr= array(); @foreach ($location['options'] as $key => $specProdOption) @php $optName = ''; $typevalueLoc=json_decode($specProdOption['typeValue']) ; if(is_array($typevalueLoc)){ $typevalueLoc = implode(', ',$typevalueLoc); } $optName = str_replace(' ', '',strtolower($specProdOption['optionName'])); $copArr["$optName"] = $typevalueLoc; @endphp @endforeach @foreach ($location['options'] as $key => $specProdOption) @php $optName = ''; $typevalueLoc=json_decode($specProdOption['typeValue']) ; if(is_array($typevalueLoc)){ $typevalueLoc = implode(', ',$typevalueLoc); } $optName = str_replace(' ', '',strtolower($specProdOption['optionName'])); $copArr["$optName"] = ''; @endphp @endforeach @php $itemNo ++; @endphp @endforeach @php $itemNo = 1; @endphp @foreach ($val as $lkey => $location) @php $copArr=[]; $additOptions = ''; $addOpts = ['widthofrebate','handleside','cutouttype','cutoutblock','raketype','cutoutwidth','heighttotopedge','heighttobottomedge','tierontierpanelsplittype','tierontiersplitheight','widthtoopeningheight','rightheight','leftheight']; @endphp @foreach ($location['options'] as $key => $specProdOption) @php $optName = ''; $typevalueLoc=json_decode($specProdOption['typeValue']) ; if(is_array($typevalueLoc)){ $typevalueLoc = implode(', ',$typevalueLoc); } $optName = str_replace(' ', '',strtolower($specProdOption['optionName'])); $copArr["$optName"] = $typevalueLoc; if(in_array($optName,$addOpts)){ $additOptions = $additOptions . $specProdOption['optionName'].' - '. $typevalueLoc .', '; } @endphp @endforeach @php $hardstring = ''; $rowH = 0; @endphp @foreach ($relatedHardwareGrp as $key3 => $hlocation) @if($location['pSpecId'] == $key3) @foreach($hlocation as $key4 => $mlocation) @php $hwstring = $mlocation['pQty'].' X '.$mlocation['productName']; if($mlocation['pWidth'] > 0){ $hwstring = $hwstring .' @ '. $mlocation['pWidth'] . 'mm'; } if($mlocation['pNotes'] != ''){ $hwstring = $hwstring . ' ('.$mlocation['pNotes'] .')'; } $hardstring = $hardstring . $hwstring . "\n"; $rowH +=30; @endphp @endforeach @endif @endforeach @php if($rowH == 0){ $rowHeight = '30'; }else{ $rowHeight = (string)$rowH; } @endphp @php $itemNo ++; @endphp @endforeach @endforeach
Company Name 4878 Factory Direct Shutters, Blinds & Awnings Office USE
Order Name/No. {{$additionalInfo['quoteNo']}}
Pick Up or Delivery Delivery - {{$additionalInfo['DeliveryAddress']}}
Date {{$additionalInfo['CurrentDate']}}
Sizes are Make Sizes
Item Room Location Width Height Product Type Control Type Installation Type Mount Config Control Side Tube Type Locks / Tie Downs & Bottom Seal Type Headbox Colour Side Channel Bottom Rail Fabric
Colour Rivets Type Colour
{{$itemNo}} {{$location['pLocation']}} {{$location['pWidth']}} {{$location['pHieght']}} Zipguide {{$copArr['controltype']?? ''}}{{$copArr['motor(aob)']?? ''}} {{$copArr['installationtype(a)']?? ''}} {{$copArr['mount(aob)']?? ''}} {{$copArr['controlside']?? ''}} {{$copArr['tubetype']?? ''}} {{$copArr['sealtype']?? ''}} | {{$copArr['tiedownoption']?? ''}} {{$copArr['headboxcolour']?? ''}} {{$copArr['sidechannelcolour']?? ''}} {{$copArr['supplyrivets']?? ''}} {{$copArr['bottomweightbar']?? ''}} {{$copArr['bottombarcolour']?? ''}} {{$location['pFabric']?? ''}} - {{$location['pColor']?? ''}}
Item Additional Hardware Notes
{{$itemNo}} {!! nl2br($hardstring) !!} {{$location['sNotes']}}