<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model app\models\SubCategories */
$lang = Yii::$app->language;
$this->title = Yii::t('app', 'Update Sub Category: {name}', [
    'name' => Yii::$app->language == 'ar' ? $model->arabic_name : $model->english_name,
]);
// $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Sub Categories'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $lang == 'en' ? $model->mainCategory->english_name : $model->mainCategory->arabic_name, 'url' => ['main-categories/view?id=' . $model->mainCategory->id]];
$this->params['breadcrumbs'][] = ['label' => Yii::$app->language == 'ar' ? $model->arabic_name : $model->english_name, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>
<div class="sub-categories-update">

    <h1><?= Html::encode($this->title) ?></h1>

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

</div>
