@php use Botble\Ecommerce\Models\ProductSpecificationAttributeTranslation; use Botble\Ecommerce\Models\SpecificationTable; $currentLangCode = ProductSpecificationAttributeTranslation::getCurrentLanguageCode($language ?? null); $isDefaultLanguage = ProductSpecificationAttributeTranslation::isEditingDefaultLanguage(); $groupedAttributes = $specificationTable->getSortedAttributesForProduct($product); @endphp