<?php
session_start();
	
	if(!isset($_SESSION['atcrmsuloginsesion']))
	{
		header('Location: index.php');
		return;
	}
	include("connect.php");

	
	date_default_timezone_set("Asia/Kolkata");
	$mdate= date('Y/m/d');
	$mdate1= date('Y-m-d');

	
	$lower = date('Y-m-d', strtotime($mdate));
	$upper = date('Y-m-d', strtotime($mdate)+2);


	//--Today Date
	$mdate2= date('Y-m-d');
	//--Yesterday Date
	$mdate3= date('Y-m-d',strtotime("-1 days"));
	//--Last 7 Days Date
	$mdate4= date('Y-m-d',strtotime("-7 days"));
	//--This Month Date
	$startdate = date('Y-m-01',strtotime(date('Y-m-d')));
	$enddate =  date('Y-m-t',strtotime(date('Y-m-d')));
	//--Last Month Date
	$prevstartdate = date('Y-m-01', (strtotime(date('Y-m-d')) - 2400000));
	$prevenddate = date('Y-m-t', (strtotime(date('Y-m-d')) - 2400000));


				date_default_timezone_set("Asia/Kolkata");
				$mdate1= date('Y-m-d H:i:s');

				$ttime="00:00:01";
		$endtime="23:59:00";


