<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('outstation', ['action' => 'multi-city']));
$form->setAttribute('method', 'post');
$form->setAttribute('id', 'vehicle-search-form');
echo $this->form()->openTag($form);
?>
<div class="row" align="center">
<div class="col-sm-12 no-padding form-group-lg form-group-icon-" id="multy_Outstation">
    
    <div class="row marginbot40">
        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left form-group-filled">
                <div class="group">
                    <?php echo $this->formElement($form->get('pickup_city[]')); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                    <?php echo $this->translate($this->formLabel($form->get('pickup_city[]'))); ?>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left">
                <div class="group">
                    <?php echo $this->formElement($form->get('drop_city[]')); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                   <?php echo $this->translate($this->formLabel($form->get('drop_city[]'))); ?>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left">
                <div class="col-sm-7 padding0">
                    <div class="group">
                        <?php echo $this->formElement($form->get('pickup_date[]')); ?>
                        <?php //echo $this->formElementErrors($form->get('pickup_date[]'), ['class' => 'error']); ?>
                        <span class="highlight"></span>
                        <span class="bar"></span>
                        <?php echo $this->translate($this->formLabel($form->get('pickup_date[]'))); ?>
                    </div>
                </div>

                <div class="col-sm-5 padding0">
                    <div class="group">
                        <div class="input-group clockpicker" data-placement="bottom" data-align="left" data-donetext="Done">
                            <?php echo $this->formElement($form->get('pickup_time[]')); ?>
                            <?php //echo $this->formElementErrors($form->get('pickup_time[]'), ['class' => 'error']); ?>
                            <span class="input-group-addon">
                            <span class="glyphicon glyphicon-time"></span>
                            </span>
                            <?php echo $this->translate($this->formLabel($form->get('pickup_time[]'))); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left">
                <div class="group">
                    <?php echo $this->formElement($form->get('number_of_days[]')); ?>
                    <?php //echo $this->formElementErrors($form->get('number_of_days[]'), ['class' => 'error']); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                     <?php echo $this->translate($this->formLabel($form->get('number_of_days[]'))); ?>
                </div>
            </div>
        </div>
    </div>

    <div class="row marginbot40">
        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left form-group-filled">
                <div class="group">
                    <?php echo $this->formElement($form->get('pickup_city[]')); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                    <?php echo $this->translate($this->formLabel($form->get('pickup_city[]'))); ?>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left">
                <div class="group">
                    <?php echo $this->formElement($form->get('drop_city[]')); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                    <?php echo $this->translate($this->formLabel($form->get('drop_city[]'))); ?>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left">
                <div class="col-sm-7 padding0">
                    <div class="group">
                        <?php echo $this->formElement($form->get('pickup_date[]')); ?>
                        <?php //echo $this->formElementErrors($form->get('pickup_date[]'), ['class' => 'error']); ?>
                        <span class="highlight"></span>
                        <span class="bar"></span>
                        <?php echo $this->translate($this->formLabel($form->get('pickup_date[]'))); ?>
                    </div>
                </div>

                <div class="col-sm-5 padding0">
                    <div class="group">
                        <div class="input-group clockpicker" data-placement="bottom" data-align="left" data-donetext="Done">
                            <?php echo $this->formElement($form->get('pickup_time[]')); ?>
                            <?php //echo $this->formElementErrors($form->get('pickup_time[]'), ['class' => 'error']); ?>
                            <span class="input-group-addon">
                            <span class="glyphicon glyphicon-time"></span>
                            </span>
                            <?php echo $this->translate($this->formLabel($form->get('pickup_time[]'))); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="form-group-lg form-group-icon-left">
                <div class="group">
                    <?php echo $this->formElement($form->get('number_of_days[]')); ?>
                     <?php //echo $this->formElementErrors($form->get('number_of_days[]'), ['class' => 'error']); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                    <?php echo $this->translate($this->formLabel($form->get('number_of_days[]'))); ?>
                </div>
            </div>
        </div>
    </div>

    <div id="add-city-form"></div>

    <div class="col-sm-3 padding0" >
        <div class="add_but"> <a class="white" id="outstation_addcity">+ Add</a> </div>
    </div>
    <div>
    </div>
            <div class="col-sm-12 padding0 margin-top20px">
            <div class="row">
                <div class="col-md-3 col-md-3-mobile">
                    <div class="form-group-lg form-group-select-plus">
                        <div class="group quantity">
                            <?php echo $this->formElement($form->get('adults')); ?>
                            <?php echo $this->formElementErrors($form->get('adults'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('adults'))); ?>
                        </div>
                    </div>
                </div>

                <div class="col-md-3 col-md-3-mobile">
                    <div class="form-group-lg form-group-select-plus">
                        <div class="group quantity">
                            <?php echo $this->formElement($form->get('childs')); ?>
                            <?php echo $this->formElementErrors($form->get('childs'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('childs'))); ?>
                        </div>
                    </div>
                </div>

                <div class="col-md-3 col-md-3-mobile">
                    <div class="form-group-lg form-group-select-plus">
                        <div class="group quantity">
                            <?php echo $this->formElement($form->get('luggages')); ?>
                            <?php echo $this->formElementErrors($form->get('luggages'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('luggages'))); ?>
                        </div>
                    </div>
                </div>

                <div class="col-md-3 col-md-3-mobile">
                    <div class="form-group-lg form-group-select-plus">
                        <div class="group quantity">
                            <?php echo $this->formElement($form->get('no_of_vehicles')); ?>
                            <?php echo $this->formElementErrors($form->get('no_of_vehicles'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('no_of_vehicles'))); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-sm-12 no-padding marginbot20 margin-top20px">
            <div class="col-md-5 no-padding">
                <div class="group">
                    <div class="col-sm-6 padding0">
                        <label class="booking-check"><?php echo $this->translate('Coming Mode is Flight'); ?>
                            <?php echo $this->formElement($form->get('flight_mode')); ?>
                            <span class="checkmark"></span>
                            <?php echo $this->formElement($form->get('flight_mode_selected')); ?>
                        </label>
                    </div>
                </div>
            </div>

            <div class="col-sm-4 no-padding disable_none pull-right"  id="flight-mode-div">
                <div class="col-md-6 no-padding">
                    <div class="form-group-lg form-group-select-plus">
                        <div class="group">
                            <?php echo $this->formElement($form->get('flight_number')); ?>
                            <?php echo $this->formElementErrors($form->get('flight_number'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('flight_number'))); ?>
                        </div>
                    </div>
                </div>

                <div class="col-md-6 no-padding">
                    <div class="form-group-lg form-group-select-plus">
                        <div class="input-group clockpicker" data-placement="bottom" data-align="left" data-donetext="Done">
                            <?php echo $this->formElement($form->get('flight_time')); ?>
                            <?php echo $this->formElementErrors($form->get('flight_time'), ['class' => 'error']); ?>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-time"></span>
                            </span>
                            <?php echo $this->translate($this->formLabel($form->get('flight_time'))); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-sm-12 no-padding margin-top20px">
            <div class="input-daterange">
                <div class="col-sm-12 no-padding">
                    <div class="form-group form-group-lg form-group-icon-left">
                        <div class="group">
                            <?php echo $this->formElement($form->get('pickup_address')); ?>
                            <?php echo $this->formElementErrors($form->get('pickup_address'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('pickup_address'))); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-sm-8 no-padding margintop10 marginbot20">
            <div class="col-md-6 no-padding">
                <div class="form-group-lg form-group-select-plus spanclass">
                    <label class="booking-check"><?php echo $this->translate('Accept the Terms and Conditions'); ?>
                        <?php echo $this->formElement($form->get('agree_terms')); ?>
                        <?php echo $this->formElementErrors($form->get('agree_terms'), ['class' => 'error']); ?>
                        <span class="checkmark"></span>
                    </label>


                </div>
            </div>
        </div>

        <div class="col-sm-6 no-padding pull-left" align="left">
            <?php echo $this->FormElement($form->get('search_a_car')); ?>
        </div>
</div>
</div>
<?php echo $this->form()->closeTag(); ?>


