Warning: Use of undefined constant PATH - assumed 'PATH' (this will throw an Error in a future version of PHP) in /home/staging/wt-git/wt/new-design/views/partials/product_details/_attributes.blade.php on line 5

Warning: file_get_contents(PATHnew-design/data/attributes.json): failed to open stream: No such file or directory in /home/staging/wt-git/wt/new-design/views/partials/product_details/_attributes.blade.php on line 5
@foreach($attributes as $attribute) @php $attributeOptions = []; @endphp @if(empty($productDetailsDto->info['is_ultimate_cover']) && $attribute->name === 'attributes_tangent_cover_color') @continue @endif @if(empty($productDetailsDto->info['is_koverroos_cover']) && in_array($attribute->name, ['attributes_cover_type', 'attributes_cover_color'])) @continue @endif @php // Teak Treatment if ($attribute->name === 'attributes_teak_treatment' && !empty($productDetailsDto->info['has_teak_treatment_attribute']) && !empty($productDetailsDto->info['teak_treatment_options']) ) { $teakTreatmentOptions = $productDetailsDto->info['teak_treatment_options']; @endphp @include('partials.product_details._teak_treatment_select', [ "attribute" => $attribute, "attributeOptions" => $teakTreatmentOptions ]) @php // Cushion Fabric colors } elseif ($attribute->name === 'attributes_cushion_fabric_color' && !empty($productDetailsDto->info['cushion_colors'])) { $cushionColorOptions = $productDetailsDto->info['cushion_colors']; @endphp @include('partials.product_details._fabric_color_select', [ "attribute" => $attribute, "attributeOptions" => $cushionColorOptions, "selectOptionTitle" => $productDetailsDto->info['cushion_fabric_color_menu_title'] ]) @php } elseif ($attribute->name === 'attributes_cushion_welt_color' && !empty($productDetailsDto->info['welt_colors'])) { $selectOption = 'No welt'; $attributeOptions = $productDetailsDto->info['welt_colors']; // Sling Fabric colors } elseif ($attribute->name === 'attributes_sling_color' && !empty($productDetailsDto->info['attributes_sling_color'])) { $slingColorOptions = $productDetailsDto->info['attributes_sling_color']; @endphp @include('partials.product_details._fabric_color_select', [ "attribute" => $attribute, "attributeOptions" => $slingColorOptions, "selectOptionTitle" => 'Select Sling Color' ]) @php // Umbrella Fabric colors } elseif ($attribute->name === 'attributes_umbrella_fabric_color' && !empty($productDetailsDto->info['attributes_umbrella_fabric_color'])) { $umbrellaColorOptions = $productDetailsDto->info['attributes_umbrella_fabric_color']; @endphp @include('partials.product_details._fabric_color_select', [ "attribute" => $attribute, "attributeOptions" => $umbrellaColorOptions, "selectOptionTitle" => 'Select Umbrella Color', "hasSpectraFabric" => $productDetailsDto->hasSpectraFabric ]) @php // Director Chair Fabric colors (only for sets, it should handle all Director fabic options) } elseif ($productDetailsDto->productModel->isSet() && !$productDetailsDto->productModel->isUmbrellaSet() && !$productDetailsDto->productModel->isDirectorSet() && $attribute->name === 'attributes_director_fabric_color' && !empty($productDetailsDto->info['attributes_director_fabric_color'])) { $directorChairColorOptions = $productDetailsDto->info['attributes_director_fabric_color']; @endphp @include('partials.product_details._fabric_color_select', [ "attribute" => $attribute, "attributeOptions" => $directorChairColorOptions, "selectOptionTitle" => 'Select Fabric Color' ]) @php } else { $attributeOptions = $productDetailsDto->info[$attribute->name]; } @endphp @if(empty($attributeOptions)) @continue @else @php $selectOption = 'Select'; @endphp
@endif @endforeach @if(!empty($productDetailsDto->is_plaque))
@endif