@php $totalSqm = 0.00; @endphp @foreach ($products as $val) @php $itemNo = 0; @endphp @foreach ($val as $lkey => $location) @php $itemNo ++; $prodSqm = $location['pWidth'] *$location['pHieght'] /1000000; $location['pAreasqm'] = $prodSqm; $totalSqm += $prodSqm; @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','requiresdrawings']; @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 if(!str_contains(strtolower($mlocation['productName']),'track')){ $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 @php $itemNo = 1; @endphp @foreach ($val as $lkey => $location) @php $itemNo ++; @endphp @endforeach @endforeach
Company Name 4878 Office USE
Order Name/No. {{$additionalInfo['quoteNo']}}
Pick Up or Delivery Delivery - {{$additionalInfo['DeliveryAddress']}}
Date {{$additionalInfo['CurrentDate']}}
All Sizes are OPENING Sizes - Supplier to take deductions
Item Room Location Width Height Material Mount Config Blade Type Stile Size Stile Design Code Layout Colour Mid-Rail Split Tiltrod Mounting Method Hinge Type Hinge Colour Tiltrod Type Frame M2
Height Critcal Frame Type Left Rig t Top Bott. {{number_format((float)$totalSqm, 2) }}
{{$itemNo}} {{$location['pLocation']}} {{$location['pWidth']}} {{$location['pHieght']}} Oasis {{$copArr['fit']?? ''}} Aero {{$copArr['bladesize']?? ''}} {{$copArr['stiles']?? ''}} {{$copArr['stiledesign']?? ''}} {{strtoupper($copArr['layoutcode']?? '')}} {{$copArr['colour']?? ''}} {{$copArr['midrailheights']?? ''}} {{$copArr['criticalmidrail']?? ''}} {{$copArr['splitcontrol']?? ''}}{{$copArr['splitrotationheight']?? ''}} {{$copArr['mountingmethod']?? ''}} {{$copArr['hingetype']?? ''}} {{$copArr['hingecolour']?? ''}} {{$copArr['controlstyle']?? ''}} {{$copArr['frametype']?? ''}} {{$copArr['left']?? ''}} {{$copArr['right']?? ''}} {{$copArr['top']?? ''}} {{$copArr['bottom']?? ''}} {{$location['pAreasqm']?? ''}}
T-Post Measurements Sliding/BiFold Options Additional Field Options Additional Hardware
Item T-Posts Frame Size Pelmet Type Open or Closed Tracking System Panel Type
{{$itemNo}} {{$copArr['t/bay/cornerpostposition']?? ''}} {{$copArr['framedepth']?? ''}} {{$copArr['pelmettype']?? ''}} {{$copArr['slidingopenorclosed']?? ''}} {{$copArr['trackingsystem']?? ''}} {{$copArr['paneltype']?? ''}} {{$additOptions ?? ''}} {!! nl2br($hardstring) !!}
Item Notes
{{$itemNo}} {{$location['sNotes']}}