|
@@ -17,7 +17,7 @@ use app\assets\AdminLteAsset;
|
|
|
AdminLteAsset::register($this);
|
|
|
|
|
|
$bodyClass = $this->params['body-class'] ?? null;
|
|
|
-Html::addCssClass($bodyClass, ['hold-transition', 'sidebar-mini', 'layout-fixed', 'layout-navbar-fixed']);
|
|
|
+Html::addCssClass($bodyClass, ['hold-transition', 'sidebar-mini', 'layout-fixed', 'layout-navbar-fixed', 'accent-dark']);
|
|
|
|
|
|
?>
|
|
|
<?php $this->beginPage() ?>
|
|
@@ -42,7 +42,7 @@ Html::addCssClass($bodyClass, ['hold-transition', 'sidebar-mini', 'layout-fixed'
|
|
|
'togglerOptions' => ['data-widget' => 'pushmenu', 'type' => 'link', 'widget'=>'nav-link'],
|
|
|
'renderInnerContainer' => false,
|
|
|
'options' => [
|
|
|
- 'class' => 'main-header navbar navbar-expand navbar-light',
|
|
|
+ 'class' => 'main-header navbar navbar-expand navbar-light navbar-warning',
|
|
|
],
|
|
|
]);
|
|
|
|
|
@@ -85,33 +85,37 @@ Html::addCssClass($bodyClass, ['hold-transition', 'sidebar-mini', 'layout-fixed'
|
|
|
<!-- /.navbar -->
|
|
|
|
|
|
<!-- Main Sidebar Container -->
|
|
|
- <aside class="main-sidebar sidebar-dark-success elevation-4">
|
|
|
+ <aside class="main-sidebar sidebar-dark-warning elevation-4">
|
|
|
<!-- Brand Logo -->
|
|
|
- <a href="<?= Yii::$app->homeUrl; ?>" class="brand-link navbar-dark text-center text-uppercase">
|
|
|
+ <a href="<?= Yii::$app->homeUrl; ?>" class="brand-link navbar-warning text-uppercase">
|
|
|
<!--<img src="../dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">-->
|
|
|
- <?= Html::img('@web/img/logo.png', ['alt' => Yii::$app->name, 'style' => 'width: 30%;opacity:.8;', 'class'=>'d-none brand-image img-circle elevation-3']); ?>
|
|
|
+ <?= Html::img('@web/img/logo.png', ['alt' => Yii::$app->name, 'style' => '', 'class'=>'brand-image']); ?>
|
|
|
<span class="brand-text font-weight-light"><?= Yii::$app->name; ?></span>
|
|
|
</a>
|
|
|
|
|
|
<!-- Sidebar -->
|
|
|
<div class="sidebar">
|
|
|
<!-- Sidebar user panel (optional) -->
|
|
|
- <div class="user-panel mt-3 pb-3 mb-3 d-flex justify-content-center">
|
|
|
+ <div class="user-panel mt-3 pb-3 mb-3 ">
|
|
|
<div class="image d-none">
|
|
|
<!--<img src="../dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">-->
|
|
|
<?= Html::img('@web/img/logo.png', ['alt' => 'User Image', 'style' => '', 'class'=>'d-none img-circle elevation-2']); ?>
|
|
|
</div>
|
|
|
- <div class="info">
|
|
|
- <a href="#" class="d-block" data-toggle="tooltip" title="Баланс грн"><i class="far fa-money-bill-alt text-success mr-1"></i> <?=\Yii::$app->user->identity->balance ?> </a>
|
|
|
- </div>
|
|
|
- <div class="info d-flex align-items-center">
|
|
|
- <a href="#" class="d-block" data-toggle="tooltip" title="Тариф: <?= \Yii::$app->user->identity->plan_title ?>"><i class="fas fa-puzzle-piece text-success"></i> <?=\Yii::$app->user->identity->plan_price ?></a>
|
|
|
+
|
|
|
+ <div class="info text-center text-white">
|
|
|
+ <p>Поточний баланс: <?= \Yii::$app->user->identity->balance ?> грн</p>
|
|
|
+
|
|
|
<?php if (\Yii::$app->user->identity->payment_online): ?>
|
|
|
- <i class="fas fa-info-circle ml-1 text-warning" data-toggle="tooltip" title="Очікуємо зарахування коштів"></i>
|
|
|
- <div class="spinner-border spinner-border-sm text-success ml-1 d-none" role="status" data-toggle="tooltip" title="Очікуємо зарахування коштів">
|
|
|
- </div>
|
|
|
+ <p style="line-height: 1">Оплачено онлайн: <?= \Yii::$app->user->identity->payment_online; ?> грн,<br>очікуємо зарахування банком</p>
|
|
|
+ <?php endif; ?>
|
|
|
+
|
|
|
+ <?php if((\Yii::$app->user->identity->balance - \Yii::$app->user->identity->plan_price) < 0 && (\Yii::$app->user->identity->payment_online + \Yii::$app->user->identity->balance) < \Yii::$app->user->identity->plan_price): ?>
|
|
|
+ <p class="mb-0 mt-3" data-toggle="tooltip" title="Поповніть рахунок для продовження дії тарифного плану "<?= \Yii::$app->user->identity->plan_title ?>"">
|
|
|
+ <i class="fas fa-exclamation-triangle text-danger"></i><span class="pl-2 text-danger">Недостатньо коштів</span>
|
|
|
+ </p>
|
|
|
<?php endif; ?>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<!-- Sidebar Menu -->
|
|
@@ -131,11 +135,11 @@ Html::addCssClass($bodyClass, ['hold-transition', 'sidebar-mini', 'layout-fixed'
|
|
|
'items' => [
|
|
|
[
|
|
|
'icon' => FAS::icon('home', ['class' => ['nav-icon']]),
|
|
|
- 'label' => 'Главная',
|
|
|
+ 'label' => 'Головна',
|
|
|
'url' => Yii::$app->homeUrl,
|
|
|
'active' => Yii::$app->controller->id === 'site',
|
|
|
],
|
|
|
- [
|
|
|
+ /*[
|
|
|
'icon' => FAS::icon('hand-holding-usd', ['class' => ['nav-icon']]),
|
|
|
'label' => 'Пополнить счет',
|
|
|
'url' => ['/pay/index'],
|
|
@@ -146,20 +150,20 @@ Html::addCssClass($bodyClass, ['hold-transition', 'sidebar-mini', 'layout-fixed'
|
|
|
'label' => 'Тарифы',
|
|
|
'url' => ['/pricing/index'],
|
|
|
'active' => Yii::$app->controller->id === 'pricing',
|
|
|
- ],
|
|
|
+ ],*/
|
|
|
[
|
|
|
'icon' => FAS::icon('history', ['class' => ['nav-icon']]),
|
|
|
- 'label' => 'История платежей',
|
|
|
- 'url' => Yii::$app->homeUrl,
|
|
|
+ 'label' => 'Історія платежів',
|
|
|
+ 'url' => ['/history/index'],
|
|
|
],
|
|
|
[
|
|
|
'icon' => FAS::icon('user-alt', ['class' => ['nav-icon']]),
|
|
|
- 'label' => 'Профайл',
|
|
|
+ 'label' => 'Профіль',
|
|
|
'url' => ['/profile/index'],
|
|
|
],
|
|
|
[
|
|
|
'icon' => FAS::icon('sign-out-alt', ['class' => ['nav-icon']]),
|
|
|
- 'label' => 'Выход',
|
|
|
+ 'label' => 'Вихід',
|
|
|
'url' => ['/logout'],
|
|
|
'template' => Html::beginForm(['/logout'], 'post')
|
|
|
. '<a href="#" onclick="this.parentNode.submit();" class="nav-link">{icon} <p>{label}</p></a>'
|
|
@@ -179,9 +183,9 @@ Html::addCssClass($bodyClass, ['hold-transition', 'sidebar-mini', 'layout-fixed'
|
|
|
<!-- Content Header (Page header) -->
|
|
|
<div class="content-header">
|
|
|
<div class="container-fluid">
|
|
|
- <div class="row mb-2">
|
|
|
+ <div class="row mb-3">
|
|
|
<div class="col-sm-6">
|
|
|
- <h1><?= Html::encode($this->title); ?></h1>
|
|
|
+ <h1 class="text-uppercase"><?= Html::encode($this->title); ?></h1>
|
|
|
</div>
|
|
|
<div class="col-sm-6 align-self-end">
|
|
|
<?= Breadcrumbs::widget([
|