
<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('bookinghistory', ['action' => 'index']));
$form->setAttribute('method', 'post');
$form->setAttribute('id', 'booking-driver-search-form');
echo $this->form()->openTag($form);
?>
<input type="hidden" id="tab_type" name="tab_type" value="<?php if(isset($test)){echo $tab_type;}?>">
 <input type="hidden" name="tab_type" value="driver">
<div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <label id="flight_nos" class="col-sm-2 control-label labelalign "><?php echo $this->translate('Driver First Name');?></label>
                <div class="col-sm-4">
                    <?php echo $this->FormElement($form->get('driver_first_name')); ?>
                </div>
                <label id="point_airport" class="col-sm-2 control-label labelalign "><?php echo $this->translate('Driver Rating');?></label>
                <div class="col-sm-4">
                    <?php echo $this->FormElement($form->get('driver_rating')); ?>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <label id="flight_nos" class="col-sm-2 control-label labelalign "><?php echo $this->translate('Driver Last name');?></label>
                <div class="col-sm-4">
                    <?php echo $this->FormElement($form->get('driver_last_name')); ?>
                </div>
                <label id="point_airport" class="col-sm-2 control-label labelalign "><?php echo $this->translate('Driver Email');?></label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <?php echo $this->FormElement($form->get('driver_email')); ?>
                        <span class="input-group-addon"><i class="fa fa-search"></i></span>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <label id="flight_nos" class="col-sm-2 control-label labelalign"><?php echo $this->translate('Driver Id');?></label>
                <div class="col-sm-4">
                    <?php echo $this->FormElement($form->get('driver_id')); ?>
                </div>
                <label id="point_airport" class="col-sm-2 control-label labelalign"><?php echo $this->translate('Driver mobile No');?></label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <?php echo $this->FormElement($form->get('driver_mobile_no')); ?>
                        <span class="input-group-addon"><i class="fa fa-search"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group clearfix margintopbottom20">
                <label id="point_airport" class="col-sm-2 control-label labelalign "><?php echo $this->translate('Referral Key');?></label>
                <div class="col-sm-4">
                    <?php echo $this->FormElement($form->get('referral_key')); ?>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <div class="col-sm-4 pull-right">
                     <?php echo $this->FormReset($form->get('clear')); ?>
                    <?php echo $this->FormElement($form->get('search')); ?>
                </div>
            </div>
        </div>
    </div>
<?php echo $this->form()->closeTag(); ?>