<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model app\modules\subscription\models\SubscriptionProduct */
/* @var $itemModel app\modules\subscription\models\SubscriptionPrice */
/* @var $roles array [name => description] of user roles */
/* @var $subscriptionProductRoles array [name => description] of user roles related to subscription product model */

$this->title = Yii::t('app', 'Update Subscription Product: {name}', [
    'name' => $model->name,
]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Subscription Products'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>
<div class="subscription-product-update box box-big box-light">

    <div class="box-header">
        <h3 class="box-title"><?= $this->title ?></h3>
    </div>

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

</div>
