<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
$branches=\common\models\Branches::find()->orderBy(['branch_name' => SORT_ASC])->all();
$listData=ArrayHelper::map($branches,'id','branch_name');

/* @var $this yii\web\View */
/* @var $model common\models\ParticipantsSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="participants-search">

    <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>


       <?php  /*echo $form->field($import, 'branch_name')->dropDownList(
        $listData,
        ['prompt'=>'Select...']
        );*/
        ?>
    <?php echo $form->field($import, 'excel_file')->fileInput(['accept'=>".xls,.xlsx"])->label('Import Excel') ?>

    <div class="form-group">
        <?= Html::submitButton('Import', ['class' => 'btn btn-success']) ?>

    </div>

    <?php ActiveForm::end(); ?>

</div>
