<?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('sight-seeing', ['action' => 'index']));
$form->setAttribute('method', 'post');
$form->setAttribute('id', 'vehicle-search-form');
echo $this->form()->openTag($form);
?>
<div class="" align="center">
    <div class="col-sm-12 no-padding float-none">
        <div class="col-md-6 no-padding">
            <div class="form-group-lg form-group-icon-left" id="roundtrip_Outstation">
                <div class="row">
                    <div class="col-md-12 margin-top40pxLocal">

                        <div class="col-md-4 col-md-4-mobile">
                            <div class="form-group-lg form-group-select-plus">
                                <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-4 col-md-4-mobile">
                        <div class="form-group-lg form-group-select-plus">
                            <div class="group">
                                <?php echo $this->formElement($form->get('sightseeing_type')); ?>
                                <?php echo $this->formElementErrors($form->get('sightseeing_type'), ['class' => 'error']); ?>
                                <span class="highlight"></span>
                                <span class="bar"></span>
                                <?php echo $this->translate($this->formLabel($form->get('sightseeing_type'))); ?>
                            </div>
                        </div>
                    </div>

                        <div class="col-md-4 col-md-4-mobile">
                            <div class="form-group-lg form-group-select-plus">
                                <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 class="col-md-12 margin-top40pxLocal">
                        <div class="col-sm-12 local-pickup-address no-padding">
                            <div class="col-md-12 margin-top40pxLocal pickup-addres">
                                <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-md-12 margin-top40pxLocal">



                        <div class="col-sm-12 no-padding">
                <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-md-12 margin-top40pxLocal">

                        <div class="col-md-5">
                            <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-5">
                            <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>
                    <!--<div class="col-md-12 margin-top40pxLocal">

                        <div class="col-md-3">

                        </div>

                        <div class="col-md-8 ">

                            <div id='TextBoxesGroup'>


                            </div>

                        </div>


                    </div>-->


                </div>
                <div>

                </div>
            </div>

        </div>




        <div class="col-sm-12 no-padding margintop10 marginbot20">
            <div class="col-md-6 no-padding">
                <div class="form-group-lg form-group-select-plus spanclass">
                </div>
            </div>
        </div>

        <div class="col-sm-6 pull-left no-padding margin-bot5px" 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(); ?>
