--- /dev/null
+<?php
+
+namespace app\controllers;
+
+use yii_app\records\MarketplacePrices;
+use yii\data\ActiveDataProvider;
+use yii\web\Controller;
+use yii\web\NotFoundHttpException;
+use yii\filters\VerbFilter;
+
+/**
+ * MarketplacePricesController implements the CRUD actions for MarketplacePrices model.
+ */
+class MarketplacePricesController extends Controller
+{
+ /**
+ * @inheritDoc
+ */
+ public function behaviors()
+ {
+ return array_merge(
+ parent::behaviors(),
+ [
+ 'verbs' => [
+ 'class' => VerbFilter::className(),
+ 'actions' => [
+ 'delete' => ['POST'],
+ ],
+ ],
+ ]
+ );
+ }
+
+ /**
+ * Lists all MarketplacePrices models.
+ *
+ * @return string
+ */
+ public function actionIndex()
+ {
+ $dataProvider = new ActiveDataProvider([
+ 'query' => MarketplacePrices::find(),
+ /*
+ 'pagination' => [
+ 'pageSize' => 50
+ ],
+ 'sort' => [
+ 'defaultOrder' => [
+ 'id' => SORT_DESC,
+ ]
+ ],
+ */
+ ]);
+
+ return $this->render('index', [
+ 'dataProvider' => $dataProvider,
+ ]);
+ }
+
+ /**
+ * Displays a single MarketplacePrices model.
+ * @param int $id ID
+ * @return string
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ public function actionView($id)
+ {
+ return $this->render('view', [
+ 'model' => $this->findModel($id),
+ ]);
+ }
+
+ /**
+ * Creates a new MarketplacePrices model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ * @return string|\yii\web\Response
+ */
+ public function actionCreate()
+ {
+ $model = new MarketplacePrices();
+
+ if ($this->request->isPost) {
+ if ($model->load($this->request->post()) && $model->save()) {
+ return $this->redirect(['view', 'id' => $model->id]);
+ }
+ } else {
+ $model->loadDefaultValues();
+ }
+
+ return $this->render('create', [
+ 'model' => $model,
+ ]);
+ }
+
+ /**
+ * Updates an existing MarketplacePrices model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param int $id ID
+ * @return string|\yii\web\Response
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ public function actionUpdate($id)
+ {
+ $model = $this->findModel($id);
+
+ if ($this->request->isPost && $model->load($this->request->post()) && $model->save()) {
+ return $this->redirect(['view', 'id' => $model->id]);
+ }
+
+ return $this->render('update', [
+ 'model' => $model,
+ ]);
+ }
+
+ /**
+ * Deletes an existing MarketplacePrices model.
+ * If deletion is successful, the browser will be redirected to the 'index' page.
+ * @param int $id ID
+ * @return \yii\web\Response
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ public function actionDelete($id)
+ {
+ $this->findModel($id)->delete();
+
+ return $this->redirect(['index']);
+ }
+
+ /**
+ * Finds the MarketplacePrices model based on its primary key value.
+ * If the model is not found, a 404 HTTP exception will be thrown.
+ * @param int $id ID
+ * @return MarketplacePrices the loaded model
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ protected function findModel($id)
+ {
+ if (($model = MarketplacePrices::findOne(['id' => $id])) !== null) {
+ return $model;
+ }
+
+ throw new NotFoundHttpException('The requested page does not exist.');
+ }
+}
--- /dev/null
+<?php
+
+namespace app\controllers;
+
+use yii_app\records\MarketplacePricesLog;
+use yii\data\ActiveDataProvider;
+use yii\web\Controller;
+use yii\web\NotFoundHttpException;
+use yii\filters\VerbFilter;
+
+/**
+ * MarketplacePricesLogController implements the CRUD actions for MarketplacePricesLog model.
+ */
+class MarketplacePricesLogController extends Controller
+{
+ /**
+ * @inheritDoc
+ */
+ public function behaviors()
+ {
+ return array_merge(
+ parent::behaviors(),
+ [
+ 'verbs' => [
+ 'class' => VerbFilter::className(),
+ 'actions' => [
+ 'delete' => ['POST'],
+ ],
+ ],
+ ]
+ );
+ }
+
+ /**
+ * Lists all MarketplacePricesLog models.
+ *
+ * @return string
+ */
+ public function actionIndex()
+ {
+ $dataProvider = new ActiveDataProvider([
+ 'query' => MarketplacePricesLog::find(),
+ /*
+ 'pagination' => [
+ 'pageSize' => 50
+ ],
+ 'sort' => [
+ 'defaultOrder' => [
+ 'id' => SORT_DESC,
+ ]
+ ],
+ */
+ ]);
+
+ return $this->render('index', [
+ 'dataProvider' => $dataProvider,
+ ]);
+ }
+
+ /**
+ * Displays a single MarketplacePricesLog model.
+ * @param int $id ID
+ * @return string
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ public function actionView($id)
+ {
+ return $this->render('view', [
+ 'model' => $this->findModel($id),
+ ]);
+ }
+
+ /**
+ * Creates a new MarketplacePricesLog model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ * @return string|\yii\web\Response
+ */
+ public function actionCreate()
+ {
+ $model = new MarketplacePricesLog();
+
+ if ($this->request->isPost) {
+ if ($model->load($this->request->post()) && $model->save()) {
+ return $this->redirect(['view', 'id' => $model->id]);
+ }
+ } else {
+ $model->loadDefaultValues();
+ }
+
+ return $this->render('create', [
+ 'model' => $model,
+ ]);
+ }
+
+ /**
+ * Updates an existing MarketplacePricesLog model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param int $id ID
+ * @return string|\yii\web\Response
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ public function actionUpdate($id)
+ {
+ $model = $this->findModel($id);
+
+ if ($this->request->isPost && $model->load($this->request->post()) && $model->save()) {
+ return $this->redirect(['view', 'id' => $model->id]);
+ }
+
+ return $this->render('update', [
+ 'model' => $model,
+ ]);
+ }
+
+ /**
+ * Deletes an existing MarketplacePricesLog model.
+ * If deletion is successful, the browser will be redirected to the 'index' page.
+ * @param int $id ID
+ * @return \yii\web\Response
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ public function actionDelete($id)
+ {
+ $this->findModel($id)->delete();
+
+ return $this->redirect(['index']);
+ }
+
+ /**
+ * Finds the MarketplacePricesLog model based on its primary key value.
+ * If the model is not found, a 404 HTTP exception will be thrown.
+ * @param int $id ID
+ * @return MarketplacePricesLog the loaded model
+ * @throws NotFoundHttpException if the model cannot be found
+ */
+ protected function findModel($id)
+ {
+ if (($model = MarketplacePricesLog::findOne(['id' => $id])) !== null) {
+ return $model;
+ }
+
+ throw new NotFoundHttpException('The requested page does not exist.');
+ }
+}
--- /dev/null
+<?php
+
+use yii\db\Migration;
+
+class m251001_083230_add_marketplace_prices_table extends Migration
+{
+ const TABLE_NAME = 'erp24.marketplace_prices';
+ /**
+ * {@inheritdoc}
+ */
+ public function safeUp()
+ {
+ $tableSchema = $this->db->getTableSchema(self::TABLE_NAME);
+
+ if (!isset($tableSchema)) {
+ $this->createTable(self::TABLE_NAME, [
+ 'id' => $this->primaryKey()->comment('ID'),
+ 'matrix_erp_id' => $this->integer()->notNull()->unique()->comment('ID товара матрицы'),
+ 'marketplace_id' => $this->integer()->notNull()->comment('ID маркетплейса 1 - YM, 2 - FW'),
+ 'marketplace_alias' => $this->string()->notNull()->comment('Алиас маркетплейса - YM, FW'),
+ 'price' => $this->decimal(12,2)->notNull()->comment('Цена товара для МП'),
+ 'old_price' => $this->decimal(12,2)->null()->comment('Старая цена для скидки'),
+ 'created_at' => $this->dateTime()->notNull()->defaultExpression('NOW()')->comment('Когда создано'),
+ 'updated_at' => $this->dateTime()->null()->comment('Когда обновлено'),
+ ]);
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function safeDown()
+ {
+ $tableSchema = $this->db->getTableSchema(self::TABLE_NAME);
+ if (isset($tableSchema)) {
+ $this->dropTable(self::TABLE_NAME);
+ }
+ }
+
+ /*
+ // Use up()/down() to run migration code without a transaction.
+ public function up()
+ {
+
+ }
+
+ public function down()
+ {
+ echo "m251001_083230_add_marketplace_prices_table cannot be reverted.\n";
+
+ return false;
+ }
+ */
+}
--- /dev/null
+<?php
+
+use yii\db\Migration;
+
+class m251001_083252_add_marketplace_prices_log_table extends Migration
+{
+ const TABLE_NAME = 'erp24.marketplace_prices_log';
+ /**
+ * {@inheritdoc}
+ */
+ public function safeUp()
+ {
+ $tableSchema = $this->db->getTableSchema(self::TABLE_NAME);
+
+ if (!isset($tableSchema)) {
+ $this->createTable(self::TABLE_NAME, [
+ 'id' => $this->bigPrimaryKey(),
+ 'marketplace_prices_id' => $this->integer()->notNull()->comment('FK на marketplace_prices.id'),
+ 'action' => $this->smallInteger()->notNull()->comment('1=create, 2=update'),
+ 'changed_at' => $this->dateTime()->notNull()->defaultExpression('NOW()')->comment('Когда изменено'),
+ 'changed_by' => $this->integer()->null()->comment('Кем изменено - admin id'),
+ 'price_before' => $this->decimal(12,2)->null(),
+ 'price_after' => $this->decimal(12,2)->null(),
+ 'old_price_before' => $this->decimal(12,2)->null(),
+ 'old_price_after' => $this->decimal(12,2)->null(),
+ ]);
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function safeDown()
+ {
+ $tableSchema = $this->db->getTableSchema(self::TABLE_NAME);
+ if (isset($tableSchema)) {
+ $this->dropTable(self::TABLE_NAME);
+ }
+ }
+
+ /*
+ // Use up()/down() to run migration code without a transaction.
+ public function up()
+ {
+
+ }
+
+ public function down()
+ {
+ echo "m251001_083252_add_marketplace_prices_log_table cannot be reverted.\n";
+
+ return false;
+ }
+ */
+}
--- /dev/null
+<?php
+
+namespace yii_app\records;
+
+use Yii;
+
+/**
+ * This is the model class for table "marketplace_prices".
+ *
+ * @property int $id ID
+ * @property int $matrix_erp_id ID товара матрицы
+ * @property int $marketplace_id ID маркетплейса 1 - YM, 2 - FW
+ * @property string $marketplace_alias Алиас маркетплейса - YM, FW
+ * @property float $price Цена товара для МП
+ * @property float|null $old_price Старая цена для скидки
+ * @property string $created_at Когда создано
+ * @property string|null $updated_at Когда обновлено
+ */
+class MarketplacePrices extends \yii\db\ActiveRecord
+{
+
+
+ /**
+ * {@inheritdoc}
+ */
+ public static function tableName()
+ {
+ return 'marketplace_prices';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function rules()
+ {
+ return [
+ [['old_price', 'updated_at'], 'default', 'value' => null],
+ [['matrix_erp_id', 'marketplace_id', 'marketplace_alias', 'price'], 'required'],
+ [['matrix_erp_id', 'marketplace_id'], 'default', 'value' => null],
+ [['matrix_erp_id', 'marketplace_id'], 'integer'],
+ [['price', 'old_price'], 'number'],
+ [['created_at', 'updated_at'], 'safe'],
+ [['marketplace_alias'], 'string', 'max' => 255],
+ [['matrix_erp_id'], 'unique'],
+ ];
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function attributeLabels()
+ {
+ return [
+ 'id' => 'ID',
+ 'matrix_erp_id' => 'ID товара матрицы',
+ 'marketplace_id' => 'ID маркетплейса 1 - YM, 2 - FW',
+ 'marketplace_alias' => 'Алиас маркетплейса - YM, FW',
+ 'price' => 'Цена товара для МП',
+ 'old_price' => 'Старая цена для скидки',
+ 'created_at' => 'Когда создано',
+ 'updated_at' => 'Когда обновлено',
+ ];
+ }
+
+ public function getHistory()
+ {
+ return $this->hasMany(MarketplacePricesLog::class, ['marketplace_prices_id' => 'id'])
+ ->orderBy(['changed_at' => SORT_DESC, 'id' => SORT_DESC]);
+ }
+
+}
--- /dev/null
+<?php
+
+namespace yii_app\records;
+
+use Yii;
+
+/**
+ * This is the model class for table "marketplace_prices_log".
+ *
+ * @property int $id
+ * @property int $marketplace_prices_id FK на marketplace_prices.id
+ * @property int $action 1=create, 2=update
+ * @property string $changed_at Когда изменено
+ * @property int|null $changed_by Кем изменено - admin id
+ * @property float|null $price_before
+ * @property float|null $price_after
+ * @property float|null $old_price_before
+ * @property float|null $old_price_after
+ */
+class MarketplacePricesLog extends \yii\db\ActiveRecord
+{
+
+
+ /**
+ * {@inheritdoc}
+ */
+ public static function tableName()
+ {
+ return 'marketplace_prices_log';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function rules()
+ {
+ return [
+ [['changed_by', 'price_before', 'price_after', 'old_price_before', 'old_price_after'], 'default', 'value' => null],
+ [['marketplace_prices_id', 'action'], 'required'],
+ [['marketplace_prices_id', 'action', 'changed_by'], 'default', 'value' => null],
+ [['marketplace_prices_id', 'action', 'changed_by'], 'integer'],
+ [['changed_at'], 'safe'],
+ [['price_before', 'price_after', 'old_price_before', 'old_price_after'], 'number'],
+ ];
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function attributeLabels()
+ {
+ return [
+ 'id' => 'ID',
+ 'marketplace_prices_id' => 'FK на marketplace_prices.id',
+ 'action' => '1=create, 2=update',
+ 'changed_at' => 'Когда изменено',
+ 'changed_by' => 'Кем изменено - admin id',
+ 'price_before' => 'Price Before',
+ 'price_after' => 'Price After',
+ 'old_price_before' => 'Old Price Before',
+ 'old_price_after' => 'Old Price After',
+ ];
+ }
+
+}
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+use yii\widgets\ActiveForm;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePricesLog $model */
+/** @var yii\widgets\ActiveForm $form */
+?>
+
+<div class="marketplace-prices-log-form">
+
+ <?php $form = ActiveForm::begin(); ?>
+
+ <?= $form->field($model, 'marketplace_prices_id')->textInput() ?>
+
+ <?= $form->field($model, 'action')->textInput() ?>
+
+ <?= $form->field($model, 'changed_at')->textInput() ?>
+
+ <?= $form->field($model, 'changed_by')->textInput() ?>
+
+ <?= $form->field($model, 'price_before')->textInput() ?>
+
+ <?= $form->field($model, 'price_after')->textInput() ?>
+
+ <?= $form->field($model, 'old_price_before')->textInput() ?>
+
+ <?= $form->field($model, 'old_price_after')->textInput() ?>
+
+ <div class="form-group">
+ <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
+ </div>
+
+ <?php ActiveForm::end(); ?>
+
+</div>
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePricesLog $model */
+
+$this->title = 'Create Marketplace Prices Log';
+$this->params['breadcrumbs'][] = ['label' => 'Marketplace Prices Logs', 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+?>
+<div class="marketplace-prices-log-create">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <?= $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+</div>
--- /dev/null
+<?php
+
+use yii_app\records\MarketplacePricesLog;
+use yii\helpers\Html;
+use yii\helpers\Url;
+use yii\grid\ActionColumn;
+use yii\grid\GridView;
+
+/** @var yii\web\View $this */
+/** @var yii\data\ActiveDataProvider $dataProvider */
+
+$this->title = 'Marketplace Prices Logs';
+$this->params['breadcrumbs'][] = $this->title;
+?>
+<div class="marketplace-prices-log-index">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <p>
+ <?= Html::a('Create Marketplace Prices Log', ['create'], ['class' => 'btn btn-success']) ?>
+ </p>
+
+
+ <?= GridView::widget([
+ 'dataProvider' => $dataProvider,
+ 'columns' => [
+ ['class' => 'yii\grid\SerialColumn'],
+
+ 'id',
+ 'marketplace_prices_id',
+ 'action',
+ 'changed_at',
+ 'changed_by',
+ //'price_before',
+ //'price_after',
+ //'old_price_before',
+ //'old_price_after',
+ [
+ 'class' => ActionColumn::className(),
+ 'urlCreator' => function ($action, MarketplacePricesLog $model, $key, $index, $column) {
+ return Url::toRoute([$action, 'id' => $model->id]);
+ }
+ ],
+ ],
+ ]); ?>
+
+
+</div>
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePricesLog $model */
+
+$this->title = 'Update Marketplace Prices Log: ' . $model->id;
+$this->params['breadcrumbs'][] = ['label' => 'Marketplace Prices Logs', 'url' => ['index']];
+$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
+$this->params['breadcrumbs'][] = 'Update';
+?>
+<div class="marketplace-prices-log-update">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <?= $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+</div>
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+use yii\widgets\DetailView;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePricesLog $model */
+
+$this->title = $model->id;
+$this->params['breadcrumbs'][] = ['label' => 'Marketplace Prices Logs', 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+\yii\web\YiiAsset::register($this);
+?>
+<div class="marketplace-prices-log-view">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <p>
+ <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
+ <?= Html::a('Delete', ['delete', 'id' => $model->id], [
+ 'class' => 'btn btn-danger',
+ 'data' => [
+ 'confirm' => 'Are you sure you want to delete this item?',
+ 'method' => 'post',
+ ],
+ ]) ?>
+ </p>
+
+ <?= DetailView::widget([
+ 'model' => $model,
+ 'attributes' => [
+ 'id',
+ 'marketplace_prices_id',
+ 'action',
+ 'changed_at',
+ 'changed_by',
+ 'price_before',
+ 'price_after',
+ 'old_price_before',
+ 'old_price_after',
+ ],
+ ]) ?>
+
+</div>
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+use yii\widgets\ActiveForm;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePrices $model */
+/** @var yii\widgets\ActiveForm $form */
+?>
+
+<div class="marketplace-prices-form">
+
+ <?php $form = ActiveForm::begin(); ?>
+
+ <?= $form->field($model, 'matrix_erp_id')->textInput() ?>
+
+ <?= $form->field($model, 'marketplace_id')->textInput() ?>
+
+ <?= $form->field($model, 'marketplace_alias')->textInput(['maxlength' => true]) ?>
+
+ <?= $form->field($model, 'price')->textInput() ?>
+
+ <?= $form->field($model, 'old_price')->textInput() ?>
+
+ <?= $form->field($model, 'created_at')->textInput() ?>
+
+ <?= $form->field($model, 'updated_at')->textInput() ?>
+
+ <div class="form-group">
+ <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
+ </div>
+
+ <?php ActiveForm::end(); ?>
+
+</div>
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePrices $model */
+
+$this->title = 'Create Marketplace Prices';
+$this->params['breadcrumbs'][] = ['label' => 'Marketplace Prices', 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+?>
+<div class="marketplace-prices-create">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <?= $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+</div>
--- /dev/null
+<?php
+
+use yii_app\records\MarketplacePrices;
+use yii\helpers\Html;
+use yii\helpers\Url;
+use yii\grid\ActionColumn;
+use yii\grid\GridView;
+
+/** @var yii\web\View $this */
+/** @var yii\data\ActiveDataProvider $dataProvider */
+
+$this->title = 'Marketplace Prices';
+$this->params['breadcrumbs'][] = $this->title;
+?>
+<div class="marketplace-prices-index">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <p>
+ <?= Html::a('Create Marketplace Prices', ['create'], ['class' => 'btn btn-success']) ?>
+ </p>
+
+
+ <?= GridView::widget([
+ 'dataProvider' => $dataProvider,
+ 'columns' => [
+ ['class' => 'yii\grid\SerialColumn'],
+
+ 'id',
+ 'matrix_erp_id',
+ 'marketplace_id',
+ 'marketplace_alias',
+ 'price',
+ //'old_price',
+ //'created_at',
+ //'updated_at',
+ [
+ 'class' => ActionColumn::className(),
+ 'urlCreator' => function ($action, MarketplacePrices $model, $key, $index, $column) {
+ return Url::toRoute([$action, 'id' => $model->id]);
+ }
+ ],
+ ],
+ ]); ?>
+
+
+</div>
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePrices $model */
+
+$this->title = 'Update Marketplace Prices: ' . $model->id;
+$this->params['breadcrumbs'][] = ['label' => 'Marketplace Prices', 'url' => ['index']];
+$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
+$this->params['breadcrumbs'][] = 'Update';
+?>
+<div class="marketplace-prices-update">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <?= $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+</div>
--- /dev/null
+<?php
+
+use yii\helpers\Html;
+use yii\widgets\DetailView;
+
+/** @var yii\web\View $this */
+/** @var yii_app\records\MarketplacePrices $model */
+
+$this->title = $model->id;
+$this->params['breadcrumbs'][] = ['label' => 'Marketplace Prices', 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+\yii\web\YiiAsset::register($this);
+?>
+<div class="marketplace-prices-view">
+
+ <h1><?= Html::encode($this->title) ?></h1>
+
+ <p>
+ <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
+ <?= Html::a('Delete', ['delete', 'id' => $model->id], [
+ 'class' => 'btn btn-danger',
+ 'data' => [
+ 'confirm' => 'Are you sure you want to delete this item?',
+ 'method' => 'post',
+ ],
+ ]) ?>
+ </p>
+
+ <?= DetailView::widget([
+ 'model' => $model,
+ 'attributes' => [
+ 'id',
+ 'matrix_erp_id',
+ 'marketplace_id',
+ 'marketplace_alias',
+ 'price',
+ 'old_price',
+ 'created_at',
+ 'updated_at',
+ ],
+ ]) ?>
+
+</div>