<?php

use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\widgets\ActiveForm;

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

<div class="special-items-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'item_id')->dropDownList(ArrayHelper::map($items, 'id', Yii::$app->language == 'en' ? 'english_name' : 'arabic_name'),[
        'prompt' => Yii::t('app', 'Select Item'),
    ]) ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
    </div>

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

</div>