<?php
    
    use yiister\gentelella\widgets\Panel;
    
    /* @var $this yii\web\View */
    /* @var $model \common\models\Question */
    /* @var $doctors \common\models\Doctor[]*/
    
    $this->title = Yii::t(
            'app',
            'Update {modelClass}: ',
            [
                'modelClass' => 'Question',
            ]
        ) . $model->name;
    $this->params[ 'breadcrumbs' ][] = [
        'label' => Yii::t('app', 'Questions'),
        'url'   => [ 'index' ],
    ];
    $this->params[ 'breadcrumbs' ][] = [
        'label' => $model->name,
        'url'   => [
            'view',
            'id' => $model->id,
        ],
    ];
    $this->params[ 'breadcrumbs' ][] = Yii::t('core', 'Update');
?>

<?php $panel = Panel::begin(
    [
        'header'  => $this->title,
        'options' => [
            'class' => 'x_panel question-update',
        ],
    ]
) ?>

<?= $this->render(
    '_form',
    [
        'model' => $model,
        'services' => $services,
        'doctors'  => $doctors
    ]
) ?>

<?php $panel::end(); ?>
