<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('cabfare', ['action' => 'index']));
$form->setAttribute('method', 'post');
$form->setAttribute('id', 'cab-search-fare');
echo $this->form()->openTag($form);
?>
<div class="col-sm-12 no-padding padding-bottom15">
    <div class="col-sm-2 ">
        <div class="carbooking">
            <input type="radio" name="fare_type" id="public-fare" class="public-fare" checked="checked" value="1">
            <label for="public-fare"><span class="radio"><?php echo $this->translate('Public Fare'); ?></span></label>
            <?php echo $this->formElement($form->get('public_fare_selected')); ?>
        </div>
    </div>


    <div class="col-sm-2 ">
        <div class="carbooking">
            <input type="radio" name="fare_type" id="client-fare" class="client-fare" value="2">
            <label for="client-fare"><span class="radio"><?php echo $this->translate('Client Fare'); ?></span></label>
            <?php echo $this->formElement($form->get('client_fare_selected')); ?>
        </div>
    </div>

</div>


<div class="form-group clearfix client_fare margintopbottom20 display-none">
    <label class="col-sm-2"><?php echo $this->translate($this->formLabel($form->get('client'))); ?></label>
    <div class="col-sm-4">
        <?php echo $this->FormElement($form->get('client')); ?>
        <?php echo $this->formElementErrors($form->get('client'), ['class' => 'error']); ?>
    </div>


</div>

<div class="form-group clearfix margintopbottom20" >
    <!--<label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('fare_state'))); ?></label>

    <div class="col-sm-4 ">
        <?php echo $this->FormElement($form->get('fare_state')); ?>
        <?php echo $this->formElementErrors($form->get('fare_state'), ['class' => 'error']); ?>
    </div>-->

    <label class="col-sm-2"><?php echo $this->translate($this->formLabel($form->get('city_search'))); ?></label>
    <div class="col-sm-4">
        <?php echo $this->FormElement($form->get('city_search')); ?>
        <?php echo $this->FormElement($form->get('city_search_id')); ?>
    </div>
</div>


<div class="form-group clearfix margintopbottom20">
    <label class="col-sm-2"><?php echo $this->translate($this->formLabel($form->get('booking_type'))); ?></label>
    <div class="col-sm-4">
        <div class="row-fluid">
            <?php echo $this->FormElement($form->get('booking_type')); ?>
            <?php echo $this->formElementErrors($form->get('booking_type'), ['class' => 'error']); ?>
        </div>



    </div>
    <label class="col-sm-2 "><?php echo $this->translate($this->formLabel($form->get('vehicle_type'))); ?></label>
    <div class="col-sm-3 ">
        <div class="row-fluid">
            <?php echo $this->FormElement($form->get('vehicle_type')); ?>
            <?php echo $this->formElementErrors($form->get('vehicle_type'), ['class' => 'error']); ?>
        </div>

    </div>
</div>


<div class="form-group clearfix margintopbottom20">

    <label class="col-sm-2 ">Cab Status</label>
    <div class="col-sm-4 no-padding">
        <div class="col-sm-6">
            <div class="carbooking">
                <input type="radio" name="status" id="Active"  checked="checked" value="1">
                <label for="Active"><span class="radio">Active</span></label>
            </div>



        </div>

        <div class="col-sm-6">
            <div class="carbooking">
                <input type="radio" name="status" id="De-active" value="0">
                <label for="De-active"><span class="radio">De-Active</span></label>
            </div>

        </div>

    </div>

    <label class="col-sm-2 "></label>
    <div class="col-sm-4" align="right">
        <?php echo $this->FormReset($form->get('clear_button')); ?>
        <?php echo $this->FormElement($form->get('search_fare')); ?>
    </div>

</div>
<?php echo $this->form()->closeTag(); ?>