File: D:/HostingSpaces/SBogers85/equichecker.com/app/KommaApp/Debtors/Kms/DebtorImportSection.php
<?php
/**
* Short description for the file.
*
* @author Tim Van Samang <timvansamang@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace KommaApp\Debtors\Kms;
use KommaApp\Kms\Core\Kms;
use KommaApp\Kms\Core\Sections\KmsSectionTabs;
class DebtorImportSection extends DebtorSection
{
protected $title = "Debiteuren";
protected $subTitle = "<a href='/kms/debtors-import'>Importeren</a>";
protected $slug = "debtors";
public $submitButtonLabel = "import";
public $submitRoute = "kms.debtors.import";
protected $modelAttributesData = [
// Product Fields
'information_label' => [
'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
'options' => [
'title' => 'Product Information'
],
],
'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'],
],
]
],
'import_file' => [
'type' => 'KommaApp\Kms\Core\Attributes\KmsFile',
'options' => [
'label' => 'Bestand',
'placeholder' => 'Kies het bestand voor de import',
'accept' => '.xls'
],
],
];
function __construct(Kms $kms, DebtorRepository $repository, KmsSectionTabs $tabs)
{
parent::__construct($kms, $repository, $tabs);
}
}