?>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
    <!--<![endif]-->
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title>Dashboard : LinkArise TeleCall</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <meta content="" name="description" />
        <meta content="" name="author" />
        <!-- BEGIN GLOBAL MANDATORY STYLES -->
        <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
        <link href="../../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="../../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
        <link href="../../assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="../../assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
        <link href="../../assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
        <!-- END GLOBAL MANDATORY STYLES -->
        <!-- BEGIN THEME GLOBAL STYLES -->
        <link href="../../assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
        <link href="../../assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME GLOBAL STYLES -->
        <!-- BEGIN THEME LAYOUT STYLES -->
        <link href="../../assets/layouts/layout/css/layout.min.css" rel="stylesheet" type="text/css" />
        <link href="../../assets/layouts/layout/css/themes/darkblue.min.css" rel="stylesheet" type="text/css" id="style_color" />
        <link href="../../assets/layouts/layout/css/custom.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME LAYOUT STYLES -->
		<link href="../../assets/global/plugins/bootstrap-toastr/toastr.min.css" rel="stylesheet" type="text/css" />

		<link href="../../assets/global/plugins/select2/css/select2.min.css" rel="stylesheet" type="text/css" />
        <link href="../../assets/global/plugins/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />



        <link rel="shortcut icon" href="favicon.ico" /> </head>
    <!-- END HEAD -->

    <body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
        <!-- BEGIN HEADER -->
        <div class="page-header navbar navbar-fixed-top">
            <!-- BEGIN HEADER INNER -->
            <div class="page-header-inner ">
                <!-- BEGIN LOGO -->
                <div class="page-logo">
                    <a href="#">
                        <img src="../../assets/layouts/layout/img/logo.png" alt="logo" class="logo-default" /> </a>
                    <div class="menu-toggler sidebar-toggler"> </div>
                </div>
                <!-- END LOGO -->
				  <!-- BEGIN MEGA MENU -->
              <!--<div class="hor-menu  hor-menu-light hidden-sm hidden-xs">
                    <ul class="nav navbar-nav">
                        <li class="classic-menu-dropdown active">
						
                            <a href="subscriptionplan.php"> UpGrade Plan
                                <span class="selected"> </span>
                            </a>
                        </li>
                    </ul>
                </div>-->
                <!-- END MEGA MENU -->
				
				
                <!-- BEGIN RESPONSIVE MENU TOGGLER -->
                <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> </a>
                <!-- END RESPONSIVE MENU TOGGLER -->
                <!-- BEGIN TOP NAVIGATION MENU -->
                <div class="top-menu">
                    <ul class="nav navbar-nav pull-right">
										



                        <!-- BEGIN NOTIFICATION DROPDOWN -->
                        <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->


						<?php
							require ('notification.php');
						?>

                        <!-- END NOTIFICATION DROPDOWN -->
                        <!-- BEGIN INBOX DROPDOWN -->
                        <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->

                        <!-- END INBOX DROPDOWN -->
                        <!-- BEGIN TODO DROPDOWN -->
                        <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->

                        <!-- END TODO DROPDOWN -->
                        <!-- BEGIN USER LOGIN DROPDOWN -->
                        <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
						
                        <!-- END USER LOGIN DROPDOWN -->
                        <!-- BEGIN QUICK SIDEBAR TOGGLER -->
                        <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->

                        <!-- END QUICK SIDEBAR TOGGLER -->
                    </ul>
                </div>
                <!-- END TOP NAVIGATION MENU -->
            </div>
            <!-- END HEADER INNER -->
        </div>
        <!-- END HEADER -->
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            <!-- BEGIN SIDEBAR -->
			<?php
            require ('sidebar.php');
			?>
            <!-- END SIDEBAR -->
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                    <!-- BEGIN PAGE HEADER-->
                    <!-- BEGIN THEME PANEL -->

                    <!-- END THEME PANEL -->
					
                    <!-- BEGIN PAGE BAR -->
                    <!-- END PAGE BAR -->
                    <!-- BEGIN PAGE TITLE-->




                    <!-- END PAGE TITLE-->
                    <!-- END PAGE HEADER-->




					<div class="row">
						<?php
							
							$eve2121 = "select count(*) as tu1 from res_user_master where utype='Telecaller' and ustatus='Active'";
							$re2121= mysqli_query($conn, $eve2121);
							$todaysusers=0;
							while($rt2121 = mysqli_fetch_assoc($re2121))
							{
								$todaysusers=$rt2121['tu1'];
							}

						?>
						<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                            <div class="dashboard-stat blue">
                                <div class="visual">
                                    <i class="fa fa-paperclip"></i>
                                </div>
                                <div class="details">
                                    <div class="number">
                                        <span data-counter="counterup" data-value="<?php echo $todaysusers;?>"><?php echo $todaysusers;?></span>
                                    </div>
                                    <div class="desc"> Today's Active TeleCallers </div>
                                </div>
                                <a class="more" href="teamleader.php"> Total: <?php echo $todaysusers;?>
                                    <i class="m-icon-swapright m-icon-white"></i>
                                </a>
                            </div>
                        </div>

						<?php
							$eve2="select count(*) as tcs1 from res_user_master where utype='Telecaller' and ustatus='Active'";
							$re2= mysqli_query($conn, $eve2);
							$totalcallstatus=0;
							while($rt2 = mysqli_fetch_assoc($re2))
							{
								$totalcallstatus=$rt2['tcs1'];
							}

						?>
                        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                            <div class="dashboard-stat green">
                                <div class="visual">
                                    <i class="fa fa-phone"></i>
                                </div>
                                <div class="details">
                                    <div class="number">
                                        <span data-counter="counterup" data-value="<?php echo $totalcallstatus;?>"><?php echo $totalcallstatus;?></span> </div>
                                    <div class="desc"> Today's Call Status Updates </div>
                                </div>
                                <a class="more" href="#"> Total: <?php echo $totalcallstatus;?>
                                    <i class="m-icon-swapright m-icon-white"></i>
                                </a>
                            </div>
                        </div>
			

						<?php
						
						$lasttime = date('Y-m-d H:i:s', strtotime('-15 minutes'));
						$currenttime=date('Y-m-d H:i:s'); 
							
								
						$eve021="select count(*) as tu2 from res_user_master where ustatus='Active' ";
						$re021= mysqli_query($conn, $eve021);
						$totalactiveusers=0;
						while($rt021 = mysqli_fetch_assoc($re021))
						{
							$totalactiveusers=$rt021['tu2'];
						}
					
						?>
                        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                            <div class="dashboard-stat blue">
                                <div class="visual">
                                    <i class="fa fa-envelope"></i>
                                </div>
                                <div class="details">
                                    <div class="number">
                                        <span data-counter="counterup" data-value="<?php echo $totalactiveusers;?>"><?php echo $totalactiveusers;?></span> </div>
                                    <div class="desc"> Active Users Now Last 15 Min.</div>
                                </div>
                                <a class="more" href="#"> Total: <?php echo $totalactiveusers;?>
                                    <i class="m-icon-swapright m-icon-white"></i>
                                </a>
                            </div>
                        </div>



						<?php
							$totalexpireuser=0;
								$eve152 = "select count(*) as txu1 from res_businessregister_master where brcurrentplanstatus='Expired'";
								$re152 = mysqli_query($conn, $eve152);
								while($rt152 = mysqli_fetch_assoc($re152))
								{
									$totalexpireuser=$rt152['txu1'];
								}

						?>
                        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                            <div class="dashboard-stat green">
                                <div class="visual">
                                    <i class="fa fa-comments-o"></i>
                                </div>
                                <div class="details">
                                    <div class="number">
                                        <span data-counter="counterup" data-value="<?php echo $totalexpireuser;?>"><?php echo $totalexpireuser;?></span> </div>
                                    <div class="desc"> Expired Users</div>
                                </div>
                                <a class="more" href="teamleader.php"> Total: <?php echo $totalexpireuser;?>
                                    <i class="m-icon-swapright m-icon-white"></i>
                                </a>
                            </div>
                        </div>
						</div>

					<div class="row">
						<div class="col-md-12">
						<!----------Active users------------------>
						<div class="col-md-6">
							<div class="portlet box blue">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-bullhorn"></i>Active Users</div>
                                    <div class="actions">
                                       <button type="button" align="center" class="btn white btn-outline sbold btn-sm" onclick="document.location.href='teamleader.php?id=1'">View More</button>
                                    </div>
                                </div>
								<div class="portlet-body">
									<div class="table-scrollable">
										<table class="table table-hover table-light">
                                           <thead>
                                                <tr class="uppercase">
													<th>Sr.</th>
													<th> Name</th>
													<th> Mobile</th>												
													<th> Email </th>
													<th> Total users </th>

                                                </tr>
                                            </thead>
                                            <?php
											$i=1;
											$eve = "select * from res_businessregister_master where brcurrentplanstatus='Active'  order by brmid desc limit 0,10";
											$re = mysqli_query($conn, $eve);	
											while($rt = mysqli_fetch_assoc($re))
											{
												$brmid=$rt['brmid'];
												$brname=$rt['brname'];
												$bremail=$rt['bremail'];
												$brmobile=$rt['brmobile'];
												
												$activeuser=0;
												$eve_category7 = "SELECT count(*) as activeuser FROM res_user_master where brmid='$brmid'";
												$re_category7 = mysqli_query($conn, $eve_category7);
												while($rt_category7 = mysqli_fetch_assoc($re_category7))
												{
													$activeuser=$rt_category7['activeuser'];
												}
												$activeuser=$rt['brtotalusers']." ($activeuser)";
											?>

											<tr>
                                               
										   <td><?php echo $i++; ?></td>
											<td> <?php echo $brname; ?></td>					
											<td> <?php echo $brmobile; ?> </td>						
											<td> <?php echo $bremail; ?></td>
											<td> <?php echo $activeuser; ?></td>

                                            </tr>
                                            <?php
												}
											?>
                                        </table>
									</div>
								</div>
							</div>
						</div>
						<!----------end active user----------------->
						
						<!-------------Inactive user------------------>
						<div class="col-md-6">
							<div class="portlet box blue">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-bullhorn"></i>Inctive Users</div>
                                    <div class="actions">
                                       <button type="button" align="center" class="btn white btn-outline sbold btn-sm" onclick="document.location.href='teamleader.php?id=2'">View More</button>
                                    </div>
                                </div>
								<div class="portlet-body">
									<div class="table-scrollable">
										<table class="table table-hover table-light">
                                           <thead>
                                                <tr class="uppercase">
													<th>Sr.</th>
													<th> Name</th>
													<th> Mobile</th>												
													<th> Email </th>
													<th> Total users </th>

                                                </tr>
                                            </thead>
                                            <?php
											$i=1;
											$eve31 = "select * from res_businessregister_master where brcurrentplanstatus='Blocked' order by brmid desc limit 0,10";
											$re31 = mysqli_query($conn, $eve31);	
											while($rt31 = mysqli_fetch_assoc($re31))
											{
												$brmid31=$rt31['brmid'];
												$brname31=$rt31['brname'];
												$bremail31=$rt31['bremail'];
												$brmobile31=$rt31['brmobile'];
												
												$activeuser=0;
												$eve_category71 = "SELECT count(*) as bractiveuser FROM res_user_master where brmid='$brmid31'";
												$re_category71 = mysqli_query($conn, $eve_category71);
												while($rt_category71 = mysqli_fetch_assoc($re_category71))
												{
													$bractiveuser31=$rt_category71['bractiveuser'];
												}
												$bractiveuser31=$rt31['brtotalusers']." ($activeuser31)";
											?>

											<tr>
                                               
										   <td><?php echo $i++; ?></td>
											<td> <?php echo $brname31; ?></td>					
											<td> <?php echo $brmobile31; ?> </td>						
											<td> <?php echo $bremail31; ?></td>
											<td> <?php echo $bractiveuser31; ?></td>

                                            </tr>
                                            <?php
												}
											?>
                                        </table>
									</div>
								</div>
							</div>
						</div>
						<!---------------end Inactive user---------------->
					</div>

					</div>

					<!-----------start row------------->
					<div class="row">
						<div class="col-md-12">
						<!----------free users------------------>
						<div class="col-md-6">
							<div class="portlet box blue">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-bullhorn"></i>Free Users</div>
                                    <div class="actions">
                                       <button type="button" align="center" class="btn white btn-outline sbold btn-sm" onclick="document.location.href='teamleader.php?id=3'">View More</button>
                                    </div>
                                </div>
								<div class="portlet-body">
									<div class="table-scrollable">
										<table class="table table-hover table-light">
                                           <thead>
                                                <tr class="uppercase">
													<th>Sr.</th>
													<th> Name</th>
													<th> Mobile</th>												
													<th> Email </th>
													<th> Total users </th>

                                                </tr>
                                            </thead>
                                            <?php
											$i=1;
											$eve32 = "select * from res_businessregister_master where brcurrentplantype='Free' order by brmid desc limit 0,10";
											$re32 = mysqli_query($conn, $eve32);	
											while($rt32 = mysqli_fetch_assoc($re32))
											{
												$brmid32=$rt32['brmid'];
												$brname32=$rt32['brname'];
												$bremail32=$rt32['bremail'];
												$brmobile32=$rt32['brmobile'];
												
												$activeuser32=0;
												$eve_category72 = "SELECT count(*) as bractiveuser FROM res_user_master where brmid='$brmid32'";
												$re_category72 = mysqli_query($conn, $eve_category72);
												while($rt_category72 = mysqli_fetch_assoc($re_category72))
												{
													$bractiveuser32=$rt_category72['bractiveuser'];
												}
												$bractiveuser32=$rt32['brtotalusers']." ($activeuser32)";
											?>

											<tr>
                                               
										   <td><?php echo $i++; ?></td>
											<td> <?php echo $brname32; ?></td>					
											<td> <?php echo $brmobile32; ?> </td>						
											<td> <?php echo $bremail32; ?></td>
											<td> <?php echo $bractiveuser32; ?></td>

                                            </tr>
                                            <?php
												}
											?>
                                        </table>
									</div>
								</div>
							</div>
						</div>
						<!----------end free user----------------->
						
						<!-------------paid user------------------>
						<div class="col-md-6">
							<div class="portlet box blue">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-bullhorn"></i>Paid Users</div>
                                    <div class="actions">
                                       <button type="button" align="center" class="btn white btn-outline sbold btn-sm" onclick="document.location.href='teamleader.php?id=4'">View More</button>
                                    </div>
                                </div>
								<div class="portlet-body">
									<div class="table-scrollable">
										<table class="table table-hover table-light">
                                           <thead>
                                                <tr class="uppercase">
													<th>Sr.</th>
													<th> Name</th>
													<th> Mobile</th>												
													<th> Email </th>
													<th> Total users </th>

                                                </tr>
                                            </thead>
                                            <?php
											$i=1;
											$eve33 = "select * from res_businessregister_master where brcurrentplantype='Paid' order by brmid desc limit 0,10";
											$re33 = mysqli_query($conn, $eve33);	
											while($rt33 = mysqli_fetch_assoc($re33))
											{
												$brmid33=$rt33['brmid'];
												$brname33=$rt33['brname'];
												$bremail33=$rt33['bremail'];
												$brmobile33=$rt33['brmobile'];
												
												$bractiveuser33=0;
												$eve_category73 = "SELECT count(*) as bractiveuser33 FROM res_user_master where brmid='$brmid33'";
												$re_category73 = mysqli_query($conn, $eve_category73);
												while($rt_category73 = mysqli_fetch_assoc($re_category73))
												{
													$bractiveuser33=$rt_category73['bractiveuser33'];
												}
												$bractiveuser33=$rt33['brtotalusers']." ($bractiveuser33)";
											?>

											<tr>
                                               
										   <td><?php echo $i++; ?></td>
											<td> <?php echo $brname33; ?></td>					
											<td> <?php echo $brmobile33; ?> </td>						
											<td> <?php echo $bremail33; ?></td>
											<td> <?php echo $bractiveuser33; ?></td>

                                            </tr>
                                            <?php
												}
											?>
                                        </table>
									</div>
								</div>
							</div>
						</div>
						<!---------------end paid user---------------->
					</div>

					</div>

					<!-----------end row------------->
					
					<!-----------start row------------->
					<div class="row">
						<div class="col-md-12">
						<!----------expired users------------------>
						<div class="col-md-6">
							<div class="portlet box blue">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-bullhorn"></i>Expired Users</div>
                                    <div class="actions">
                                       <button type="button" align="center" class="btn white btn-outline sbold btn-sm" onclick="document.location.href='teamleader.php?id=5'">View More</button>
                                    </div>
                                </div>
								<div class="portlet-body">
									<div class="table-scrollable">
										<table class="table table-hover table-light">
                                           <thead>
                                                <tr class="uppercase">
													<th>Sr.</th>
													<th> Name</th>
													<th> Mobile</th>												
													<th> Email </th>
													<th> Total users </th>

                                                </tr>
                                            </thead>
                                            <?php
											$i=1;
											$eve34 = "select * from res_businessregister_master where brcurrentplanstatus='Expired'  order by brmid desc limit 0,10";
											$re34 = mysqli_query($conn, $eve34);	
											while($rt34 = mysqli_fetch_assoc($re34))
											{
												$brmid34=$rt34['brmid'];
												$brname34=$rt34['brname'];
												$bremail34=$rt34['bremail'];
												$brmobile34=$rt34['brmobile'];
												
												$bractiveuser34=0;
												$eve_category74 = "SELECT count(*) as bractiveuser FROM res_user_master where brmid='$brmid34'";
												$re_category74 = mysqli_query($conn, $eve_category72);
												while($rt_category74 = mysqli_fetch_assoc($re_category72))
												{
													$bractiveuser34=$rt_category74['bractiveuser'];
												}
												$bractiveuser34=$rt34['brtotalusers']." ($bractiveuser34)";
											?>

											<tr>
                                               
										   <td><?php echo $i++; ?></td>
											<td> <?php echo $brname34; ?></td>					
											<td> <?php echo $brmobile34; ?> </td>						
											<td> <?php echo $bremail34; ?></td>
											<td> <?php echo $bractiveuser34; ?></td>

                                            </tr>
                                            <?php
												}
											?>
                                        </table>
									</div>
								</div>
							</div>
						</div>
						<!----------end expired user----------------->
						
						<!-------------top usage user------------------>
						<!--<div class="col-md-6">
							<div class="portlet box blue">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-bullhorn"></i>Top Usages Users</div>
                                    <div class="actions">
                                       <button type="button" align="center" class="btn white btn-outline sbold btn-sm" onclick="document.location.href='teamleader.php?id=4'">View More</button>
                                    </div>
                                </div>
								<div class="portlet-body">
									<div class="table-scrollable">
										<table class="table table-hover table-light">
                                           <thead>
                                                <tr class="uppercase">
													<th>Sr.</th>
													<th> Name</th>
													<th> Mobile</th>												
													<th> Email </th>
													<th> Total users </th>

                                                </tr>
                                            </thead>
                                            <?php
										/* 	$i=1;
											$eve33 = "select * from res_mainuser_master where currentplantype='Paid' and utype='mainuser' order by mumid desc limit 0,10";
											$re33 = mysqli_query($conn, $eve33);	
											while($rt33 = mysqli_fetch_assoc($re33))
											{
												$mumid33=$rt33['mumid'];
												$muname33=$rt33['muname'];
												$muemail33=$rt33['muemail'];
												$mumobile33=$rt33['mumobile'];
												
												$activeuser=0;
												$eve_category73 = "SELECT count(*) as activeuser FROM res_user_master where mumid='$mumid33'";
												$re_category73 = mysqli_query($conn, $eve_category73);
												while($rt_category73 = mysqli_fetch_assoc($re_category73))
												{
													$activeuser33=$rt_category73['activeuser'];
												}
												$activeuser33=$rt33['totalusers']." ($activeuser33)"; */
											?>

											<tr>
                                               
										   <td><?php //echo $i++; ?></td>
											<td> <?php //echo $muname33; ?></td>					
											<td> <?php //echo $mumobile33; ?> </td>						
											<td> <?php //echo $muemail33; ?></td>
											<td> <?php //echo $activeuser33; ?></td>

                                            </tr>
                                            <?php
												//}
											?>
                                        </table>
									</div>
								</div>
							</div>
						</div>-->
						<!---------------end top usage user---------------->
					</div>

					</div>

					<!-----------end row------------->

					<!-- END CONTENT BODY -->
					</div>
					</div>
					<!-- END CONTAINER -->
        <!-- BEGIN FOOTER -->
        <div class="page-footer">
            <div class="page-footer">
            <div class="page-footer-inner">
               &copy; Arth Technology
            </div>
            <div class="scroll-to-top">
                <i class="icon-arrow-up"></i>
            </div>
        </div>
        </div>
        <!-- END FOOTER -->
        <!--[if lt IE 9]>
