create.php 905 Bytes
<?php
    
    use yii\helpers\Html;
    use yiister\gentelella\widgets\Panel;
    
    /* @var $this yii\web\View */
    /* @var $model artbox\stock\models\Shop */
    /* @var $modelLangs artbox\stock\models\ShopLang */
    
    $this->title = \Yii::t('stock', 'Create Shop');
    $this->params[ 'breadcrumbs' ][] = [
        'label' => \Yii::t('stock', 'Shops'),
        'url'   => [ 'index' ],
    ];
    $this->params[ 'breadcrumbs' ][] = \Yii::t('stock', $this->title);
?>
<div class="shop-create">
    <?php
        $xPanel = Panel::begin(
            [
                'header' => \Yii::t('stock', Html::encode($this->title)),
            ]
        );
    ?>
  <h1><?= Html::encode($this->title) ?></h1>
    
    <?= $this->render(
        '_form',
        [
            'model' => $model,
            'modelLangs' => $modelLangs,
        ]
    ) ?>
    <?php
        $xPanel::end();
    ?>
</div>