<?php

namespace PortalPeople\virtualstock\models\products;

use Yii;

class Virtualstock extends \common\models\DynamicModel
{
    public static function segment_title(): string
    {
        return 'VirtualStock Attributes';
    }

    public static function localattributes(): array
    {
        return [
            
            'enabled' => [
                'rules' => [
                    ['boolean'],
                ],
                'label' => Yii::t('app', 'Enabled'),
                'input' => [
                    'input' => 'checkbox',
                    'options' => [
                    ]
                ],
            ],
            'supplier_sku' => [
                'rules' => [
                    ['string'],
                ],
                'label' => Yii::t('app', 'Supplier SKU'),
                'input' => 'default',
            ],
            'lead_time' => [
                'rules' => [
                    ['string'],
                ],
                'label' => Yii::t('app', 'Lead Time'),
                'input' => 'default',
            ],
            'supplier_code' => [
                'rules' => [
                    ['string'],
                ],
                'label' => Yii::t('app', 'Supplier Code'),
                'input' => 'default',
            ],
            'last_sync' => [
                'rules' => [
                    ['string'],
                ],
                'label' => Yii::t('app', 'Last Sync'),
                'input' => 'default',
            ],
             'haulierid' => [
                'rules' => [
                    ['safe']
                ],
                'label' => Yii::t('app', "Haulier ID",),
                'input' => [
                    'input' => 'checkboxList',
                    'fieldclass' => null,
                    'fieldlist' => \backend\models\Accounts::intids('haulier'),
                    'options' => ['label' => false, 'prompt' => 'Please Select'],
                    'width' => 'col-md-12',
                ],
            ],
        ];
    }

    public function dataLoad($modelData): void
    {
    }
}
