|
Overall size @if($productDetailsDto->tearsheet) |
{!! $productInfo['size'] !!} |
|---|---|
| Weight |
{{ $productInfo['weight'] }} lbs |
| Materials | @if(strpos($materials, "w/")) @php $materialsArray = explode('w/', $materials); @endphp @foreach($materialsArray as $materialPart)
{{ $productInfo['materials'] }} |
@endif
| Cushion yardage |
@if($productModel->isSet())
@php
$numberOfItems = 0;
$totalCushionsYardage = 0;
@endphp
@foreach($productModel->getSetEntries() as $setEntry)
@php
$quantity = $setEntry->qty + $setEntry->optional_qty;
$isOptional = $setEntry->optional_qty > 0;
@endphp
@if($quantity > 0 && $setEntry->product->cushion_yardage > 0)
@php $numberOfItems++; @endphp
{{ $setEntry->product->name }}: {{ $quantity }} x {{ $setEntry->product->cushion_yardage }} yards
@if($quantity > 1)
({{ $quantity * $setEntry->product->cushion_yardage }}) yards
@endif
@if($isOptional) ' (optional)' @endif @if(!$isOptional) @php $totalCushionsYardage += $quantity * $setEntry->product->cushion_yardage; @endphp @endif @endif @endforeach @if($numberOfItems > 1) TOTAL: {{ $totalCushionsYardage }} yards. @endif *COM fabric yardage may vary depending on the fabric pattern or repeat @else {{ $productInfo['cushion_yardage'] }} yards. *COM fabric yardage may vary depending on the fabric pattern or repeat. @endif |
| Floor Protection |
@if(count($productDetailsDto->floor_protections) == 1)
{{ $productDetailsDto->floor_protections[0]->floor_protection }} @else @foreach($productDetailsDto->floor_protections as $productWithFloorProtection) {{ $productWithFloorProtection->name }}: {{ $productWithFloorProtection->floor_protection }} @endforeach @endif |
| Assembly |
{{ $productInfo['assembly'] }}
@if($productInfo['assembly_instructions'])
|
| Availability | {!! $productInfo['product_page_availability'] !!} |
| Umbrella ready | @if($productInfo['umbrella_ready']) Yes: {{ $productInfo['umbrella_opening'] }} Hole Opening @else No @endif |
| Warranty |
{!! $productInfo['warranty'] !!}
@if($warranty === 'Lifetime warranty')
Full Warranty Information @endif |
| Ships In | {{ $productInfo['ships_in'] }} |