la_back/backend/views/layouts/sidebar.php

48 lines
2.1 KiB
PHP
Raw Normal View History

2023-11-21 19:51:44 +03:00
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="index3.html" class="brand-link">
<img src="<?=$assetDir?>/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
<span class="brand-text font-weight-light">AdminLTE 3</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar user panel (optional) -->
<!-- SidebarSearch Form -->
<!-- href be escaped -->
<!-- <div class="form-inline">
<div class="input-group" data-widget="sidebar-search">
<input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-sidebar">
<i class="fas fa-search fa-fw"></i>
</button>
</div>
</div>
</div> -->
<!-- Sidebar Menu -->
<nav class="mt-2">
<?php
echo \hail812\adminlte\widgets\Menu::widget([
'items' => [
['label' => 'Products', 'icon' => 'th', 'url' => ['/product/product']],
['label' => 'Categories', 'icon' => 'th', 'url' => ['/category/category']],
['label' => 'Orders', 'icon' => 'th', 'url' => ['/order/order']],
['label' => 'Tables', 'icon' => 'th', 'url' => ['/table/table']],
['label' => 'Banners', 'icon' => 'th', 'url' => ['/banner/banner']],
['label' => 'Yii2 PROVIDED', 'header' => true],
['label' => 'Login', 'url' => ['site/login'], 'icon' => 'sign-in-alt', 'visible' => Yii::$app->user->isGuest],
['label' => 'Gii', 'icon' => 'file-code', 'url' => ['/gii'], 'target' => '_blank'],
['label' => 'Debug', 'icon' => 'bug', 'url' => ['/debug'], 'target' => '_blank'],
],
]);
?>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>