@php use Botble\Ecommerce\Models\ProductSpecificationAttributeTranslation; $currentLangCode = ProductSpecificationAttributeTranslation::getCurrentLanguageCode(); $visibleAttributes = $product->getVisibleSpecificationAttributes(); $specDisplayStyle = theme_option('product_specification_display_style', 'rows_columns'); @endphp @if ($specDisplayStyle === 'table')
@foreach($visibleAttributes as $attribute) @endforeach
{{ $attribute->name }} @if ($attribute->type == 'checkbox') @if ($attribute->pivot->value) {{ __('Yes') }} @else {{ __('No') }} @endif @else {{ ProductSpecificationAttributeTranslation::getDisplayValue($product, $attribute, $currentLangCode) }} @endif
@else
@foreach($visibleAttributes as $index => $attribute)
{{ $attribute->name }} @if ($attribute->type == 'checkbox') @if ($attribute->pivot->value) {{ __('Yes') }} @else {{ __('No') }} @endif @else {{ ProductSpecificationAttributeTranslation::getDisplayValue($product, $attribute, $currentLangCode) }} @endif
@endforeach
@endif