File: D:/HostingSpaces/Neopoints/momsecurity.be/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'),
]);
}
}