<script src="../../assets/global/plugins/respond.min.js"></script>
<script src="../../assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
        <!-- BEGIN CORE PLUGINS -->
        <script src="../../assets/global/plugins/jquery.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
		<script src="../../assets/global/plugins/counterup/jquery.counterup.min.js" type="text/javascript"></script>
        <!-- END CORE PLUGINS -->
        <!-- BEGIN THEME GLOBAL SCRIPTS -->
        <script src="../../assets/global/scripts/app.min.js" type="text/javascript"></script>
        <!-- END THEME GLOBAL SCRIPTS -->


		<!--<script src="../../assets/global/plugins/moment.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/bootstrap-daterangepicker/daterangepicker.min.js" type="text/javascript"></script>-->
        <script src="../../assets/global/plugins/morris/morris.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/morris/raphael-min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/counterup/jquery.waypoints.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/counterup/jquery.counterup.min.js" type="text/javascript"></script>


		<!-- ************************** -->


        <script src="../../assets/global/plugins/flot/jquery.flot.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/flot/jquery.flot.resize.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/flot/jquery.flot.categories.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/jquery-easypiechart/jquery.easypiechart.min.js" type="text/javascript"></script>
        <script src="../../assets/global/plugins/jquery.sparkline.min.js" type="text/javascript"></script>
		<script src="../../assets/pages/scripts/ui-toastr.min.js" type="text/javascript"></script>
		<script src="../../assets/global/plugins/bootstrap-toastr/toastr.min.js" type="text/javascript"></script>

		 <!-- BEGIN PAGE LEVEL SCRIPTS -->
        <script src="../../assets/pages/scripts/dashboard.js" type="text/javascript"></script>
        <!-- END PAGE LEVEL SCRIPTS -->
        <!-- BEGIN THEME LAYOUT SCRIPTS -->
        <script src="../../assets/layouts/layout/scripts/layout.min.js" type="text/javascript"></script>
        <script src="../../assets/layouts/layout/scripts/demo.min.js" type="text/javascript"></script>
        <script src="../../assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
        <!-- END THEME LAYOUT SCRIPTS -->
		<!--<script type="text/javascript" src="js/notification.js"/></script>
		 <script src="../../assets/global/plugins/echarts/echarts.js" type="text/javascript"></script>
		<script src="../../assets/pages/scripts/charts-echarts.js" type="text/javascript"></script>
		<script src="../../assets/global/plugins/select2/js/select2.full.min.js" type="text/javascript"></script>



		<script src="../../assets/pages/scripts/components-select2.min.js" type="text/javascript"></script>-->
		<script src="https://www.amcharts.com/lib/4/core.js"></script>
		<script src="https://www.amcharts.com/lib/4/charts.js"></script>
		<script src="https://www.amcharts.com/lib/4/themes/animated.js"></script>
		<!-- <script src="../../assets/apps/scripts/calendar.js" type="text/javascript"></script>  -->
