<?php

namespace Dashboard\Form;

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

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;
class FaremanagementAddpriceCommonForm extends Form {

    public function __construct($name = null) {

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

        $this->setAttribute('method', 'post');
        
        
        /**
         * 
         * 
From Date
         */
        $this->add([
            'name' => 'from_date',
            'type' => Text::class,
            'attributes' => [
                'id' => 'from-date-id',  
                'placeholder' => 'dd/mm/yyyy',
                'class' => 'form-control datepicker',
                
            ],
            'options' => [
                'label' => 'From Date',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
        
        /**
         * 
         * 
To Date
         */
        $this->add([
            'name' => 'to_date',
            'type' => Text::class,
            'attributes' => [
                'id' => 'to-date-id',  
                'placeholder' => 'dd/mm/yyyy',
                'class' => 'form-control datepicker',
                
            ],
            'options' => [
                'label' => 'To Date',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);

        /**
         * 
         * 
             Currency 
         */
          $this->add([
            'name' => 'currency',
            'type' => Text::class,
            'attributes' => [
                'id' => 'currency-id',  
                'placeholder' => 'INR',
                'class' => 'form-control',
                
            ],
            'options' => [
                'label' => 'Currency',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
           
          /**
         * 
         * 
           Net rate 
         */
            $this->add([
            'name' => 'net_rate',
            'type' => Radio::class,
            'attributes' => [
                'id' => 'net_rate-id',  
                'placeholder' => '',
                
            ],
            'options' => [
                'label' => 'Net rate',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);

            /**
         * 
         * 
           Commissionable Rate
         */
           $this->add([
            'name' => 'commissionable',
            'type' => Radio::class,
            'attributes' => [
                'id' => 'commissionable-id',  
                'placeholder' => '',
                
            ],
            'options' => [
                'label' => 'Commissionable Rate',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);

       
             /**
         * 
         * 
           monday
         */
        $this->add([
            'name' => 'monday',
            'type' => Checkbox::class,
            'attributes' => [
                'id' => 'monday-id',    
                'placeholder' => '',
                'class' => 'checkmark',
               
            ],
            'options' => [
                'label' => 'Monday',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]); 
           /**
         * 
         * 
           tuesday
         */
        
        $this->add([
            'name' => 'tuesday',
            'type' => Checkbox::class,
            'attributes' => [
                'id' => 'tuesday-id',    
                'placeholder' => '',
                'class' => 'checkmark',
               
            ],
            'options' => [
                'label' => 'Tuesday',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]); 
        
        
          /**
         * 
         * 
           wednesday
         */
        $this->add([
            'name' => 'wednesday',
            'type' => Checkbox::class,
            'attributes' => [
                'id' => 'wednesday-id',    
                'placeholder' => '',
                'class' => 'checkmark',
               
            ],
            'options' => [
                'label' => 'Wednesday',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]); 
        
        /**
         * 
         * 
           thurusday
         */
        $this->add([
            'name' => 'thurusday',
            'type' => Checkbox::class,
            'attributes' => [
                'id' => 'thurusday-id',    
                'placeholder' => '',
                'class' => 'checkmark',
               
            ],
            'options' => [
                'label' => 'Thurusday',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]); 
        
        /**
         * 
         * 
           friday
         */
        $this->add([
            'name' => 'friday',
            'type' => Checkbox::class,
            'attributes' => [
                'id' => 'friday-id',    
                'placeholder' => '',
                'class' => 'checkmark',
               
            ],
            'options' => [
                'label' => 'Friday',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]); 
        
        
        /**
         * 
         * 
           saturday
         */
        $this->add([
            'name' => 'saturday',
            'type' => Checkbox::class,
            'attributes' => [
                'id' => 'saturday-id',    
                'placeholder' => '',
                'class' => 'checkmark',
               
            ],
            'options' => [
                'label' => 'Saturday',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]); 
        
        
        /**
         * 
         * 
           sunday
         */
        $this->add([
            'name' => 'sunday',
            'type' => Checkbox::class,
            'attributes' => [
                'id' => 'sunday-id',    
                'placeholder' => '',
                'class' => 'checkmark',
               
            ],
            'options' => [
                'label' => 'Sunday',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
         
    }

}
