<?php
$session = new \Zend\Session\Container('userlogin');
$user_id = isset($session->userData['user_id']) ? $session->userData['user_id'] : '';
?>
<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('airport-transfer', ['action' => 'index']));
$form->setAttribute('method', 'post');
$form->setAttribute('id', 'vehicle-search-form');
echo $this->form()->openTag($form);
?>
<div class="col-sm-12 no-padding" align="center">
    <div class="col-sm-12 no-padding float-none">
        <div class="col-sm-12 no-padding">
            <div class="col-md-10 date_time1 marginbot40 border_bottom height40px pickup-type-mobile">
                <div class="airport-radio">
                    <div class="col-sm-3 padding0 margin-left31">
                        <div class="carbooking">
                            <input type="radio" name="airport_transfer" id="going-to" checked="checked" value="1">
                            <label for="going-to"><span class="radio"><?php echo $this->translate('Going to Airport / Train'); ?></span></label>
                            <?php echo $this->formElement($form->get('airport_transfer_going_selected')); ?>
                        </div>
                    </div>
                    <div class="col-sm-3 mobile_padding margin-left31">
                        <div class="carbooking">
                            <input type="radio" name="airport_transfer" id="coming-from" value="2">
                            <label for="coming-from"><span class="radio"><?php echo $this->translate('Coming from Airport / Train'); ?></span></label>
                            <?php echo $this->formElement($form->get('airport_transfer_coming_selected')); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-12 no-padding pull-left">
            <div class="form-group-lg form-group-icon-left" id="roundtrip_Outstation">
                <div class="row">

                    <div class="col-md-2 marginbot40 col-md-2-mobile">
                        <div class="form-group-lg form-group-icon-left form-group-filled">
                            <div class="group">
                                <?php echo $this->formElement($form->get('pickup_city')); ?>
                                <?php echo $this->formElementErrors($form->get('pickup_city'), ['class' => 'error']); ?>
                                <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-2 marginbot40 col-md-2-mobile">
                        <div class="form-group-lg form-group-select-plus">

                            <div class="group">
                                <?php echo $this->formElement($form->get('airport')); ?>
                                <?php echo $this->formElementErrors($form->get('airport'), ['class' => 'error']); ?>
                                <span class="highlight"></span>
                                <span class="bar"></span>
                                <?php echo $this->translate($this->formLabel($form->get('airport'))); ?>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-2 marginbot40 col-md-2-mobile">
                        <div class="form-group-lg form-group-icon-left form-group-filled">
                            <div class="group">
                                <?php echo $this->formElement($form->get('flight_number')); ?>
                                <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-2 date_time marginbot40 col-md-2-mobile" id="pickup_location">
                        <div class="form-group-lg form-group-icon-left">
                            <div class="group">
                                <?php echo $this->formElement($form->get('pickup_area')); ?>
                                <?php echo $this->formElementErrors($form->get('pickup_area'), ['class' => 'error']); ?>
                                <span class="highlight"></span>
                                <span class="bar"></span>
                                <?php echo $this->translate($this->formLabel($form->get('pickup_area'))); ?>
                                <?php echo $this->formElement($form->get('pickup_area_value')); ?>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-2 date_time disable_none marginbot40 col-md-2-mobile" id="dropup_location">
                        <div class="form-group-lg form-group-icon-left">
                            <div class="group">
                                <?php echo $this->formElement($form->get('drop_area')); ?>
                                <?php echo $this->formElementErrors($form->get('drop_area'), ['class' => 'error']); ?>
                                <span class="highlight"></span>
                                <span class="bar"></span>
                                <?php echo $this->translate($this->formLabel($form->get('drop_area'))); ?>
                                <?php echo $this->formElement($form->get('drop_area_value')); ?>
                            </div>
                        </div>
                    </div>

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

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

        <div class="col-md-12 no-padding pull-left">
            <div class="form-group-lg form-group-icon-left" id="roundtrip_Outstation">
                <div class="row">

                    <div class="col-md-6 marginbot40">
                        <div class="form-group-lg form-group-icon-left">
                            <div class="group" id="pickup_address">
                                <?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 class="group disable_none" id="dropup_address">
                                <?php echo $this->formElement($form->get('drop_address')); ?>
                                <?php echo $this->formElementErrors($form->get('drop_address'), ['class' => 'error']); ?>
                                <span class="highlight"></span>
                                <span class="bar"></span>
                                <?php echo $this->translate($this->formLabel($form->get('drop_address'))); ?>
                            </div>
                        </div>
                    </div>

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

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

    </div>

    <div class="col-sm-12 no-padding marginbot20 height40px">
        <div class="col-md-5 no-padding">
            <div class="">
                <div class="col-sm-12 padding0">
                    <div class="col-md-4 margin-left44 no-padding">
                        <div class="carbooking">
                            <input type="radio" name="local_pickup" id="pickup-now" value="2" checked='checked'>
                            <label for="pickup-now"><span class="radio"><?php echo $this->translate('Pick Now (With in 30 min)'); ?></span></label>
                            <?php echo $this->formElement($form->get('pickup_now_selected')); ?>
                        </div>
                    </div>

                    <div class="col-md-5 margin-left35" >
                        <div class="form-group-lg form-group-select-plus">
                            <div class="carbooking">
                                <input type="radio" name="local_pickup" id="pickup-later" value="3">
                                <label for="pickup-later"><span class="radio"><?php echo $this->translate('Pick Later (After 1 Hr.)'); ?></span></label>
                                <?php echo $this->formElement($form->get('pickup_later_selected')); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="col-sm-3 no-padding disable_none left-margin-71px"  id="datetime">
            <div class="col-md-12 no-padding" id="round_trip">
                <div class="form-group-lg form-group-icon-left">
                    <div class="col-sm-7">
                        <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>
                        </div>
                    </div>

                    <div class="col-sm-5 padding-left0">
                        <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>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-sm-12 padding0 pull-left">
        <div class="row">
            <div class="col-md-3 col-md-3-mobile">
                <div class="form-group-lg form-group-select-plus">
                    <div class="group adult 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 chield 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 laggage 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 car 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 margintop10 marginbot20">
    </div>

    <div class="col-sm-6 no-padding pull-left margin-bot10px" align="left">
        <?php echo $this->FormElement($form->get('master_package_type')); ?>
        <?php echo $this->FormElement($form->get('city_id')); ?>
        <?php echo $this->FormElement($form->get('vehicle_type_id')); ?>
        <?php echo $this->FormElement($form->get('city_latitude')); ?>
        <?php echo $this->FormElement($form->get('city_longitude')); ?>
        <?php echo $this->FormElement($form->get('city_northeast_latitude')); ?>
        <?php echo $this->FormElement($form->get('city_northeast_longitude')); ?>
        <?php echo $this->FormElement($form->get('city_southwest_latitude')); ?>
        <?php echo $this->FormElement($form->get('city_southwest_longitude')); ?>
        <?php if (!empty($user_id)) { ?>
            <?php echo $this->FormElement($form->get('search_a_car')); ?>
        <?php } else { ?>
            <a href="<?php echo $this->url('guest-login'); ?>" data-target="#ajax-modal" data-toggle="modal" data-remote="true" data-keyboard="false" data-backdrop="static" class="btn btn-red defaultbtnsearch btn-warning">
                <i class="fa fa-search iconsearch" id="search-me" ></i>Search
            </a>
        <?php } ?>
    </div>
</div>
</div>
<?php echo $this->form()->closeTag(); ?>
