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