Commit 77f192f5 by Manoj

changes

parent f2248571
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| https://codeigniter.com/userguide3/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
| $route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
$route['default_controller'] = 'DashboardController/';
$route['default_controller'] = 'AuthController/';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
//auth
$route['login'] = 'AuthController/login';
$route['logout'] = 'AuthController/logout';
$route['recover'] = 'auth/forgetpassword';
$route['verification'] = 'auth/recovery_verification';
$route['privacy'] = 'auth/privacy_policy';
\ No newline at end of file
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
defined('BASEPATH') or exit('No direct script access allowed');
class AuthController extends CI_Controller
{
class AuthController extends CI_Controller {
public function index()
{
$view_data[''] = '';
$this->load->view('auth/login', $view_data);
$view_data[''] = '';
$this->load->view('auth/login', $view_data);
}
public function register()
public function login()
{
$view_data[''] = '';
$this->load->view('auth/register', $view_data);
$email = $this->input->post('email');
$password = $this->input->post('password');
$user = $this->mcommon->specific_row('users',array('email'=>$email));
if ($user['user_id'] != '' && password_verify($password, $user['passwd'])) {
$this->session->set_flashdata('alert_success', 'Login successfully!');
$userArray = array(
"user_id" => $user['user_id'],
"email" => $user['email'],
"mobile" => $user['mobile'],
"name" => $user['name'],
"auth_level" => $user['auth_level'],
"logged_in" => true,
);
$this->session->set_userdata($userArray);
redirect('DashboardController');
} else {
$this->session->set_flashdata('alert_danger', 'Email or Password Wrong!');
redirect('login');
}
}
public function forget()
// public function register()
// {
// if (isset($_POST['submit'])) {
// $user_array = array(
// 'first_name' => $first_name,
// // 'last_name' => $last_name,
// 'username' => $username,
// 'name' => $name,
// 'email' => $email,
// 'mobile' => $mobile_number,
// 'auth_level' => 1, // 1->customer,9->admin
// 'passwd' => password_hash($password, PASSWORD_DEFAULT),
// 'created_at' => date("Y-m-d h:i:s"),
// 'banned' => 0
// );
// //insert values in database
// $insert = $this->mcommon->common_insert('users', $user_array);
// } else {
// $view_data[''] = '';
// $this->load->view('auth/register', $view_data);
// }
// }
public function forget()
{
$view_data[''] = '';
$this->load->view('auth/forget', $view_data);
$view_data[''] = '';
$this->load->view('auth/forget', $view_data);
}
public function logout()
{
$this->session->unset_userdata('logged_in');
$this->authentication->logout();
// Set redirect protocol
$redirect_protocol = USE_SSL ? 'https' : null;
redirect(site_url(LOGIN_PAGE . '?logout=1', $redirect_protocol));
}
}
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
defined('BASEPATH') or exit('No direct script access allowed');
class DashboardController extends CI_Controller
{
class DashboardController extends CI_Controller {
public function index()
{
......@@ -17,18 +18,60 @@ class DashboardController extends CI_Controller {
$this->db->from('applications');
$this->db->where('payment_status', 2);
$completed = $this->db->count_all_results();
$currentYear = date('Y');
$this->db->select('MONTH(a.created_at) as month, COUNT(*) as count');
$this->db->from('applications as a');
$this->db->join('accomodation_info as ai', 'ai.application_id = a.id', 'left');
$this->db->where('a.status', 1);
$this->db->where('YEAR(a.created_at)', $currentYear); // Ensure filtering by the same date field used for grouping
$this->db->group_by('MONTH(a.created_at)');
$query = $this->db->get();
$monthlyCounts = array_fill(0, 12, 0); // Start indices from 0 to 11 for months Jan-Dec
foreach ($query->result() as $row) {
$monthlyCounts[$row->month - 1] = (int) $row->count; // Adjust index by 1 to match array indexing
}
$view_data['monthlyCounts'] = $monthlyCounts;
$view_data['drafted'] = $drafted;
$view_data['pending'] = $pending;
$view_data['completed'] = $completed;
$data = array(
// print_r($view_data['monthlyCounts']);
// exit;
$this->db->from('applications as a');
$this->db->where('a.payment_status', 2);
$completed_count = $this->db->count_all_results();
$total_amount = $completed_count * 1260;
$view_data['courses'] = $this->mcommon->records_all('course');
$this->db->select('*, applications.id as appid, applications.status as apstatus,ai.payment_mode,applications.email as appEmail');
$this->db->from('applications');
$this->db->join('course', 'course.id = applications.course_id', 'left');
$this->db->join('users', 'users.user_id = applications.user_id','left');
$this->db->join('accomodation_info as ai', 'ai.application_id = applications.id','left');
$this->db->join('application_other_info as athinfo', 'athinfo.application_id = applications.id','left');
// $this->db->where('athinfo.tab_status', '1');
$this->db->where('applications.status', '1');
$query = $this->db->get();
$view_data['records'] = $query->result();
$view_data['drafted'] = $drafted;
$view_data['pending'] = $pending;
$view_data['completed'] = $completed;
$view_data['total_amount'] = $total_amount;
$data = array(
'title' => "Home",
'content' => $this->load->view('dashboard/home', $view_data, true),
);
$this->load->view('base/base_template', $data);
$this->load->view('base/base_template', $data);
}
}
......@@ -415,6 +415,15 @@ class Common_model extends CI_Model
return true;
}
public function getUser($email){
$this->db->select('*');
$this->db->from('users');
$this->db->where('email',$email);
$result = $this->db->get()->row_array();
return $result;
}
......
......@@ -4,22 +4,36 @@
<head>
<!-- Title -->
<!-- Title -->
<title>Login ACJ</title>
<meta charset="utf-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile Specific -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicon icon -->
<link rel="icon" type="image/png" sizes="16x16" href="<?= base_url('') ?>assets/images/favicon.png">
<link href="<?= base_url('') ?>assets/css/style.css" rel="stylesheet">
<!-- Favicon icon -->
<link rel="icon" type="image/png" sizes="16x16" href="<?= base_url('') ?>assets/images/favicon.png">
<link href="<?= base_url('') ?>assets/css/style.css" rel="stylesheet">
<style>
.login-image {
height: 440px !important;
width: 362px;
margin-left: -65px;
}
.tab-content {
margin-left: -82px !important;
}
</style>
</head>
<body class="body h-100">
<div class="authincation d-flex flex-column flex-lg-row flex-column-fluid">
<div class="login-aside text-center d-flex flex-column flex-row-auto">
......@@ -34,35 +48,38 @@
<img class="img1 move-1" src="<?= base_url('') ?>assets/images/background/pic3.png" alt="">
<img class="img2 move-2" src="<?= base_url('') ?>assets/images/background/pic4.png" alt="">
<img class="img3 move-3" src="<?= base_url('') ?>assets/images/background/pic5.png" alt="">
</div>
</div>
<div class="container flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto">
<div class="d-flex justify-content-center h-100 align-items-center">
<div class="authincation-content style-2">
<div class="row no-gutters">
<div class="col-xl-12 tab-content">
<div id="sign-up" class="auth-form tab-pane fade show active form-validation">
<form action="https://akademi.dexignlab.com/codeigniter/demo/index">
<div class="col-xl-12 d-flex tab-content">
<div class="col-md-8" >
<img src="<?php echo base_url(); ?>assets/images/asian_logo.jpg" alt="" width="300px" class="login-image">
</div>
<div style=" border:1px solid grey;" id="sign-up" class="auth-form tab-pane fade show active form-validation col-md-11 ">
<form action="<?= base_url("login") ?> " method="post">
<div class="text-center mb-4">
<h3 class="text-center mb-2 text-black">Sign In</h3>
<span>Your Social Campaigns</span>
<!-- <span>Your Social Campaigns</span> -->
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label mb-2 fs-13 label-color font-w500">Email address</label>
<input type="email" class="form-control" id="exampleFormControlInput1" value="hello@example.com">
<label for="exampleFormControlInput1" class="form-label mb-2 fs-13 label-color font-w500">Email Id</label>
<input type="text" name="email" class="form-control" id="email">
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label mb-2 fs-13 label-color font-w500">Password</label>
<input type="password" class="form-control" id="exampleFormControlInput2" value="Password">
<input type="password" name="password" class="form-control" id="password">
</div>
<a href="<?= base_url('AuthController/forget') ?>" class="text-primary float-end mb-4">Forgot Password ?</a>
<button class="btn btn-block btn-primary">Sign In</button>
</form>
<div class="new-account mt-3 text-center">
<p class="font-w500">Don't have an account? <a class="text-primary" href="<?= base_url('AuthController/register') ?>" data-toggle="tab">Sign Up</a></p>
<!-- <p class="font-w500">Don't have an account? <a class="text-primary" href="<?= base_url('AuthController/register') ?>" data-toggle="tab">Sign Up</a></p> -->
</div>
</div>
</div>
......@@ -73,13 +90,13 @@
</div>
<!--**********************************
<!--**********************************
Scripts
***********************************-->
<!-- Required vendors -->
<script src="<?= base_url('') ?>assets/vendor/global/global.min.js"></script>
<script src="<?= base_url('') ?>assets/js/custom.min.js"></script>
<script src="<?= base_url('') ?>assets/js/dlabnav-init.js"></script>
<!-- Required vendors -->
<script src="<?= base_url('') ?>assets/vendor/global/global.min.js"></script>
<script src="<?= base_url('') ?>assets/js/custom.min.js"></script>
<script src="<?= base_url('') ?>assets/js/dlabnav-init.js"></script>
</body>
......
......@@ -26,11 +26,11 @@
</ul>
</li>
<li><a href="<?php echo base_url(); ?>EmailTemplateController/" aria-expanded="false">
<!-- <li><a href="<?php echo base_url(); ?>EmailTemplateController/" aria-expanded="false">
<i class="material-symbols-outlined">email</i>
<span class="nav-text">Email Template</span>
</a>
</li>
</li> -->
<li><a class="has-arrow " href="javascript:void(0);" aria-expanded="false">
<i class="material-icons"> settings </i>
......
<div class="content-body">
<!-- row -->
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<div class="container-fluid">
<!-- Row -->
<div class="row">
<div class="col-xl-12">
<div class="card">
<div class="card-body pb-sm-4 pb-0">
<div class="card-body pb-sm-4 pb-0">
<div class="row">
<div class="col-xl-3 col-6">
<div class="content-box">
<div class="icon-box icon-box-xl std-data">
<svg width="25" height="25" viewBox="0 0 30 38" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.9288 37.75H3.75C1.67875 37.75 0 36.0713 0 34V23.5863C0 21.7738 1.29625 20.2213 3.07875 19.8975C5.72125 19.4163 10.2775 18.5875 12.855 18.12C14.2737 17.8612 15.7263 17.8612 17.145 18.12C19.7225 18.5875 24.2788 19.4163 26.9213 19.8975C28.7038 20.2213 30 21.7738 30 23.5863C30 26.3125 30 31.0825 30 34C30 36.0713 28.3212 37.75 26.25 37.75H12.9288ZM24.785 22.05L24.79 22.0563C25.0088 22.3838 25.06 22.795 24.9287 23.1662L24.0462 25.6662C23.9312 25.9925 23.685 26.2575 23.3675 26.3963L21.7075 27.12L22.3675 28.4412C22.5525 28.81 22.5425 29.2462 22.3425 29.6075L19.2075 35.25H26.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L24.785 22.05ZM21.3663 21.4275L16.6975 20.5788C15.575 20.375 14.425 20.375 13.3025 20.5788L8.63375 21.4275L7.63625 22.9238L8.13 24.3213L10.5 25.3537C10.8138 25.4912 11.0575 25.7512 11.175 26.0737C11.2925 26.3962 11.2712 26.7525 11.1175 27.0588L10.1625 28.9688L13.6525 35.25H16.3475L19.8375 28.9688L18.8825 27.0588C18.7288 26.7525 18.7075 26.3962 18.825 26.0737C18.9425 25.7512 19.1862 25.4912 19.5 25.3537L21.87 24.3213L22.3638 22.9238L21.3663 21.4275ZM5.215 22.05L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25H10.7925L7.6575 29.6075C7.4575 29.2462 7.4475 28.81 7.6325 28.4412L8.2925 27.12L6.6325 26.3963C6.315 26.2575 6.06875 25.9925 5.95375 25.6662L5.07125 23.1662C4.94 22.795 4.99125 22.3838 5.21 22.0563L5.215 22.05ZM23.75 29V31.5C23.75 32.19 24.31 32.75 25 32.75C25.69 32.75 26.25 32.19 26.25 31.5V29C26.25 28.31 25.69 27.75 25 27.75C24.31 27.75 23.75 28.31 23.75 29ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.9288 37.75H3.75C1.67875 37.75 0 36.0713 0 34V23.5863C0 21.7738 1.29625 20.2213 3.07875 19.8975C5.72125 19.4163 10.2775 18.5875 12.855 18.12C14.2737 17.8612 15.7263 17.8612 17.145 18.12C19.7225 18.5875 24.2788 19.4163 26.9213 19.8975C28.7038 20.2213 30 21.7738 30 23.5863C30 26.3125 30 31.0825 30 34C30 36.0713 28.3212 37.75 26.25 37.75H12.9288ZM24.785 22.05L24.79 22.0563C25.0088 22.3838 25.06 22.795 24.9287 23.1662L24.0462 25.6662C23.9312 25.9925 23.685 26.2575 23.3675 26.3963L21.7075 27.12L22.3675 28.4412C22.5525 28.81 22.5425 29.2462 22.3425 29.6075L19.2075 35.25H26.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L24.785 22.05ZM21.3663 21.4275L16.6975 20.5788C15.575 20.375 14.425 20.375 13.3025 20.5788L8.63375 21.4275L7.63625 22.9238L8.13 24.3213L10.5 25.3537C10.8138 25.4912 11.0575 25.7512 11.175 26.0737C11.2925 26.3962 11.2712 26.7525 11.1175 27.0588L10.1625 28.9688L13.6525 35.25H16.3475L19.8375 28.9688L18.8825 27.0588C18.7288 26.7525 18.7075 26.3962 18.825 26.0737C18.9425 25.7512 19.1862 25.4912 19.5 25.3537L21.87 24.3213L22.3638 22.9238L21.3663 21.4275ZM5.215 22.05L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25H10.7925L7.6575 29.6075C7.4575 29.2462 7.4475 28.81 7.6325 28.4412L8.2925 27.12L6.6325 26.3963C6.315 26.2575 6.06875 25.9925 5.95375 25.6662L5.07125 23.1662C4.94 22.795 4.99125 22.3838 5.21 22.0563L5.215 22.05ZM23.75 29V31.5C23.75 32.19 24.31 32.75 25 32.75C25.69 32.75 26.25 32.19 26.25 31.5V29C26.25 28.31 25.69 27.75 25 27.75C24.31 27.75 23.75 28.31 23.75 29ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z" fill="white" />
</svg>
</div>
<div class="chart-num">
<div class="chart-num">
<p>DRAFTED</p>
<h2 class="font-w700 mb-0"><?php echo $drafted; ?></h2>
</div>
......@@ -24,7 +27,7 @@
<div class="content-box">
<div class="teach-data icon-box icon-box-xl">
<svg width="25" height="25" viewBox="0 0 30 38" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 34C0 36.0713 1.67875 37.75 3.75 37.75H26.25C28.3212 37.75 30 36.0713 30 34C30 31.0825 30 26.3125 30 23.5863C30 21.7738 28.7038 20.2213 26.9213 19.8975C24.2788 19.4163 19.7225 18.5875 17.145 18.12C15.7263 17.8612 14.2737 17.8612 12.855 18.12C10.2775 18.5875 5.72125 19.4163 3.07875 19.8975C1.29625 20.2213 0 21.7738 0 23.5863V34ZM17.885 20.795L19.7612 27.9288C20.0075 28.865 19.6775 29.8588 18.92 30.4638C18.28 30.9738 17.2713 31.7788 16.5713 32.3388C15.6525 33.0713 14.3475 33.0713 13.4287 32.3388C12.7287 31.7788 11.72 30.9738 11.08 30.4638C10.3225 29.8588 9.9925 28.865 10.2388 27.9288L12.115 20.795L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25C8.98 35.25 21.02 35.25 26.25 35.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L17.885 20.795ZM15.2038 20.4288C15.0675 20.425 14.9325 20.425 14.7962 20.4288L12.6663 28.5312L14.9887 30.3837C14.995 30.39 15.005 30.39 15.0113 30.3837L17.3337 28.5312L15.2038 20.4288ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 34C0 36.0713 1.67875 37.75 3.75 37.75H26.25C28.3212 37.75 30 36.0713 30 34C30 31.0825 30 26.3125 30 23.5863C30 21.7738 28.7038 20.2213 26.9213 19.8975C24.2788 19.4163 19.7225 18.5875 17.145 18.12C15.7263 17.8612 14.2737 17.8612 12.855 18.12C10.2775 18.5875 5.72125 19.4163 3.07875 19.8975C1.29625 20.2213 0 21.7738 0 23.5863V34ZM17.885 20.795L19.7612 27.9288C20.0075 28.865 19.6775 29.8588 18.92 30.4638C18.28 30.9738 17.2713 31.7788 16.5713 32.3388C15.6525 33.0713 14.3475 33.0713 13.4287 32.3388C12.7287 31.7788 11.72 30.9738 11.08 30.4638C10.3225 29.8588 9.9925 28.865 10.2388 27.9288L12.115 20.795L3.52625 22.3562C2.9325 22.465 2.5 22.9825 2.5 23.5863V34C2.5 34.69 3.06 35.25 3.75 35.25C8.98 35.25 21.02 35.25 26.25 35.25C26.94 35.25 27.5 34.69 27.5 34C27.5 31.0825 27.5 26.3125 27.5 23.5863C27.5 22.9825 27.0675 22.465 26.4738 22.3562L17.885 20.795ZM15.2038 20.4288C15.0675 20.425 14.9325 20.425 14.7962 20.4288L12.6663 28.5312L14.9887 30.3837C14.995 30.39 15.005 30.39 15.0113 30.3837L17.3337 28.5312L15.2038 20.4288ZM15 0.25C10.5163 0.25 6.875 3.89125 6.875 8.375C6.875 12.8587 10.5163 16.5 15 16.5C19.4837 16.5 23.125 12.8587 23.125 8.375C23.125 3.89125 19.4837 0.25 15 0.25ZM15 2.75C18.105 2.75 20.625 5.27 20.625 8.375C20.625 11.48 18.105 14 15 14C11.895 14 9.375 11.48 9.375 8.375C9.375 5.27 11.895 2.75 15 2.75Z" fill="white" />
</svg>
</div>
<div class="chart-num">
......@@ -37,8 +40,8 @@
<div class="content-box">
<div class="event-data icon-box icon-box-xl">
<svg width="20" height="20" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24 2.75H21.5V1.5C21.5 1.16848 21.3683 0.850537 21.1339 0.616117C20.8995 0.381696 20.5815 0.25 20.25 0.25C19.9185 0.25 19.6005 0.381696 19.3661 0.616117C19.1317 0.850537 19 1.16848 19 1.5V2.75H15.25V1.5C15.25 1.16848 15.1183 0.850537 14.8839 0.616117C14.6495 0.381696 14.3315 0.25 14 0.25C13.6685 0.25 13.3505 0.381696 13.1161 0.616117C12.8817 0.850537 12.75 1.16848 12.75 1.5V2.75H9V1.5C9 1.16848 8.8683 0.850537 8.63388 0.616117C8.39946 0.381696 8.08152 0.25 7.75 0.25C7.41848 0.25 7.10054 0.381696 6.86612 0.616117C6.6317 0.850537 6.5 1.16848 6.5 1.5V2.75H4C3.00544 2.75 2.05161 3.14509 1.34835 3.84835C0.645088 4.55161 0.25 5.50544 0.25 6.5V24C0.25 24.9946 0.645088 25.9484 1.34835 26.6517C2.05161 27.3549 3.00544 27.75 4 27.75H24C24.9946 27.75 25.9484 27.3549 26.6517 26.6517C27.3549 25.9484 27.75 24.9946 27.75 24V6.5C27.75 5.50544 27.3549 4.55161 26.6517 3.84835C25.9484 3.14509 24.9946 2.75 24 2.75ZM2.75 6.5C2.75 6.16848 2.8817 5.85054 3.11612 5.61612C3.35054 5.3817 3.66848 5.25 4 5.25H6.5V6.5C6.5 6.83152 6.6317 7.14946 6.86612 7.38388C7.10054 7.6183 7.41848 7.75 7.75 7.75C8.08152 7.75 8.39946 7.6183 8.63388 7.38388C8.8683 7.14946 9 6.83152 9 6.5V5.25H12.75V6.5C12.75 6.83152 12.8817 7.14946 13.1161 7.38388C13.3505 7.6183 13.6685 7.75 14 7.75C14.3315 7.75 14.6495 7.6183 14.8839 7.38388C15.1183 7.14946 15.25 6.83152 15.25 6.5V5.25H19V6.5C19 6.83152 19.1317 7.14946 19.3661 7.38388C19.6005 7.6183 19.9185 7.75 20.25 7.75C20.5815 7.75 20.8995 7.6183 21.1339 7.38388C21.3683 7.14946 21.5 6.83152 21.5 6.5V5.25H24C24.3315 5.25 24.6495 5.3817 24.8839 5.61612C25.1183 5.85054 25.25 6.16848 25.25 6.5V10.25H2.75V6.5ZM25.25 24C25.25 24.3315 25.1183 24.6495 24.8839 24.8839C24.6495 25.1183 24.3315 25.25 24 25.25H4C3.66848 25.25 3.35054 25.1183 3.11612 24.8839C2.8817 24.6495 2.75 24.3315 2.75 24V12.75H25.25V24Z" fill="white"/>
</svg>
<path d="M24 2.75H21.5V1.5C21.5 1.16848 21.3683 0.850537 21.1339 0.616117C20.8995 0.381696 20.5815 0.25 20.25 0.25C19.9185 0.25 19.6005 0.381696 19.3661 0.616117C19.1317 0.850537 19 1.16848 19 1.5V2.75H15.25V1.5C15.25 1.16848 15.1183 0.850537 14.8839 0.616117C14.6495 0.381696 14.3315 0.25 14 0.25C13.6685 0.25 13.3505 0.381696 13.1161 0.616117C12.8817 0.850537 12.75 1.16848 12.75 1.5V2.75H9V1.5C9 1.16848 8.8683 0.850537 8.63388 0.616117C8.39946 0.381696 8.08152 0.25 7.75 0.25C7.41848 0.25 7.10054 0.381696 6.86612 0.616117C6.6317 0.850537 6.5 1.16848 6.5 1.5V2.75H4C3.00544 2.75 2.05161 3.14509 1.34835 3.84835C0.645088 4.55161 0.25 5.50544 0.25 6.5V24C0.25 24.9946 0.645088 25.9484 1.34835 26.6517C2.05161 27.3549 3.00544 27.75 4 27.75H24C24.9946 27.75 25.9484 27.3549 26.6517 26.6517C27.3549 25.9484 27.75 24.9946 27.75 24V6.5C27.75 5.50544 27.3549 4.55161 26.6517 3.84835C25.9484 3.14509 24.9946 2.75 24 2.75ZM2.75 6.5C2.75 6.16848 2.8817 5.85054 3.11612 5.61612C3.35054 5.3817 3.66848 5.25 4 5.25H6.5V6.5C6.5 6.83152 6.6317 7.14946 6.86612 7.38388C7.10054 7.6183 7.41848 7.75 7.75 7.75C8.08152 7.75 8.39946 7.6183 8.63388 7.38388C8.8683 7.14946 9 6.83152 9 6.5V5.25H12.75V6.5C12.75 6.83152 12.8817 7.14946 13.1161 7.38388C13.3505 7.6183 13.6685 7.75 14 7.75C14.3315 7.75 14.6495 7.6183 14.8839 7.38388C15.1183 7.14946 15.25 6.83152 15.25 6.5V5.25H19V6.5C19 6.83152 19.1317 7.14946 19.3661 7.38388C19.6005 7.6183 19.9185 7.75 20.25 7.75C20.5815 7.75 20.8995 7.6183 21.1339 7.38388C21.3683 7.14946 21.5 6.83152 21.5 6.5V5.25H24C24.3315 5.25 24.6495 5.3817 24.8839 5.61612C25.1183 5.85054 25.25 6.16848 25.25 6.5V10.25H2.75V6.5ZM25.25 24C25.25 24.3315 25.1183 24.6495 24.8839 24.8839C24.6495 25.1183 24.3315 25.25 24 25.25H4C3.66848 25.25 3.35054 25.1183 3.11612 24.8839C2.8817 24.6495 2.75 24.3315 2.75 24V12.75H25.25V24Z" fill="white" />
</svg>
</div>
<div class="chart-num">
<p>COMPLETED</p>
......@@ -46,11 +49,240 @@
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-6">
<div class="content-box">
<div class="event-data icon-box icon-box-xl">
<svg width="20" height="20" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24 2.75H21.5V1.5C21.5 1.16848 21.3683 0.850537 21.1339 0.616117C20.8995 0.381696 20.5815 0.25 20.25 0.25C19.9185 0.25 19.6005 0.381696 19.3661 0.616117C19.1317 0.850537 19 1.16848 19 1.5V2.75H15.25V1.5C15.25 1.16848 15.1183 0.850537 14.8839 0.616117C14.6495 0.381696 14.3315 0.25 14 0.25C13.6685 0.25 13.3505 0.381696 13.1161 0.616117C12.8817 0.850537 12.75 1.16848 12.75 1.5V2.75H9V1.5C9 1.16848 8.8683 0.850537 8.63388 0.616117C8.39946 0.381696 8.08152 0.25 7.75 0.25C7.41848 0.25 7.10054 0.381696 6.86612 0.616117C6.6317 0.850537 6.5 1.16848 6.5 1.5V2.75H4C3.00544 2.75 2.05161 3.14509 1.34835 3.84835C0.645088 4.55161 0.25 5.50544 0.25 6.5V24C0.25 24.9946 0.645088 25.9484 1.34835 26.6517C2.05161 27.3549 3.00544 27.75 4 27.75H24C24.9946 27.75 25.9484 27.3549 26.6517 26.6517C27.3549 25.9484 27.75 24.9946 27.75 24V6.5C27.75 5.50544 27.3549 4.55161 26.6517 3.84835C25.9484 3.14509 24.9946 2.75 24 2.75ZM2.75 6.5C2.75 6.16848 2.8817 5.85054 3.11612 5.61612C3.35054 5.3817 3.66848 5.25 4 5.25H6.5V6.5C6.5 6.83152 6.6317 7.14946 6.86612 7.38388C7.10054 7.6183 7.41848 7.75 7.75 7.75C8.08152 7.75 8.39946 7.6183 8.63388 7.38388C8.8683 7.14946 9 6.83152 9 6.5V5.25H12.75V6.5C12.75 6.83152 12.8817 7.14946 13.1161 7.38388C13.3505 7.6183 13.6685 7.75 14 7.75C14.3315 7.75 14.6495 7.6183 14.8839 7.38388C15.1183 7.14946 15.25 6.83152 15.25 6.5V5.25H19V6.5C19 6.83152 19.1317 7.14946 19.3661 7.38388C19.6005 7.6183 19.9185 7.75 20.25 7.75C20.5815 7.75 20.8995 7.6183 21.1339 7.38388C21.3683 7.14946 21.5 6.83152 21.5 6.5V5.25H24C24.3315 5.25 24.6495 5.3817 24.8839 5.61612C25.1183 5.85054 25.25 6.16848 25.25 6.5V10.25H2.75V6.5ZM25.25 24C25.25 24.3315 25.1183 24.6495 24.8839 24.8839C24.6495 25.1183 24.3315 25.25 24 25.25H4C3.66848 25.25 3.35054 25.1183 3.11612 24.8839C2.8817 24.6495 2.75 24.3315 2.75 24V12.75H25.25V24Z" fill="white" />
</svg>
</div>
<div class="chart-num">
<p>TOTAL PAYMENT RECEIVED</p>
<h2 class="font-w700 mb-0"><?php echo $total_amount; ?></h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-6">
<div class="card h-auto">
<div class="card-header border-0 pb-0 flex-wrap">
<h4 class="heading mb-3 mb-sm-0">Application Overview</h4>
</div>
<div class="card-body p-0">
<div id="barChart"></div>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card h-auto">
<div class="card-header border-0 pb-0 flex-wrap">
<h4 class="heading mb-3 mb-sm-0">Application Overview</h4>
</div>
<div style="height: 366px" class="card-body p-0">
<div style="width: 366px" id="pieChart"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row p-5">
<h2>Application Payment Pending List</h2>
<div class="col-xl-12 wow " data-wow-delay="1.5s">
<div class="table-responsive full-data">
<table class="table-responsive-lg table display dataTablesCard student-tab dataTable no-footer" id="example-student">
<thead>
<tr>
<th class="wd-20p">S.No</th>
<th class="wd-20p">Ref.No</th>
<th class="wd-25p">Application No.</th>
<th class="wd-15p">Course Name</th>
<th class="wd-15p"> Name</th>
<th class="wd-15p">Mobile No.</th>
<th class="wd-15p">Application staus</th>
<th class="wd-15p">Payment Mode</th>
<th class="wd-15p">Payment Status</th>
<th class="wd-15p">Submitted Date</th>
<!-- <th class="wd-15p">Email </th>
<th class="wd-15p">Action</th> -->
</tr>
</thead>
<tbody>
<?php
foreach ($records as $i => $row) { ?>
<tr>
<td><?= $i + 1 ?></td>
<td><?= $row->reference_no ?></td>
<td> <?= $row->application_no ?> </td>
<td> <?php foreach ($courses as $course) {
if ($row->course_id == $course->id) {
echo $course->short_name ?>
<?php }
} ?></td>
<td> <?= $row->first_name . ' ' . $row->middle_name . ' ' . $row->last_name ?></td>
<td><?= $row->mobile ?></td>
<td><?= $row->payment_status == 1 ? 'Submitted' : 'Drafted'; ?></td>
<td><?= $row->payment_status == 0 ? 'N/A' : ($row->payment_mode == 1 ? 'Online' : 'Demand Draft'); ?></td>
<td><?= $row->payment_status == 2 ? 'Paid' : 'Not Paid'; ?></td>
<td><?= $row->created_at == '' ? 'N/A' : date('d-m-Y', strtotime($row->created_at)) ?></td>
<!-- <td>
<a href="<?= base_url('ApplicationController/mailSendOnPendingList/' . $row->appid) ?>" data-toggle="tooltip" id="email" data-placement="top" title="Send Mail" data-original-title="Send Mail" class="btn btn-sm btn-secondary"><i class="ti ti-email"></i></a>
</td>
<td>
<a href="<?= base_url('ApplicationController/viewApplication/' . $row->user_id) ?>" data-toggle="tooltip" id="preview" data-placement="top" title="Preview" data-original-title="Preview" class="btn btn-sm btn-primary"><i class="ti ti-eye"></i></a>
<a href="<?= base_url('ApplicationController/applicationedit/' . $row->appid) ?>" data-toggle="tooltip" id="edit" data-placement="top" title="Edit" data-original-title="Edit" class="btn btn-sm btn-info"><i class="ti ti-pencil"></i></a>
</td> -->
</tr>
<?php }
?>
</tbody>
</table>
</div>
</div>
</div>
\ No newline at end of file
</div>
<script>
var options = {
series: [{
name: 'Inflation',
data: <?= json_encode(array_values($monthlyCounts)) ?>,
}],
chart: {
height: 350,
type: 'bar',
},
plotOptions: {
bar: {
borderRadius: 3,
dataLabels: {
position: 'top', // top, center, bottom
},
}
},
dataLabels: {
enabled: true,
formatter: function(val) {
return val;
},
offsetY: -20,
style: {
fontSize: '12px',
colors: ["#304758"]
}
},
xaxis: {
categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
position: 'top',
axisBorder: {
show: false
},
axisTicks: {
show: false
},
crosshairs: {
fill: {
type: 'gradient',
gradient: {
colorFrom: '#FC9003',
colorTo: '#FC9003',
stops: [0, 100],
opacityFrom: 0.4,
opacityTo: 0.5,
}
}
},
tooltip: {
enabled: true,
}
},
yaxis: {
axisBorder: {
show: false
},
axisTicks: {
show: false,
},
labels: {
show: false,
formatter: function(val) {
return val + "%";
}
}
},
title: {
text: 'Monthly Application Received , <?= date('Y') ?>',
floating: true,
offsetY: 330,
align: 'center',
style: {
color: '#444'
}
}
};
var chart1 = new ApexCharts(document.querySelector("#barChart"), options);
chart1.render();
//pie chart
var options = {
series: [<?= $drafted ?>,<?= $pending ?> ,<?= $completed ?>], // Pie chart data
chart: {
width: 380,
type: 'pie',
},
labels: ["Draft", "Pending", "Completed"], // Labels for each slice
responsive: [{
breakpoint: 480,
options: {
chart: {
width: 200
},
legend: {
position: 'bottom'
}
}
}],
title: {
text: 'Monthly Application Received, <?= date('Y') ?>',
align: 'center',
floating: false,
style: {
color: '#444'
}
},
dataLabels: {
enabled: true,
formatter: function (val) {
return val.toFixed(2) + "%";
}
},
legend: {
position: 'right',
offsetY: 0,
height: 230,
}
};
var chart2 = new ApexCharts(document.querySelector("#pieChart"), options);
chart2.render();
</script>
\ No newline at end of file
......@@ -21495,7 +21495,8 @@ Fixing Order => Base + Typography >> General Layout + Grid >> Page Layout + Comp
.input-group > .bootstrap-select:not(:last-child) .dropdown-toggle {
border-top-right-radius: 0;
border-bottom-right-radius: 0; }
border-bottom-right-radius: 0;
height : 42px ;}
:root {
--primary: #FC9003;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment