HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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();
    }
}