<?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;

class FaremanagementAddPricePackageCalculation extends Form {

    public function __construct($name = null) {

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

        $this->setAttribute('method', 'post');
        
           /**
         * 
         * distance
         */
            $this->add([
            'name' => 'local_hire_distance',
            'type' => Radio::class,
            'attributes' => [
                'id' => 'local-hire-distance-id',  
                'placeholder' => '',
                
            ],
            'options' => [
                'label' => 'Distance',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);

            /**
         * 
         * hour
         */
            $this->add([
            'name' => 'local_hire_hour',
            'type' => Radio::class,
            'attributes' => [
                'id' => 'local-hire-hour-id',  
                'placeholder' => '',
                
            ],
            'options' => [
                'label' => 'Hour',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
            
            
             /**
         * 
         * Distance hour
         */
            $this->add([
            'name' => 'local_hire_distance_hour',
            'type' => Radio::class,
            'attributes' => [
                'id' => 'local-hire-distance-hour-id',  
                'placeholder' => '',
                
            ],
            'options' => [
                'label' => 'Distance + Hour',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
            
              /**
         * 
         * Distance waiting
         */
            $this->add([
            'name' => 'local_hire_distance_waiting',
            'type' => Radio::class,
            'attributes' => [
                'id' => 'local-hire-distance-waiting-id',  
                'placeholder' => '',
                
            ],
            'options' => [
                'label' => 'Distance + Waiting',
                'label_options' => ['disable_html_escape' => true]
            ],
        ]);
            
         
            /**
         * 
         * save
         */
                $this->add([
            'name' => 'local_hire_save',
            'type' => Submit::class,
            'attributes' => [
                'id' => 'local-hire-save-id',    
                'placeholder' => 'save',
                'class' => 'btn btn-info form-control ',
            ],
            
        ]);
                
                
                /**
         * 
         * next
         */
                $this->add([
            'name' => 'local_hire_next',
            'type' => Submit::class,
            'attributes' => [
                'id' => 'local-hire-next-id',    
                'placeholder' => 'Next',
                'class' => 'btn btn-info form-control margin-bottom10px',
            ],
            
        ]);
         
    }

}