<?php

if(isset($_SESSION['msg']))
{
	$tt = $_SESSION['msg'];
	echo "<input type=\"hidden\" id=\"mymsg\" value=\"$tt\"/>";
	unset($_SESSION['msg']);


?>

		<script lang="javascript">

var a = [
    function () {


		var mymsg = document.getElementById("mymsg").value;
		toastr.info(mymsg, "")

    },
    function () {
        $('span').show();
    },
    function () {
        $('p').fadeIn(100);
    }
];


a[0]();
</script>

<?php

}
?>


<?php

if(isset($_SESSION['msgreminder1']))
{
	$tt = $_SESSION['msgreminder1'];
	echo "<input type=\"hidden\" id=\"mymsg\" value=\"$tt\"/>";
	unset($_SESSION['msg']);
	
	
?>	
								
		<script lang="javascript">

var a = [
    function () {
	

		var mymsg = document.getElementById("mymsg").value;
		toastr.success(mymsg, "Operation Completed")
		
    },
    function () {
        $('span').show();
    },
    function () {
        $('p').fadeIn(100);
    }
];		
					

a[0]();
</script>
	
<?php

}


if(isset($_SESSION['msgreminder2']))
{
	$tt1 = $_SESSION['msgreminder2'];
	echo "<input type=\"hidden\" id=\"mymsg1\" value=\"$tt1\"/>";
	unset($_SESSION['msg1']);
	
	
	?>	
								
		<script lang="javascript">

var a = [
    function () {
	

		var mymsg = document.getElementById("mymsg1").value;
		toastr.warning(mymsg, "Reminder")
		
    },
    function () {
        $('span').show();
    },
    function () {
        $('p').fadeIn(100);
    }
];		
					

a[0]();
</script>
	
<?php

}







?>				



    </body>

</html>
