1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
$status_wise_courses = $this->crud_model->get_status_wise_courses();
?>
<!-- ========== Left Sidebar Start ========== -->
<div class="left-side-menu left-side-menu-detached">
<div class="leftbar-user">
<a href="javascript: void(0);">
<img src="<?php echo $this->user_model->get_user_image_url($this->session->userdata('user_id')); ?>" alt="user-image" height="42" class="rounded-circle shadow-sm">
<?php
$admin_details = $this->user_model->get_all_user($this->session->userdata('user_id'))->row_array();
?>
<span class="leftbar-user-name"><?php echo $admin_details['first_name'].' '.$admin_details['last_name']; ?></span>
</a>
</div>
<!--- Sidemenu -->
<ul class="metismenu side-nav side-nav-light">
<li class="side-nav-title side-nav-item"><?php echo get_phrase('navigation'); ?></li>
<li class="side-nav-item <?php if ($page_name == 'dashboard')echo 'active';?>">
<a href="<?php echo site_url('admin/dashboard'); ?>" class="side-nav-link">
<i class="dripicons-view-apps"></i>
<span><?php echo get_phrase('dashboard'); ?></span>
</a>
</li>
<li class="side-nav-item <?php if ($page_name == 'categories' || $page_name == 'category_add' || $page_name == 'category_edit' ): ?> active <?php endif; ?>">
<a href="javascript: void(0);" class="side-nav-link <?php if ($page_name == 'categories' || $page_name == 'category_add' || $page_name == 'category_edit' ): ?> active <?php endif; ?>">
<i class="dripicons-network-1"></i>
<span> <?php echo get_phrase('categories'); ?> </span>
<span class="menu-arrow"></span>
</a>
<ul class="side-nav-second-level" aria-expanded="false">
<li class = "<?php if($page_name == 'categories' || $page_name == 'category_edit') echo 'active'; ?>">
<a href="<?php echo site_url('admin/categories'); ?>"><?php echo get_phrase('categories'); ?></a>
</li>
<li class = "<?php if($page_name == 'category_add') echo 'active'; ?>">
<a href="<?php echo site_url('admin/category_form/add_category'); ?>"><?php echo get_phrase('add_new_category'); ?></a>
</li>
</ul>
</li>
<li class="side-nav-item <?php if ($page_name == 'organization' || $page_name == 'organ_add' || $page_name == 'organ_edit' ): ?> active <?php endif; ?>">
<a href="javascript: void(0);" class="side-nav-link <?php if ($page_name == 'organization' || $page_name == 'organ_add' || $page_name == 'organ_edit' ): ?> active <?php endif; ?>">
<i class="dripicons-network-3"></i>
<span> <?php echo get_phrase('organization'); ?> </span>
<span class="menu-arrow"></span>
</a>
<ul class="side-nav-second-level" aria-expanded="false">
<li class = "<?php if($page_name == 'organization' || $page_name == 'organ_edit') echo 'active'; ?>">
<a href="<?php echo site_url('admin/organization'); ?>"><?php echo get_phrase('organization'); ?></a>
</li>
<li class = "<?php if($page_name == 'organ_add') echo 'active'; ?>">
<a href="<?php echo site_url('admin/organ_form/add_organ'); ?>"><?php echo get_phrase('add_new_organization'); ?></a>
</li>
</ul>
</li>
<li class="side-nav-item">
<a href="<?php echo site_url('admin/courses'); ?>" class="side-nav-link <?php if ($page_name == 'courses' || $page_name == 'course_add' || $page_name == 'course_edit')echo 'active';?>">
<i class="dripicons-archive"></i>
<span><?php echo get_phrase('courses'); ?></span>
</a>
</li>
<li class="side-nav-item">
<a href="<?php echo site_url('admin/users'); ?>" class="side-nav-link <?php if ($page_name == 'users' || $page_name == 'user_add' || $page_name == 'user_edit')echo 'active';?>">
<i class="dripicons-user-group"></i>
<span><?php echo get_phrase('students'); ?></span>
</a>
</li>
<li class="side-nav-item <?php if ($page_name == 'enrol_history' || $page_name == 'enrol_student'): ?> active <?php endif; ?>">
<a href="javascript: void(0);" class="side-nav-link <?php if ($page_name == 'enrol_history' || $page_name == 'enrol_student'): ?> active <?php endif; ?>">
<i class="dripicons-network-3"></i>
<span> <?php echo get_phrase('enrolment'); ?> </span>
<span class="menu-arrow"></span>
</a>
<ul class="side-nav-second-level" aria-expanded="false">
<li class = "<?php if($page_name == 'enrol_history') echo 'active'; ?>">
<a href="<?php echo site_url('admin/enrol_history'); ?>"><?php echo get_phrase('enrol_history'); ?></a>
</li>
<li class = "<?php if($page_name == 'enrol_student') echo 'active'; ?>">
<a href="<?php echo site_url('admin/enrol_student'); ?>"><?php echo get_phrase('enrol_a_student'); ?></a>
</li>
</ul>
</li>
<li class="side-nav-item">
<a href="javascript: void(0);" class="side-nav-link <?php if ($page_name == 'admin_revenue' || $page_name == 'instructor_revenue' || $page_name == 'invoice'): ?> active <?php endif; ?>">
<i class="dripicons-box"></i>
<span> <?php echo get_phrase('report'); ?> </span>
<span class="menu-arrow"></span>
</a>
<ul class="side-nav-second-level" aria-expanded="false">
<li class = "<?php if($page_name == 'admin_revenue') echo 'active'; ?>" > <a href="<?php echo site_url('admin/admin_revenue'); ?>"><?php echo get_phrase('admin_revenue'); ?></a> </li>
<?php if (get_settings('allow_instructor') == 1): ?>
<li class = "<?php if($page_name == 'instructor_revenue') echo 'active'; ?>" >
<a href="<?php echo site_url('admin/instructor_revenue'); ?>">
<?php echo get_phrase('instructor_revenue');?> <span class = "badge badge-danger-lighten badge-pill"><?php echo $this->db->get_where('payment', array('instructor_payment_status' => 0))->num_rows() ?></span>
</a>
</li>
<?php endif; ?>
</ul>
</li>
<li class="side-nav-item">
<a href="<?php echo site_url('admin/message'); ?>" class="side-nav-link <?php if ($page_name == 'message' || $page_name == 'message_new' || $page_name == 'message_read')echo 'active';?>">
<i class="dripicons-message"></i>
<span><?php echo get_phrase('message'); ?></span>
</a>
</li>
<li class="side-nav-item <?php if ($page_name == 'system_settings' || $page_name == 'frontend_settings' || $page_name == 'payment_settings' || $page_name == 'instructor_settings' || $page_name == 'smtp_settings' || $page_name == 'manage_language' || $page_name == 'about' || $page_name == 'themes' || $page_name == 'mobile_app' ): ?> active <?php endif; ?>">
<a href="javascript: void(0);" class="side-nav-link">
<i class="dripicons-toggles"></i>
<span> <?php echo get_phrase('settings'); ?> </span>
<span class="menu-arrow"></span>
</a>
<ul class="side-nav-second-level" aria-expanded="false">
<li class = "<?php if($page_name == 'system_settings') echo 'active'; ?>">
<a href="<?php echo site_url('admin/system_settings'); ?>"><?php echo get_phrase('system_settings'); ?></a>
</li>
<li class = "<?php if($page_name == 'frontend_settings') echo 'active'; ?>">
<a href="<?php echo site_url('admin/frontend_settings'); ?>"><?php echo get_phrase('website_settings'); ?></a>
</li>
<li class = "<?php if($page_name == 'payment_settings') echo 'active'; ?>">
<a href="<?php echo site_url('admin/payment_settings'); ?>"><?php echo get_phrase('payment_settings'); ?></a>
</li>
<li class = "<?php if($page_name == 'instructor_settings') echo 'active'; ?>">
<a href="<?php echo site_url('admin/instructor_settings'); ?>"><?php echo get_phrase('instructor_settings'); ?></a>
</li>
<li class = "<?php if($page_name == 'manage_language') echo 'active'; ?>">
<a href="<?php echo site_url('admin/manage_language'); ?>"><?php echo get_phrase('language_settings'); ?></a>
</li>
<li class = "<?php if($page_name == 'smtp_settings') echo 'active'; ?>">
<a href="<?php echo site_url('admin/smtp_settings'); ?>"><?php echo get_phrase('smtp_settings'); ?></a>
</li>
<li class = "<?php if($page_name == 'theme_settings') echo 'active'; ?>">
<a href="<?php echo site_url('admin/theme_settings'); ?>"><?php echo get_phrase('theme_settings'); ?></a>
</li>
<li class = "<?php if($page_name == 'about') echo 'active'; ?>">
<a href="<?php echo site_url('admin/about'); ?>"><?php echo get_phrase('about'); ?></a>
</li>
<li class = "<?php if($page_name == 'mobile_app') echo 'active'; ?>">
<a href="<?php echo site_url('admin/mobile_app'); ?>"><?php echo get_phrase('mobile_app'); ?></a>
</li>
</ul>
</li>
</ul>
</div>