<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\Ward;
use app\models\ZoneMaster;

/* @var $this yii\web\View */
/* @var $model app\models\ListOfHotelsSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<!-- ====== Availability Area ======= --> 
    <div class="availability-area bg-white-smoke">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="heading-content-three">
                        <h2 class="title">For rates &amp; Availability</h2>
                        <h5 class="sub-title">Search your <span>Hall</span></h5>
                    </div><!-- /.Availability-content -->
                </div><!-- /.col-md-12 -->
            </div><!-- /.row --> 
            <div class="row">
                <div class="col-md-12">
                    <!-- <form action="#" method="get" class="advance_search_query"> -->
                        <?php $form = ActiveForm::begin([
                            'action' => ['index'],
                            'method' => 'get',
                        ]); ?>
                        <div class="form-content">
                            <div class="form-group">
                                <?php
                                    $wardDlist = Ward::DList(); 
                                    echo $form->field($model, 'ward_id')->dropDownList($wardDlist,['prompt'=>'----- Select -----'])->label('WARD');
                                ?>
                            </div><!-- /.form-group -->
                            <div class="form-group">
                                <?php
                                    $zoneDlist = ZoneMaster::DList(); 
                                    echo $form->field($model, 'zone_id')->dropDownList($zoneDlist,['prompt'=>'----- Select -----'])->label('ZONE');
                                ?>
                            </div><!-- /.form-group -->
                            <div class="form-group">
                                <?= $form->field($model, 'priceFrom')->label('Price From') ?>
                            </div><!-- /.form-group -->
                            <div class="form-group">
                                <?= $form->field($model, 'per_day_price')->label('Price To') ?>
                            </div><!-- /.form-group -->
                            <div class="form-group">
                                <?php
                                    $hallType = ['1'=>'Goverment','2'=>'Private']; 
                                    echo $form->field($model, 'comm_hall_type')->dropDownList($hallType,['prompt'=>'----- Select -----'])->label('Hall Type');
                                ?>
                            </div><!-- /.form-group -->
                        </div><!-- /.form-content -->
                        <!-- <button type="submit" class=" button nevy-button">Search</button> -->
                        <?= Html::submitButton('Search', ['class' => 'button nevy-button']) ?>
                        <?php //= Html::resetButton('Reset', ['class' => 'btn btn-outline-secondary']) ?>
                    <!-- </form> /.advance_search_query -->
                    <?php ActiveForm::end(); ?>
                </div><!-- /.col-md-12 -->
            </div><!-- /.row -->
        </div><!-- /.container  -->
    </div><!-- /.Availability-area -->
