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/momsecurity.komma.nl/app/WebsiteConfig/WebsiteConfigSection.php
<?php


namespace App\WebsiteConfig;


use App\Buttons\Kms\ButtonService;
use Illuminate\Database\Eloquent\Model;
use Komma\KMS\Core\Attributes\MultiSelect;
use Komma\KMS\Core\Attributes\Seperator;
use Komma\KMS\Core\Attributes\TextField;
use Komma\KMS\Core\Attributes\Title;
use Komma\KMS\Core\Sections\Section;
use App\Servicepoints\Kms\ServicepointService;
use Komma\KMS\Users\Models\KmsUserRole;

class WebsiteConfigSection extends Section
{

    public function defineAttributesAndTabs(Model $currentModel = null): void
    {
        $this->tabs->makeTab()->addItems([

            (new Title())
                ->setMinimumUserRole(KmsUserRole::Admin)
                ->setLabelText('Bedrijfsgegevens'),

            (new TextField())
                ->setReference('company_name')
                ->setLabelText('Bedrijfsnaam'),

            (new TextField())
                ->setReference('company_address')
                ->setLabelText('Adres'),

            (new TextField())
                ->setReference('company_zip')
                ->setLabelText('Postcode'),

            (new TextField())
                ->setReference('company_city')
                ->setLabelText('Stad'),

            (new TextField())
                ->setReference('company_email')
                ->setLabelText('E-mail'),

            (new TextField())
                ->setReference('company_phone_call')
                ->setLabelText('Telefoon link'),

            (new TextField())
                ->setReference('company_phone_display')
                ->setLabelText('Telefoon weergave'),


            (new Seperator()),


            (new Title())
                ->setLabelText('Google Maps'),

            (new TextField())
                ->setPlaceholderText('Ex. 51.257929')
                ->setReference('google_maps_lat')
                ->setLabelText('Latitude'),

            (new TextField())
                ->setPlaceholderText('Ex. 5.595330')
                ->setReference('google_maps_long')
                ->setLabelText('Longitude'),
        ]);
    }
}