2020-02-01 16:59:30 +10:00
|
|
|
<nav class="col-md-2 d-none d-md-block sidebar">
|
|
|
|
<div class="sidebar-sticky">
|
|
|
|
<ul class="nav flex-column">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="/admin"><img class="sidebar-brand" src="/images/logo-admin.png"></a>
|
2020-02-01 18:54:11 +10:00
|
|
|
<a href="#" data-toggle="modal" data-target="#globalSearchModal" class="sidebar-search text-muted">{{{feather 'search'}}}</a>
|
2020-02-01 16:59:30 +10:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/dashboard">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'bar-chart'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
{{ @root.__ "Dashboard" }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
|
|
|
<span>Manage</span>
|
|
|
|
</h6>
|
|
|
|
{{#ifCond session.isAdmin '===' true}}
|
|
|
|
<li class="nav-item sidebar-addon">
|
|
|
|
<a class="nav-link sidebar-link" href="/admin/products">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'tag'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
Products
|
|
|
|
</a>
|
|
|
|
<a class="sidebar-link-addon text-muted" href="/admin/product/new">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'plus'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/products">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'tag'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
Products
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/ifCond}}
|
|
|
|
<li class="nav-item sidebar-addon">
|
|
|
|
<a class="nav-link sidebar-link" href="/admin/orders">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'package'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
Orders
|
|
|
|
</a>
|
|
|
|
<a class="sidebar-link-addon text-muted" href="/admin/order/create">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'plus'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/customers">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'users'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
Customers
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item sidebar-addon">
|
|
|
|
<a class="nav-link sidebar-link" href="/admin/users">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'user'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
Users
|
|
|
|
</a>
|
|
|
|
<a class="sidebar-link-addon text-muted" href="/admin/user/new">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'plus'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
|
|
|
<span>Settings</span>
|
|
|
|
</h6>
|
|
|
|
<ul class="nav flex-column mb-2">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/settings">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'sliders'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
{{ @root.__ "General settings" }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/settings/menu">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'menu'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
{{ @root.__ "Menu" }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/settings/pages">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'file-text'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
{{ @root.__ "Static pages" }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{#ifCond session.isAdmin '===' true}}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/settings/discounts">
|
2020-02-01 18:54:11 +10:00
|
|
|
{{{feather 'code'}}}
|
2020-02-01 16:59:30 +10:00
|
|
|
{{ @root.__ "Discount codes" }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/ifCond}}
|
|
|
|
</ul>
|
2020-02-23 13:40:42 +10:00
|
|
|
<ul class="nav flex-column mt-5">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/admin/logout">
|
|
|
|
{{{feather 'log-out'}}}
|
|
|
|
{{ @root.__ "Logout" }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2020-02-01 16:59:30 +10:00
|
|
|
</div>
|
|
|
|
</nav>
|