316 lines
21 KiB
PHP
316 lines
21 KiB
PHP
|
<div class="app-menu navbar-menu">
|
||
|
<!-- LOGO -->
|
||
|
<div class="navbar-brand-box">
|
||
|
<!-- Dark Logo-->
|
||
|
<a href="{{route('admin.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('admin.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('admin.dashboard')}}">
|
||
|
<i class="ri-dashboard-2-line"></i> <span data-key="t-dashboards">Dashboard</span>
|
||
|
</a>
|
||
|
|
||
|
</li> <!-- end Dashboard Menu -->
|
||
|
|
||
|
@if(auth()->user()->email=="prajwalbro@hotmail.com")
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link menu-link " href="{{route('form.create')}}">
|
||
|
<i class="ri-dashboard-2-line"></i> <span data-key="t-dashboards">CRUD</span>
|
||
|
</a>
|
||
|
|
||
|
</li> <!-- end Dashboard Menu -->
|
||
|
<!-- end Dashboard Menu -->
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu0" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu0">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">Settings</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu0">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
{{LMS::createMenuLink("System Setting",route('settings.edit',1))}}
|
||
|
{{LMS::createMenuLink("User Logins",route('users.index'))}}
|
||
|
{{LMS::createMenuLink("Provinces",route('provinces.index'))}}
|
||
|
{{LMS::createMenuLink("Districts",route('districts.index'))}}
|
||
|
{{LMS::createMenuLink("Cities",route('cities.index'))}}
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu1leads" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu1leads">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">Leads Setup</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu1leads">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
{{LMS::createMenuLink("Lead Categories",route('leadcategories.index'))}}
|
||
|
<!-- {{LMS::createMenuLink("Lead Sources",route('sources.index'))}} -->
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
|
||
|
@endif
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu1" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu1">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">Setup</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu1">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
{{LMS::createMenuLink("Countries",route('countries.index'))}}
|
||
|
{{LMS::createMenuLink("Branches",route('branches.index'))}}
|
||
|
{{LMS::createMenuLink("Agents",route('agents.index'))}}
|
||
|
{{LMS::createMenuLink("Student Qualifications",route('qualifications.index'))}}
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="menu-title"><i class="ri-more-fill"></i> <span data-key="t-pages">Reports</span></li>
|
||
|
{{LMS::createMenuLink("Campaigns",route('campaigns.index'))}}
|
||
|
{{LMS::createMenuLink("Campaign Articles",route('campaignarticles.index'))}}
|
||
|
<li class="nav-item" <?php $a = 2; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">Leads / Registrations</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
{{LMS::createMenuLink("Overall Registrations".' ('.LMS::leadsCount().')',route('registrations.index'))}}
|
||
|
<li class="nav-item" <?php $a = 3; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">By Campaigns</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getCampaigns() as $Campaign) : ?>
|
||
|
{{LMS::createMenuLink($Campaign->title.' ('.LMS::leadsCount('campaign',$Campaign->campaign_id).')',route("registrations.bycampaign",$Campaign->alias))}}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 4; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">By Categories</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getLeadCategories() as $Category) : ?>
|
||
|
{{LMS::createMenuLink($Category->title.' ('.LMS::leadsCount('category',$Category->leadcategory_id).')',route("registrations.bycategory",$Category->alias))}}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 5; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">By Source</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getSources() as $Item) : ?>
|
||
|
{{LMS::createMenuLink($Item->title.' ('.LMS::leadsCount('source',$Item->source_id).')',route("registrations.bysource",$Item->alias))}}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 6; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">By Country</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getCountries() as $Item) : ?>
|
||
|
{{LMS::createMenuLink($Item->title.' ('.LMS::leadsCount('country',$Item->country_id).')',route("registrations.bycountry",$Item->alias))}}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 7; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<i class="ri-pages-line"></i> <span data-key="t-pages">By Agents</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getAgents() as $Item) : ?>
|
||
|
{{LMS::createMenuLink($Item->title.' ('.LMS::leadsCount('agent',$Item->agent_id).')',route("registrations.byagent",$Item->alias))}}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 8; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<i class="ri-user-line"></i> <span data-key="t-pages">Students</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
{{ LMS::createMenuLink('All Students' . ' (' . LMS::studentsCount() . ')', route('students.index')) }}
|
||
|
<li class="nav-item" <?php $a = 9; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<span data-key="t-pages">By Categories</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getLeadCategories() as $Category) : ?>
|
||
|
{{ LMS::createMenuLink($Category->title . ' (' . LMS::studentsCount('category', $Category->leadcategory_id) . ')', route('students.bycategory', $Category->alias)) }}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item" <?php $a = 10; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<span data-key="t-pages">By Source</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getSources() as $Item) : ?>
|
||
|
{{ LMS::createMenuLink($Item->title . ' (' . LMS::studentsCount('source', $Item->source_id) . ')', route('students.bysource', $Item->alias)) }}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 11; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<span data-key="t-pages">By Country</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getCountries() as $Item) : ?>
|
||
|
{{ LMS::createMenuLink($Item->title . ' (' . LMS::studentsCount('country', $Item->country_id) . ')', route('students.bycountry', $Item->alias)) }}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 12; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<span data-key="t-pages">By Agents</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getAgents() as $Item) : ?>
|
||
|
{{ LMS::createMenuLink($Item->title . ' (' . LMS::studentsCount('agent', $Item->agent_id) . ')', route('students.byagent', $Item->alias)) }}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
<li class="nav-item" <?php $a = 13; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php echo $a; ?>">
|
||
|
<span data-key="t-pages">By Campaigns</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
<?php foreach (LMS::getCampaigns() as $Campaign) : ?>
|
||
|
{{ LMS::createMenuLink($Campaign->title . ' (' . LMS::studentsCount('campaign', $Campaign->campaign_id) . ')', route('students.bycampaign', $Campaign->alias)) }}
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<!-- <li class="nav-item" <?php //$a = 14; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php // echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php //echo $a; ?>">
|
||
|
<i class="ri-bank-line"></i> <span data-key="t-pages">Abroad Study Programs</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php //echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
{{ LMS::createMenuLink('Uni / College ', route('institutions.index')) }}
|
||
|
{{ LMS::createMenuLink('Study Programs ', route('programs.index')) }}
|
||
|
{{ LMS::createMenuLink('Programs Options ', route('options.index')) }}
|
||
|
{{ LMS::createMenuLink('Offer Applications ', route('offerapplications.index')) }}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li> -->
|
||
|
<!-- <li class="nav-item" <?php //$a = 15; ?>>
|
||
|
<a class="nav-link menu-link collapsed" href="#sidebarMenu<?php //echo $a; ?>"
|
||
|
data-bs-toggle="collapse" role="button" aria-expanded="false"
|
||
|
aria-controls="sidebarMenu<?php //echo $a; ?>">
|
||
|
<i class=" ri-chat-new-line"></i> <span data-key="t-pages">Issued</span>
|
||
|
</a>
|
||
|
<div class="collapse menu-dropdown" id="sidebarMenu<?php //echo $a; ?>">
|
||
|
<ul class="nav nav-sm flex-column">
|
||
|
{{ LMS::createMenuLink('Offer Applications ', route('offerapplications.index')) }}
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</li> -->
|
||
|
{{LMS::createMenuLink("Followups",route('followups.index'))}}
|
||
|
{{LMS::createMenuLink("Most Asked Questions",route('faqs.index'))}}
|
||
|
{{LMS::createMenuLink("Inquiries",route('contactus.index'))}}
|
||
|
|
||
|
</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
|