} ?> <div class="col-md-4 col-md-offset-4"> <?php echo $form->field($filterForm, 'product_id')->dropDownList($allProducts, ['prompt' => Yii::t('easyii', 'Product'), 'class' => 'btn btn-findUs dropdown-toggle'])->label(''); ?> </div> <div class="clearfix"></div> <div class="col-md-4"> <?php echo $form->field($filterForm, 'country')->dropDownList(\app\models\Stores::FetchCountries(), ['prompt' => Yii::t('easyii', 'Country'), 'class' => 'btn btn-findUs dropdown-toggle', 'onchange' => ' $.post( "' . Yii::$app->urlManager->createUrl('stores/government?code=') . '"+$(this).val(), function( data ) { $( "select#gadgetsstoresfilterform-government" ).html( data ); })'])->label(''); ?> </div> <div class="col-md-4"> <?php if (isset($filterForm->country) and $filterForm->country != '') { $government = \app\models\Govenment::find()->where('country_code="' . $filterForm->country . '"')->all(); $listData = \yii\helpers\ArrayHelper::map($government, 'government_code', 'title');