File: D:/HostingSpaces/SBogers10/shop.komma.nl/app/Attributes/FixedProperties.php
<?php
namespace App\Attributes;
use App\Products\AbstractProductable;
use Illuminate\Support\Str;
use Komma\KMS\Core\Attributes\Attribute;
use Komma\KMS\Core\Attributes\Traits\LabelTrait;
/**
* @package App\Attributes
*/
class FixedProperties extends Attribute
{
use LabelTrait;
private Attribute $categoriesAttribute;
private ?AbstractProductable $productable = null;
/**
* Returns a view that visually represents this attribute
*/
public function render(): string
{
$data = [
'key' => (string) $this->getKey(),
'iso_2' => $this->associatedLanguage ? $this->associatedLanguage->iso_2 : null,
'value' => $this->getValue()
];
return view('kms.attributes.fixedProperties', $data)->render();
}
}