<?php

use yii\helpers\Html;
use app\models\MainCategories;

/* @var $this yii\web\View */
/* @var $model app\models\SubCategories */
$main_category = MainCategories::findOne($main_cate_id);
$lang = Yii::$app->language;
$this->title = Yii::t('app', 'Create Sub Category');
$this->params['breadcrumbs'][] = ['label' => $lang == 'en' ? $main_category->english_name : $main_category->arabic_name, 'url' => ['main-categories/view?id=' . $main_cate_id]];
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="sub-categories-create">

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

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

</div>
