@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=[]; @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; @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 Fabric Stack Control Type Control Position Control Colour Control Length Track Colour Bracket Type Blind Type Butting Type
{{$itemNo}} {{$location['pLocation']}} {{$location['pWidth']}} {{$location['pHieght']}} Versa Drape {{$location['pFabric']?? ''}} {{$location['pColor']?? ''}} {{$copArr['stacktype']?? ''}} {{$copArr['controltype(ib)']?? ''}} {{$copArr['wandposition']?? ''}} {{$copArr['wand/chaincolour']?? ''}} Standard Length {{$copArr['trackcolour']?? ''}} {{$copArr['fitting']?? ''}} {{$copArr['blindtype']?? ''}} {{$copArr['blindside']?? ''}} {{$copArr['cornertype']?? ''}} | {{$copArr['buttingtype']?? ''}} | {{$copArr['throughorbutting']?? ''}}
Item Additional Hardware Notes
{{$itemNo}} {!! nl2br(substr($hardstring, 0, -2)) !!} {{$location['sNotes']}}