<?php

use yii\helpers\Html;
use yii\bootstrap4\ActiveForm;

/* @var $this yii\web\View */
/* @var $model frontend\modules\check\models\Check */
/* @var $form yii\bootstrap4\ActiveForm */

$companyService = new \common\services\CompanyService();
?>

<div class="check-form">

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

    <?= $form->field($model, 'addresses_id')->dropDownList($companyService->getAddressesByUserArr()) ?>

    <?= $form->field($model, 'status')->dropDownList(\common\models\Check::getStatus()) ?>

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

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

</div>
