<?php

namespace Dashboard\Form;

use Zend\Form\Form;
use Zend\Form\Element;


use Zend\Form\Element\Select;
use Zend\Form\Element\File;
use Zend\Form\Element\Text;
use Zend\Form\Element\Radio;
use Zend\Form\Element\Submit;
use Zend\Form\Element\Checkbox;
use Zend\Form\Element\Email;
use Zend\Form\Element\Textarea;
class SetupManageCompanyForm extends Form {
    
   // public static $role=[];
   // public static $registration_role=[];
   // public static $customer_role=[];

    public function __construct($name = null) {

        parent::__construct('profile-personal');

        $this->setAttribute('method', 'post');
        
        /**
         * 
         * Company Name
         */
          $this->add([
            'name' => 'Company_name',
            'type' => Text::class,
            'attributes' => [
                'id' => 'company-name-id',  
                'placeholder' => '',
                'class' => 'form-control'
            ],
            'options' => [
                'label' => 'Company Name',
                //'value_options' => self::$role
            ],
        ]);
          
          /**
         * 
         * Lice Number 
         */
          $this->add([
            'name' => 'Licence_number',
            'type' => Text::class,
            'attributes' => [
                'id' => 'company-licence-id',  
                'placeholder' => '',
                'class' => 'form-control'
            ],
            'options' => [
                'label' => 'Licence Number',
               // 'value_options' => self::$role
            ],
        ]);
          
           /**
         * 
         * Expire Date 
         */
          $this->add([
            'name' => 'Expire_date',
            'type' => Element\Date::class,
            'attributes' => [
                'id' => 'company-expire-id',  
                'placeholder' => '',
                'class' => 'form-control'
            ],
            'options' => [
                'label' => 'Expiry Date',
               // 'value_options' => self::$role
            ],
        ]);
                    
          /**
         * 
         * button Go To Settings
         */
          $this->add([
            'name' => 'add_company',
            'type' => Submit::class,
            'attributes' => [
                'id' => 'add-company-id',    
                'placeholder' => 'Add Company',
                'value' => 'Add Company',
                'class' => 'btn btn-warning submitbt',
            ],
           
        ]);
          
          
    }

}
