<?php
    
    use yiister\gentelella\widgets\Panel;
    
    /* @var $this yii\web\View */
    /* @var $model \common\models\Comment */
    /* @var $services \common\models\Service[] */
    
    $this->title = Yii::t(
            'app',
            'Update {modelClass}: ',
            [
                'modelClass' => 'Comment',
            ]
        ) . $model->name;
    $this->params[ 'breadcrumbs' ][] = [
        'label' => Yii::t('app', 'Comments'),
        '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 comment-update',
        ],
    ]
) ?>

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

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