File: D:/HostingSpaces/SBogers10/shop.komma.nl/app/Attributes/FreeProperties.php
<?php
namespace App\Attributes;
use App\Products\AbstractProductable;
use App\Properties\Models\PropertizableInterface;
use Illuminate\Support\Str;
use Komma\KMS\Core\Attributes\Attribute;
use Komma\KMS\Core\Attributes\Traits\LabelTrait;
/**
* @package App\Attributes
*/
class FreeProperties extends Attribute
{
use LabelTrait;
private ?PropertizableInterface $propertizable = 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,
];
return view('kms.attributes.freeProperties', $data)->render();
}
}