use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $model backend\models\SdaFeedback */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="sda-feedback-form">

    <?php 
$form = ActiveForm::begin();
?>
    <?php 
$congress_ids = \backend\models\CongressDetails::find()->all();
$listData = ArrayHelper::map($congress_ids, 'id', 'name');
echo $form->field($model, 'congress_id')->dropDownList($listData, ['prompt' => 'Select...']);
?>
    <?php 
$sda_ids = \backend\models\Sda::find()->all();
$listDatas = ArrayHelper::map($sda_ids, 'id', 'title');
echo $form->field($model, 'sda_id')->dropDownList($listDatas, ['prompt' => 'Select...']);
?>
    <?php 
$listData = ArrayHelper::map($sda_ids, 'session_id', 'session_id');
echo $form->field($model, 'session_id')->dropDownList($listData, ['prompt' => 'Select...']);
?>
  
    <?php 
echo $form->field($model, 'audience_size')->textInput();
<div class="btn-group" role="group" aria-label="First group" style="width:33%; float:left">
    <?php 
echo Html::a('  <button class="btn_booths float_left" type="button">Congress Details</button>', ['congress/view', 'id' => $id], ['class' => 'profile-link']);
?>
</div>
<div id="row" style="background-color:#ccc;height:250px;margin-top: 80px;
     padding: 20px;">
    <div id="login">
        <?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>
        <div class="col-xs-6 col-sm-4 p5" style="width:100%">
            <div class="ml20" style="margin-left:-15px;">
                <label class="f18" for="name">Congress</label>
                <?php 
echo $form->field($model, 'id', array('labelOptions' => array('class' => 'f18')))->dropDownList(ArrayHelper::map(CongressDetails::find()->orderBy(['name' => SORT_ASC])->asArray()->all(), 'id', 'name'), ['id' => 'name', 'class' => 'form-control intp'])->label(FALSE);
?>
          

            </div>
        </div>
        <div class="form-group">
            <label class="f18" for="name">File</label>
            <?php 
echo $form->field($model, 'fileName')->fileInput()->label(FALSE);
?>

            <div class="form-group">
                <div class="form-group">
                    <?php 
echo Html::submitButton('Upload', ['class' => 'btn btn-primary', 'name' => 'login-button']);
 /**
  * Lists all CongressDetails models.
  * @return mixed
  */
 public function actionIndex()
 {
     //Hiding all congress whose start date in past
     $dataProvider = new ActiveDataProvider(['query' => CongressDetails::find()->andWhere('start_date >= curdate() ORDER BY start_date')]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }