Raffales-LMS/resources/views/backend/reception-sidebar.blade.php
2024-04-16 15:43:24 +05:45

77 lines
2.8 KiB
PHP

<div class="app-menu navbar-menu">
<!-- LOGO -->
<div class="navbar-brand-box">
<!-- Dark Logo-->
<a href="{{route('reception.dashboard')}}" class="logo logo-dark">
<span class="logo-sm">
<img src="{{asset('assets/images/logo-sm.png')}}" alt="" height="22">
</span>
<span class="logo-lg">
<img src="{{asset('assets/images/logo-dark.png')}}" alt="" height="57">
</span>
</a>
<!-- Light Logo-->
<a href="{{route('reception.dashboard')}}" class="logo logo-light">
<span class="logo-sm">
<img src="{{asset('assets/images/logo-sm.png')}}" alt="" height="22">
</span>
<span class="logo-lg">
<img src="{{asset('assets/images/logo-light.png')}}" alt="" height="57">
</span>
</a>
<button type="button" class="btn btn-sm p-0 fs-20 header-item float-end btn-vertical-sm-hover" id="vertical-hover">
<i class="ri-record-circle-line"></i>
</button>
</div>
<div id="scrollbar">
<div class="container-fluid">
<div id="two-column-menu">
</div>
<ul class="navbar-nav" id="navbar-nav">
<div class="simplebar-content" style="padding: 0px;">
<li class="nav-item">
<a class="nav-link menu-link" href="{{route('reception.dashboard')}}">
<i class="ri-dashboard-2-line"></i> <span data-key="t-dashboards">Dashboard</span>
</a>
</li> <!-- end Dashboard Menu -->
<li class="menu-title"><i class="ri-more-fill"></i> <span data-key="t-pages">Reports</span></li>
{{LMS::createMenuLink("Overall Registrations".' ('.LMS::leadsCount().')',route('reception.registrations'))}}
{{LMS::createMenuLink("Followups",route('reception.followups'))}}
{{LMS::createMenuLink("Most Asked Questions",route('reception.faqs'))}}
</div>
</ul>
</div>
<!-- Sidebar -->
</div>
<div class="sidebar-background"></div>
</div>
@push("js")
<script>
var menuDropdowns = document.querySelectorAll('div.menu-dropdown');
menuDropdowns.forEach(function(menuDropdown) {
var childLinks = menuDropdown.querySelectorAll('ul > li > a');
var hasActiveLink = Array.from(childLinks).some(function(childLink) {
return childLink.classList.contains('active');
});
if (hasActiveLink) {
menuDropdown.classList.add('show');
} else {
menuDropdown.classList.remove('show');
}
});
</script>
@endpush