<?php

namespace modules\forms\models;

use Yii;
use \common\models\DynamicModel;
use \kartik\date\DatePicker;
use \yii\helpers\ArrayHelper;
use modules\activities\models\Activities;
use modules\users\models\User;
use modules\custom\models\Accounts;

class Dt005 extends \common\models\DynamicModel
{
    public $printlayout = 'Portrait';
    public $form = 'dt005';
    public $formname = 'Vehicle Tool Check Form (DT005)';
    
    public $formLayout = '/dt005/_form.php';
    public $viewLayout = '@modules/forms/views/dt005/_view.php';
    public $formType = 'Inspection';
    public $createpath = '/forms/dt005/create';

    public static function localAttributes()
    {
        return [
            'actid' => [
                'rules' => [['string']],
                'label' => 'Act Id',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'absorbentspillpadsid' => [
                'rules' => [['string']],
                'label' => 'Absorbentspillpadsid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'absorbentspillpadsqty' => [
                'rules' => [['string']],
                'label' => 'Absorbentspillpadsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'actid' => [
                'rules' => [['safe']],
                'label' => 'Act Id',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'anglegrinderid' => [
                'rules' => [['string']],
                'label' => 'Anglegrinderid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'anglegrinderqty' => [
                'rules' => [['string']],
                'label' => 'Anglegrinderqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'barid' => [
                'rules' => [['string']],
                'label' => 'Barid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'barqty' => [
                'rules' => [['string']],
                'label' => 'Barqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'baseplatefit' => [
                'rules' => [['string']],
                'label' => 'Baseplatefit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'baseplateid' => [
                'rules' => [['string']],
                'label' => 'Baseplateid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'bottlecageid' => [
                'rules' => [['string']],
                'label' => 'Bottlecageid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'bottlecageqty' => [
                'rules' => [['string']],
                'label' => 'Bottlecageqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'checkedby' => [
                'rules' => [['safe']],
                'label' => 'Checkedby',
                'input' => ['input' => 'widget', 'fieldclass' => DatePicker::class, 'options' => ['type' => 1, 'pluginOptions' => ['todayBtn' => true, 'format' => 'dd/mm/yyyy']], 'width' => 'col-12'],
                'search' => false,
            ],
            'checkedprint' => [
                'rules' => [['string']],
                'label' => 'Checkedprint',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'client_name' => [
                'rules' => [['string']],
                'label' => 'clientid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'collectiondate' => [
                'rules' => [['safe']],
                'label' => 'Collection Date',
                'input' => ['input' => 'widget', 'fieldclass' => DatePicker::class, 'options' => ['type' => 1, 'pluginOptions' => ['todayBtn' => true, 'format' => 'dd/mm/yyyy']], 'width' => 'col-12'],
                'search' => false,
            ],
            'created_at' => [
                'rules' => [['safe']],
                'label' => 'Created At',
                'input' => ['input' => 'widget', 'fieldclass' => DatePicker::class, 'options' => ['type' => 1, 'pluginOptions' => ['todayBtn' => true, 'format' => 'dd/mm/yyyy']], 'width' => 'col-12'],
                'search' => false,
            ],
            'created_by' => [
                'rules' => [['safe']],
                'label' => 'Created By',
                'input' => ['input' => 'textInput', 'options' => ['label' => false, 'type' => 'number'], 'width' => 'col-12'],
                'search' => false,
            ],
            'created_by2' => [
                'rules' => [['integer']],
                'label' => 'Created By2',
                'input' => ['input' => 'textInput', 'options' => ['label' => false, 'type' => 'number'], 'width' => 'col-12'],
                'search' => false,
            ],
            'crucible1shotpotsqty' => [
                'rules' => [['string']],
                'label' => 'Crucible1shotpotsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'crucible1shotpotstype' => [
                'rules' => [['string']],
                'label' => 'Crucible1shotpotstype',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'crucibleforkfit' => [
                'rules' => [['string']],
                'label' => 'Crucibleforkfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'crucibleforkid' => [
                'rules' => [['string']],
                'label' => 'Crucibleforkid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cruciblelidid' => [
                'rules' => [['string']],
                'label' => 'Cruciblelidid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cruciblelidqty' => [
                'rules' => [['string']],
                'label' => 'Cruciblelidqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'crucibletripodid' => [
                'rules' => [['string']],
                'label' => 'Crucibletripodid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'crucibletripodqty' => [
                'rules' => [['string']],
                'label' => 'Crucibletripodqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cuttingguidefit' => [
                'rules' => [['string']],
                'label' => 'Cuttingguidefit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cuttingguideid' => [
                'rules' => [['string']],
                'label' => 'Cuttingguideid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cuttingrollersfit' => [
                'rules' => [['string']],
                'label' => 'Cuttingrollersfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cuttingrollersid' => [
                'rules' => [['string']],
                'label' => 'Cuttingrollersid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cuttingtorchfit' => [
                'rules' => [['string']],
                'label' => 'Cuttingtorchfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'cuttingtorchid' => [
                'rules' => [['string']],
                'label' => 'Cuttingtorchid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'date' => [
                'rules' => [['safe']],
                'label' => 'Date',
                'input' => ['input' => 'widget', 'fieldclass' => DatePicker::class, 'options' => ['type' => 1, 'pluginOptions' => ['todayBtn' => true, 'format' => 'dd/mm/yyyy']], 'width' => 'col-12'],
                'search' => false,
            ],
            'delechauxbeamid' => [
                'rules' => [['string']],
                'label' => 'Delechauxbeamid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'delechauxbeamqty' => [
                'rules' => [['string']],
                'label' => 'Delechauxbeamqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'deleted' => [
                'rules' => [['boolean']],
                'label' => 'Deleted',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'deleted_at' => [
                'rules' => [['safe']],
                'label' => 'Deleted At',
                'input' => ['input' => 'widget', 'fieldclass' => DatePicker::class, 'options' => ['type' => 1, 'pluginOptions' => ['todayBtn' => true, 'format' => 'dd/mm/yyyy']], 'width' => 'col-12'],
                'search' => false,
            ],
            'disccutterid' => [
                'rules' => [['string']],
                'label' => 'Disccutterid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'disccutterqty' => [
                'rules' => [['string']],
                'label' => 'Disccutterqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'distancegaugeid' => [
                'rules' => [['string']],
                'label' => 'Distancegaugeid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'distancegaugeqty' => [
                'rules' => [['string']],
                'label' => 'Distancegaugeqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'dryinglidid' => [
                'rules' => [['string']],
                'label' => 'Dryinglidid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'dryinglidqty' => [
                'rules' => [['string']],
                'label' => 'Dryinglidqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'engineoilid' => [
                'rules' => [['string']],
                'label' => 'Engineoilid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'engineoilqty' => [
                'rules' => [['string']],
                'label' => 'Engineoilqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'extensionleadid' => [
                'rules' => [['string']],
                'label' => 'Extensionleadid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'extensionleadqty' => [
                'rules' => [['string']],
                'label' => 'Extensionleadqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'fileid' => [
                'rules' => [['string']],
                'label' => 'Fileid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'fileqty' => [
                'rules' => [['string']],
                'label' => 'Fileqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'fireextinguisherid' => [
                'rules' => [['string']],
                'label' => 'Fireextinguisherid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'fireextinguisherqty' => [
                'rules' => [['string']],
                'label' => 'Fireextinguisherqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'flashbackarrestorsfit' => [
                'rules' => [['string']],
                'label' => 'Flashbackarrestorsfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'flashbackarrestorsid' => [
                'rules' => [['string']],
                'label' => 'Flashbackarrestorsid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'flowgaugefit' => [
                'rules' => [['string']],
                'label' => 'Flowgaugefit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'flowgaugeid' => [
                'rules' => [['string']],
                'label' => 'Flowgaugeid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'fumeextractorid' => [
                'rules' => [['string']],
                'label' => 'Fumeextractorid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'fumeextractorqty' => [
                'rules' => [['string']],
                'label' => 'Fumeextractorqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'gassesqty' => [
                'rules' => [['string']],
                'label' => 'Gassesqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'gassessize' => [
                'rules' => [['string']],
                'label' => 'Gassessize',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'generatorid' => [
                'rules' => [['string']],
                'label' => 'Generatorid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'generatorqty' => [
                'rules' => [['string']],
                'label' => 'Generatorqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'grindstonesqty' => [
                'rules' => [['string']],
                'label' => 'Grindstonesqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'grindstonessize' => [
                'rules' => [['string']],
                'label' => 'Grindstonessize',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'hammerid' => [
                'rules' => [['string']],
                'label' => 'Hammerid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'hammerqty' => [
                'rules' => [['string']],
                'label' => 'Hammerqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'hydraulicoilid' => [
                'rules' => [['string']],
                'label' => 'Hydraulicoilid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'hydraulicoilqty' => [
                'rules' => [['string']],
                'label' => 'Hydraulicoilqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'id' => [
                'rules' => [['safe']],
                'label' => 'ID',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'ignitersboxfit' => [
                'rules' => [['string']],
                'label' => 'Ignitersboxfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'ignitersboxid' => [
                'rules' => [['string']],
                'label' => 'Ignitersboxid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'impactwrenchid' => [
                'rules' => [['string']],
                'label' => 'Impactwrenchid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'impactwrenchqty' => [
                'rules' => [['string']],
                'label' => 'Impactwrenchqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'injobno' => [
                'rules' => [['string']],
                'label' => 'Job Number',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item1' => [
                'rules' => [['string']],
                'label' => 'Item1',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item10' => [
                'rules' => [['string']],
                'label' => 'Item10',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item10qty' => [
                'rules' => [['integer']],
                'label' => 'Item10qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item10type' => [
                'rules' => [['string']],
                'label' => 'Item10type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item11' => [
                'rules' => [['string']],
                'label' => 'Item11',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item11qty' => [
                'rules' => [['integer']],
                'label' => 'Item11qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item11type' => [
                'rules' => [['string']],
                'label' => 'Item11type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item12' => [
                'rules' => [['string']],
                'label' => 'Item12',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item12qty' => [
                'rules' => [['integer']],
                'label' => 'Item12qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item12type' => [
                'rules' => [['string']],
                'label' => 'Item12type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item1qty' => [
                'rules' => [['integer']],
                'label' => 'Item1qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item1type' => [
                'rules' => [['string']],
                'label' => 'Item1type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item2' => [
                'rules' => [['string']],
                'label' => 'Item2',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item2qty' => [
                'rules' => [['integer']],
                'label' => 'Item2qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item2type' => [
                'rules' => [['string']],
                'label' => 'Item2type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item3' => [
                'rules' => [['string']],
                'label' => 'Item3',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item3qty' => [
                'rules' => [['integer']],
                'label' => 'Item3qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item3type' => [
                'rules' => [['string']],
                'label' => 'Item3type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item4' => [
                'rules' => [['string']],
                'label' => 'Item4',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item4qty' => [
                'rules' => [['integer']],
                'label' => 'Item4qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item4type' => [
                'rules' => [['string']],
                'label' => 'Item4type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item5' => [
                'rules' => [['string']],
                'label' => 'Item5',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item5qty' => [
                'rules' => [['integer']],
                'label' => 'Item5qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item5type' => [
                'rules' => [['string']],
                'label' => 'Item5type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item6' => [
                'rules' => [['string']],
                'label' => 'Item6',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item6qty' => [
                'rules' => [['integer']],
                'label' => 'Item6qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item6type' => [
                'rules' => [['string']],
                'label' => 'Item6type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item7' => [
                'rules' => [['string']],
                'label' => 'Item7',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item7qty' => [
                'rules' => [['integer']],
                'label' => 'Item7qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item7type' => [
                'rules' => [['string']],
                'label' => 'Item7type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item8' => [
                'rules' => [['string']],
                'label' => 'Item8',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item8qty' => [
                'rules' => [['integer']],
                'label' => 'Item8qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item8type' => [
                'rules' => [['string']],
                'label' => 'Item8type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item9' => [
                'rules' => [['string']],
                'label' => 'Item9',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item9qty' => [
                'rules' => [['integer']],
                'label' => 'Item9qty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'item9type' => [
                'rules' => [['string']],
                'label' => 'Item9type',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'l80equipmentid' => [
                'rules' => [['string']],
                'label' => 'L80equipmentid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'l80equipmentqty' => [
                'rules' => [['string']],
                'label' => 'L80equipmentqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'lightingid' => [
                'rules' => [['string']],
                'label' => 'Lightingid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'lightingqty' => [
                'rules' => [['string']],
                'label' => 'Lightingqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'location' => [
                'rules' => [['string']],
                'label' => 'Location',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'lutingpastedistributorfit' => [
                'rules' => [['string']],
                'label' => 'Lutingpastedistributorfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'lutingpastedistributorid' => [
                'rules' => [['string']],
                'label' => 'Lutingpastedistributorid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'metalwastecontainerid' => [
                'rules' => [['string']],
                'label' => 'Metalwastecontainerid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'metalwastecontainerqty' => [
                'rules' => [['string']],
                'label' => 'Metalwastecontainerqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldalignmenttoolqty' => [
                'rules' => [['string']],
                'label' => 'Mouldalignmenttoolqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldalignmenttoolid' => [
                'rules' => [['string']],
                'label' => 'Mouldalignmenttoolid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldcoverid' => [
                'rules' => [['string']],
                'label' => 'Mouldcoverid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldcoverqty' => [
                'rules' => [['string']],
                'label' => 'Mouldcoverqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldshoesfit' => [
                'rules' => [['string']],
                'label' => 'Mouldshoesfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldshoesid' => [
                'rules' => [['string']],
                'label' => 'Mouldshoesid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldshoestypeid' => [
                'rules' => [['string']],
                'label' => 'Mouldshoestypeid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldshoestypeqty' => [
                'rules' => [['string']],
                'label' => 'Mouldshoestypeqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldsqty' => [
                'rules' => [['string']],
                'label' => 'Mouldsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'mouldstype' => [
                'rules' => [['string']],
                'label' => 'Mouldstype',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'needlegunid' => [
                'rules' => [['string']],
                'label' => 'Needlegunid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'needlegunqty' => [
                'rules' => [['string']],
                'label' => 'Needlegunqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'nitrogenqty' => [
                'rules' => [['string']],
                'label' => 'Nitrogenqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'nitrogensize' => [
                'rules' => [['string']],
                'label' => 'Nitrogensize',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'oxygensize' => [
                'rules' => [['string']],
                'label' => 'Oxygensize',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'oxygenqty' => [
                'rules' => [['string']],
                'label' => 'Oxygenqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'padlockandchainid' => [
                'rules' => [['string']],
                'label' => 'Padlockandchainid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'padlockandchainqty' => [
                'rules' => [['string']],
                'label' => 'Padlockandchainqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'padno' => [
                'rules' => [['string']],
                'label' => 'Padno',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'petrolfunnelqty' => [
                'rules' => [['string']],
                'label' => 'Petrolfunnelqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'petrolfunnelsize' => [
                'rules' => [['string']],
                'label' => 'Petrolfunnelsize',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'pipesfit' => [
                'rules' => [['string']],
                'label' => 'Pipesfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'pipesid' => [
                'rules' => [['string']],
                'label' => 'Pipesid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'plugholderfit' => [
                'rules' => [['string']],
                'label' => 'Plugholderfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'plugholderid' => [
                'rules' => [['string']],
                'label' => 'Plugholderid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'portionsqty' => [
                'rules' => [['string']],
                'label' => 'Portionsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'portionstype' => [
                'rules' => [['string']],
                'label' => 'Portionstype',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'preheaterfit' => [
                'rules' => [['string']],
                'label' => 'Preheaterfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'preheaterid' => [
                'rules' => [['string']],
                'label' => 'Preheaterid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'preheatholderfit' => [
                'rules' => [['string']],
                'label' => 'Preheatholderfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'preheatholderid' => [
                'rules' => [['string']],
                'label' => 'Preheatholderid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'profilegrindersid' => [
                'rules' => [['string']],
                'label' => 'Profilegrindersid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'profilegrindersqty' => [
                'rules' => [['string']],
                'label' => 'Profilegrindersqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'railclampfit' => [
                'rules' => [['string']],
                'label' => 'Railclampfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'railclampid' => [
                'rules' => [['string']],
                'label' => 'Railclampid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'railtrolleyhandleqty' => [
                'rules' => [['string']],
                'label' => 'Railtrolleyhandleqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'railtrolleyhandleid' => [
                'rules' => [['string']],
                'label' => 'Railtrolleyhandleid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'railtechkitsqty' => [
                'rules' => [['string']],
                'label' => 'Railtechkitsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'railtechkitstype' => [
                'rules' => [['string']],
                'label' => 'Railtechkitstype',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'rammingtoolsid' => [
                'rules' => [['string']],
                'label' => 'Rammingtoolsid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'rammingtoolsqty' => [
                'rules' => [['string']],
                'label' => 'Rammingtoolsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'reg' => [
                'rules' => [['string']],
                'label' => 'Reg',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'regulatorsfit' => [
                'rules' => [['string']],
                'label' => 'Regulatorsfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'regulatorsid' => [
                'rules' => [['string']],
                'label' => 'Regulatorsid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'sandqty' => [
                'rules' => [['string']],
                'label' => 'Sandqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'sandtrayid' => [
                'rules' => [['string']],
                'label' => 'Sandtrayid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'sandtrayqty' => [
                'rules' => [['string']],
                'label' => 'Sandtrayqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'sandtype' => [
                'rules' => [['string']],
                'label' => 'Sandtype',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'scgrinderid' => [
                'rules' => [['string']],
                'label' => 'Scgrinderid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'scgrinderqty' => [
                'rules' => [['string']],
                'label' => 'Scgrinderqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'shovelid' => [
                'rules' => [['string']],
                'label' => 'Shovelid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'shovelqty' => [
                'rules' => [['string']],
                'label' => 'Shovelqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'sign' => [
                'rules' => [['safe']],
                'label' => 'Sign',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'slagbowlfit' => [
                'rules' => [['string']],
                'label' => 'Slagbowlfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'slagbowlid' => [
                'rules' => [['string']],
                'label' => 'Slagbowlid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'slagbowlsid' => [
                'rules' => [['string']],
                'label' => 'Slagbowlsid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'slagbowlsqty' => [
                'rules' => [['string']],
                'label' => 'Slagbowlsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'spadgerid' => [
                'rules' => [['string']],
                'label' => 'Spadgerid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'spadgerqty' => [
                'rules' => [['string']],
                'label' => 'Spadgerqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'sparegasregfit' => [
                'rules' => [['string']],
                'label' => 'Sparegasregfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'sparegasregid' => [
                'rules' => [['string']],
                'label' => 'Sparegasregid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'spareoxyregfit' => [
                'rules' => [['string']],
                'label' => 'Spareoxyregfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'spareoxyregid' => [
                'rules' => [['string']],
                'label' => 'Spareoxyregid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'splashcoversid' => [
                'rules' => [['string']],
                'label' => 'Splashcoversid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'splashcoversqty' => [
                'rules' => [['integer']],
                'label' => 'Splashcoversqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'spraypaintfit' => [
                'rules' => [['string']],
                'label' => 'Spraypaintfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'spraypaintid' => [
                'rules' => [['string']],
                'label' => 'Spraypaintid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'straightedgeid' => [
                'rules' => [['string']],
                'label' => 'Straightedgeid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'straightedgeqty' => [
                'rules' => [['string']],
                'label' => 'Straightedgeqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'tarpaulinid' => [
                'rules' => [['string']],
                'label' => 'Tarpaulinid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'tarpaulinqty' => [
                'rules' => [['string']],
                'label' => 'Tarpaulinqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'thimbleapplicatorid' => [
                'rules' => [['string']],
                'label' => 'Thimbleapplicatorid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'thimbleapplicatorqty' => [
                'rules' => [['string']],
                'label' => 'Thimbleapplicatorqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'thimbledriftid' => [
                'rules' => [['string']],
                'label' => 'Thimbledriftid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'thimbledriftqty' => [
                'rules' => [['string']],
                'label' => 'Thimbledriftqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'tongsid' => [
                'rules' => [['string']],
                'label' => 'Tongsid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'tongsqty' => [
                'rules' => [['string']],
                'label' => 'Tongsqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'trimmerhandleqty' => [
                'rules' => [['string']],
                'label' => 'Trimmerhandleqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'trimmerhandleid' => [
                'rules' => [['string']],
                'label' => 'Trimmerhandleid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'umbrellaid' => [
                'rules' => [['string']],
                'label' => 'Umbrellaid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'umbrellaqty' => [
                'rules' => [['string']],
                'label' => 'Umbrellaqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'universalmountingid' => [
                'rules' => [['string']],
                'label' => 'Universalmountingid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'universalmountingqty' => [
                'rules' => [['string']],
                'label' => 'Universalmountingqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'updated_at' => [
                'rules' => [['safe']],
                'label' => 'Updated At',
                'input' => ['input' => 'widget', 'fieldclass' => DatePicker::class, 'options' => ['type' => 1, 'pluginOptions' => ['todayBtn' => true, 'format' => 'dd/mm/yyyy']], 'width' => 'col-12'],
                'search' => false,
            ],
            'updated_by' => [
                'rules' => [['safe']],
                'label' => 'Updated By',
                'input' => ['input' => 'textInput', 'options' => ['label' => false, 'type' => 'number'], 'width' => 'col-12'],
                'search' => false,
            ],
            'updated_by2' => [
                'rules' => [['integer']],
                'label' => 'Updated By2',
                'input' => ['input' => 'textInput', 'options' => ['label' => false, 'type' => 'number'], 'width' => 'col-12'],
                'search' => false,
            ],
            'vehicle' => [
                'rules' => [['safe']],
                'label' => 'Vehicle',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'weekno' => [
                'rules' => [['integer']],
                'label' => 'Week no',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'weldrecordsheetfit' => [
                'rules' => [['string']],
                'label' => 'Weldrecordsheetfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'weldrecordsheetid' => [
                'rules' => [['string']],
                'label' => 'Weldrecordsheetid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'wedgeslargenoqty' => [
                'rules' => [['string']],
                'label' => 'Wedgeslargenoqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'wedgeslargenoid' => [
                'rules' => [['string']],
                'label' => 'Wedgeslargenoid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'wedgessmallnoqty' => [
                'rules' => [['string']],
                'label' => 'Wedgessmallnoqty',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'wedgessmallnoid' => [
                'rules' => [['string']],
                'label' => 'Wedgessmallnoid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'dailytimesheetfit' => [
                'rules' => [['string']],
                'label' => 'Dailytimesheetfit',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'dailytimesheetid' => [
                'rules' => [['string']],
                'label' => 'Dailytimesheetid',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
            'driver' => [
                'rules' => [['string']],
                'label' => 'Driver',
                'input' => ['input' => 'textInput', 'options' => ['label' => false], 'width' => 'col-12'],
                'search' => false,
            ],
        ];
    }

    public function Pdf()
    {
        $urls = [];
        $urls['page1'] = [
            'render' => '/forms/dt005/_view.php',
            'options' => [
                'landscape' => false,
                'printBackground' => true,
                'displayHeaderFooter' => true,
                'preferCSSPageSize' => true,
                'marginTop' => 0.0,
                'marginBottom' => 1.4,
                'marginLeft' => 5.0,
                'marginRight' => 1.0,
                'paperWidth' => 6.0,
                'paperHeight' => 6.0,
                'headerTemplate' => '<div>foo</div>',
                'footerTemplate' => '<div>foo</div>',
                'scale' => 1.0,

            ]

        ];
        return $urls;
    }

    public function getActivity()
    {
        return Activities::findOne(['id' => $this->actid]);
    }
    public function getAccountL()
    {
        return Accounts::findOne(['accountid' => $this->company])
            ->joinwith(['activity']);
    }
    public function getAccount()
    {
        return Accounts::findOne(['accountid' => $this->client_name]);
    }
    public function getUser()
    {
        return User::findOne(['id' => $this->driver]);
    }
    public function getDriverl()
    {
        return User::findOne(['id' => $this->driver]);
    }
    public function getLogo()
    {
        return ArrayHelper::map(Settings::find()->where("id = '1'")->all(), 'logo', 'logo');
    }

   /* public function init()
    {
        if ($this->actid !== null) {
            $activity = Activities::findOne(['id' => $this->actid]);
            $this->actid = $activity->id;
            $this->injobno = $activity->jobno;
            // $this->location = $activity->location;
            // $this->relatedid = $activity->company;
        }
        return parent::init();
    }*/

    public function beforeValidate()
    {
        $this->padno = $this->padno == null ? User::Padno() : $this->padno;
        return parent::beforeValidate();
    }

    public function setData()
    {
        if(Yii::$app->controller->action->id == 'create' && $actid = (Yii::$app->request->get('actid', null)) !== null ){
           $act = Activities::find()->select(['jobno', 'relatedid', 'location', 'sdate', 'elr', 'weekno', 'company'])->where(['id' => $actid])->asArray()->one();
           $this->injobno = $act['jobno'];
           //$this->inlineno = $act['jobno'];
           //$this->jcnno = $act['jobno'];
           $this->client_name = $act['relatedid'];
           $this->location = $act['location'];
         //  $this->elr = $act['elr'];
           $this->weekno = $act['weekno'];
           $this->date = date('d/m/Y H:i', strtotime($act['sdate']));
        //   $this->insdate = date('d/m/Y H:i', strtotime($act['sdate']));
        }
    }
    public static function adminFormButtons($buttons, $model){
      $_this = new self();
        $buttons[$_this->formType]['items'][] = [
            'label' => $_this->formname,
            'url' => [$_this->createpath, 'actid' => $model->id],
            'linkOptions' =>  ['target'=>'_blank'],
        ];
        return $buttons;
    }
}

