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/SBogers85/equichecker.com/app/KommaApp/Debtors/Kms/DebtorSection.php
<?php
/**
 *
 *
 * @author      Komma <info@komma.pro>
 * @copyright   (c) 2012-2016, Komma Mediadesign
 */

namespace KommaApp\Debtors\Kms;

use Carbon\Carbon;
use KommaApp\Kms\Core\Kms;
use KommaApp\Kms\Core\Sections\KmsSection;
use KommaApp\Kms\Core\Sections\KmsSectionTabs;
use KommaApp\Kms\Core\Sections\KmsSiteSection;

class DebtorSection extends KmsSection
{
    protected $title = "Debtors";
    protected $subTitle = "<a href='/kms/debtors-import'>Importeren</a>";
    protected $slug = "debtors";

    protected $modelAttributesData = [


        'deb_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/global.general'
            ],
        ],
        'debtors_type' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsSelect',
            'options' => [
                'label' => 'type',
                'placeholder' => 'Bv: "Bedrijf"',
                'data' => [
                    ['value' => '1', 'content' => 'Bedrijf', 'htmlContent' => 'Bedrijf'],
                    ['value' => '2', 'content' => 'Particulier', 'htmlContent' => 'Particulier'],
                ],
            ]
        ],
        'debtors_code' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.debtors_code',
                'placeholder' => 'Bv: 454521',
                'validation' => [
                    'rules' => 'required'
                ],
            ]
        ],
        'company_name' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.company_name',
                'placeholder' => 'Bv: Komma',


            ]
        ],
        'company_type' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.company_type',
                'placeholder' => 'Bv: Debiteur',

            ]
        ],

        'contact_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/global.contact_data'
            ],
            'tab' => 'lang_get:kms/global.contact_data',
        ],
        'company_phone' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.company_phone',
                'placeholder' => 'Bv: +31 (0)495 586 326',
            ],
            'tab' => 'lang_get:kms/global.contact_data',
        ],
        'office_phone' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.office_phone',
                'placeholder' => 'Bv: +31 (0)495 586 326',

            ],
            'tab' => 'lang_get:kms/global.contact_data',
        ],
        'fax' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.fax',
                'placeholder' => 'Bv: +31 (0)495 586 327',

            ],
            'tab' => 'lang_get:kms/global.contact_data',
        ],
        'mobile' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.mobile',
                'placeholder' => 'Bv: +31 (0)6 12 45 78 45',

            ],
            'tab' => 'lang_get:kms/global.contact_data',
        ],
        'email' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/global.email',
                'placeholder' => 'Bv: Sergio@dale-int.com',
                'validation' => [
                    'rules' => 'email'
                ],

            ],
            'tab' => 'lang_get:kms/global.contact_data',
        ],
        'deb_status_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/debtors.deb_status_label'
            ],

        ],

        'debt_status' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsSelectROG',
            'options' => [
                'label' => 'lang_get:kms/debtors.debt_status',
                'placeholder' => 'Bv: Groen',
                'data' => [
                    ['value' => 'G', 'content' => 'Groen', 'htmlContent' => '<span class="green-circle"></span>Groen'],
                    ['value' => 'O', 'content' => 'Oranje', 'htmlContent' => '<span class="orange-circle"></span>Oranje'],
                    ['value' => 'R', 'content' => 'Rood', 'htmlContent' => '<span class="red-circle"></span>Rood'],
                ],
            ]
        ],
        'debt_remarks' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextArea',
            'options' => [
                'label' => 'lang_get:kms/debtors.debt_remarks',
                'placeholder' => 'Bv: Status opmerking',

            ]
        ],
        'office_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/debtors.office_address',
            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],

        'office_street' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.street',
                'placeholder' => 'Bv: Wolfswinkel',

            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],

        'office_address_2' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.address_2',
                'placeholder' => 'Bv: Randwegzuid',
            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],
        'office_nr' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.nr',
                'placeholder' => 'Bv: 1',

            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],
        'office_addition' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.addition',
                'placeholder' => 'Bv: a',
            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],
        'office_postal' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.postal',
                'placeholder' => 'Bv: 6021 KG',

            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],
        'office_city' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.city',
                'placeholder' => 'Bv: Budel',

            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],
        'office_country' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsSelect',
            'options' => [
                'label' => 'lang_get:kms/global.country',
                'placeholder' => 'Bv: "Nederland"',
                'data' => 'KommaApp\Countries\Kms\CountryRepository@getCountriesForSiteSelectBox',
            ],
            'tab' => 'lang_get:kms/debtors.office',
        ],
        'private_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/debtors.private',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],

        'initials' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.initials',
                'placeholder' => 'Bv: J.',

            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'name_insertion' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.name_insertion',
                'placeholder' => 'Bv: van',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'last_name' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.last_name',
                'placeholder' => 'Bv: Doe',

            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'nick_name' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.nick_name',
                'placeholder' => 'Bv: John',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'private_phone' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.private_phone',
                'placeholder' => 'Bv: +31 (0)495 586 326',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],

        'private_add_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/debtors.private_address',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],

        'private_street' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.street',
                'placeholder' => 'Bv: Wolfswinkel',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],

        'private_address_2' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.address_2',
                'placeholder' => 'Bv: Wolfswinkel',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'private_nr' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.nr',
                'placeholder' => 'Bv: 5',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'private_addition' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.addition',
                'placeholder' => 'Bv: a',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'private_postal' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.postal',
                'placeholder' => 'Bv: 6021 KG',
                     ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'private_city' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.city',
                'placeholder' => 'Bv: Budel',

            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],
        'private_country' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsSelect',
            'options' => [
                'label' => 'lang_get:kms/global.country',
                'placeholder' => 'Bv: "Nederland"',
                'data' => 'KommaApp\Countries\Kms\CountryRepository@getCountriesForSiteSelectBox',
            ],
            'tab' => 'lang_get:kms/debtors.private',
        ],

        'post_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/debtors.post_address',
                'placeholder' => '',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],

        'post_street' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.street',
                'placeholder' => 'Bv: Wolfswinkel',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],
        'post_address_2' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.address_2',
                'placeholder' => 'Bv: Wolfswinkel',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],
        'post_nr' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.nr',
                'placeholder' => 'Bv: 5',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],
        'post_addition' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.addition',
                'placeholder' => 'Bv: a',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],
        'post_postal' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.postal',
                'placeholder' => 'Bv: 6021 KG',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],
        'post_city' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/debtors.city',
                'placeholder' => 'Bv: Budel',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],
        'post_country' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsSelect',
            'options' => [
                'label' => 'lang_get:kms/global.country',
                'placeholder' => 'Bv: "Nederland"',
                'data' => 'KommaApp\Countries\Kms\CountryRepository@getCountriesForSiteSelectBox',
            ],
            'tab' => 'lang_get:kms/debtors.post_address',
        ],

        'remarks_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/global.remarks'
            ],
        ],

        'remarks' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextArea',
            'options' => [
                'label' => 'lang_get:kms/global.remarks',
                'placeholder' => 'Opmerking',

            ]
        ],


    ];

    function __construct(
        Kms $kms,
        DebtorRepository $repository,
        KmsSectionTabs $tabs)
    {
        parent::__construct($kms, $repository, $tabs);
    }
}