<?php include('inc/header.php');
 ?>
<!-- mobile navigation -->
			<nav id="mobile_navigation"></nav>
			
			<section id="breadcrumbs">
				<div class="container">
					<ul>
						<li><a href="#">Web school </a></li>
						<li><span>Dashboard</span></li>						
					</ul>
				</div>
			</section>
			<section class="container clearfix main_section">
				<div id="main_content_outer" class="clearfix">
					<div id="main_content">
						
						<!-- main content -->
                         <?php 
						if($setting_error==1)
						{
						?>
                        <div class="warning">Hello ! Please <a href="general_setting.php" />Click Here</a> to complete your settings page. It is very important to fill up your general settings before you start.</div>
                        <?php
						}?>
						<div class="row">
							<div class="col-lg-3 col-md-6">
								<div class="box_stat box_ico">
									<span class="stat_ico stat_ico_1"><i class="li_study"></i></span>
									<h4>1012</h4>
									<small>Total number of Students</small>
								</div>
							</div>
							<div class="col-lg-3 col-md-6">
								<div class="box_stat box_ico">
									<span class="stat_ico stat_ico_2"><i class="li_settings"></i></span>
									<h4>5</h4>
									<small>Total number of Admin Users</small>
								</div>
							</div>
							<div class="col-lg-3 col-md-6">
								<div class="box_stat box_ico">
									<span class="stat_ico stat_ico_3"><i class="li_user"></i></span>
									<h4>40</h4>
									<small>Total number of Employees</small>
								</div>
							</div>
							<div class="col-lg-3 col-md-6">
								<div class="box_stat box_ico">
									<span class="stat_ico stat_ico_4"><i class="li_tag"></i></span>
									<h4>15</h4>
									<small>Total number of Departments</small>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-sm-6">
								<div class="box_user">
									<div class="box_user_main">
										<img class="img-thumbnail pull-left" alt="" width="100" height="100" src="<?php if($userphotoObj->path==''){?>img/user_avatar_lg.png<?php } else { echo $userphotoObj->path; } ?>">
										<div class="box_user_info">
											<h2 class="box_user_name"><?php echo $userObj->first_name.' '.$userObj->last_name; ?></h2>
											<p><span class="glyphicon glyphicon-phone-alt"></span><?php echo $userObj->phone; ?></p>
											<p><span class="glyphicon glyphicon-envelope"></span> <?php echo $userObj->email; ?></p>
										</div>
									</div>
									<!--<ul class="box_user_stats">
										<li><span>34</span> Followers</li>
										<li><span>221</span> Comments</li>
										<li><span>73</span> Videos</li>
									</ul>-->
								</div>
                               <div style="margin-top:10px;">
                               <div class="box_stat_circular">
									<div class="box_stat_circular_a color_a">
										<h4>35/40</h4>
										<small>Staff Attendance (24h)</small>
									</div>
									<div class="box_stat_circular_middle">
										<div class="easy_chart easy_chart_a" data-percent="85">85%</div>
									</div>
									<div class="box_stat_circular_b">
										<p>These shows number of employees absent today.</p>
									</div>
								</div>
                               </div>
                               <div style="margin-top:10px;">
                               <div class="box_stat_circular">
									<div class="box_stat_circular_a color_b">
										<h4>950/1012</h4>
										<small>Students Attendance (24h)</small>
									</div>
									<div class="box_stat_circular_middle">
										<div class="easy_chart easy_chart_b" data-percent="10"><span>10%</span></div>
									</div>
									<div class="box_stat_circular_b">
										<p>These shows  number of students absent today.</p>
									</div>
								</div>
                               </div>
                           <div style="margin-top:10px;">
                          
								<div class="box_stat box_pos">
									<img src="<?php echo SITE_URL; ?>img/blank.png" alt="" class="img_ind">
									<h4>100</h4>
									<small>Total number of Courses</small>
								</div>
							</div>
							<div style="margin-top:10px;">
                            
								<div class="box_stat box_pos">
									<img src="<?php echo SITE_URL; ?>img/blank.png" alt="" class="img_ind">
									<h4>100</h4>
									<small>Total number of Batch</small>
								
							</div>
                            </div>
                            <!--<div style="margin-top:10px;">
                            <div class="col-sm-3">
                            
								<div class="box_stat peity_chart">
									<div class="peity_wrapper">
										<div class="peity_bar_up">2,5,3,6,8,5</div>
									</div>
									<h4>432755</h4>
									<small>Sale Sale(June)</small>
								</div> </div>
                                </div>
                                <div style="margin-top:10px;">
						<div class="col-sm-3">
							
								<div class="box_stat peity_chart">
									<div class="peity_wrapper">
										<div class="peity_bar_down">9,6,7,4,6,3</div>
									</div>
									<h4>135</h4>
									<small>Orders (24h)</small>
								
							</div>
                            </div>
                            </div>-->
                           
                           
                            
							</div>
                            
							<div class="col-sm-6">  
                           
                            <div class="panel panel-default">
									<div class="panel-heading"></div>
									<div id="calendar"></div>
								</div>
								
							</div>
						</div>
						<!--<div class="row">
							<div class="col-sm-12">
								<div class="panel panel-default">
									<div class="panel-heading">
										<h4 class="panel-title">Locations</h4>
									</div>
									<div class="panel-body">
										<div class="row">
											<div class="col-sm-8">
												<div id="world_map_vector" style="width:100%;height:300px">
													<script>
														countries_data = {
															"US": 2320,
															"BR": 1945,
															"IN": 1779,
															"AU": 1486,
															"TR": 1024,
															"CN": 753
														};  
													</script>
												</div>
											</div>
											<div class="col-sm-4">
												<table class="table table-striped">
													<thead>
														<tr>
															<th>Country</th>
															<th class="col_small col_center">Visits</th>
														</tr>
													</thead>
													<tbody>
														<tr>
															<td><a href="#">United States</a></td>
															<td class="col_center">2320</td>
														</tr>
														<tr>
															<td><a href="#">Brazil</a></td>
															<td class="col_center">1945</td>
														</tr>
														<tr>
															<td><a href="#">India</a></td>
															<td class="col_center">1779</td>
														</tr>
														<tr>
															<td><a href="#">Australia</a></td>
															<td class="col_center">1486</td>
														</tr>
														<tr>
															<td><a href="#">Turkey</a></td>
															<td class="col_center">1024</td>
														</tr>
														<tr>
															<td><a href="#">China</a></td>
															<td class="col_center">753</td>
														</tr>
													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>-->
						
						
						
					
						
						
						
						
						
						
						
						<div class="row">
							<div class="col-sm-6">
								<div class="panel panel-default">
									<div class="panel-heading">
										<h4 class="panel-title">Student Admission Status</h4>
									</div>
									<div class="panel-body">
										<div id="containerbarchart" ></div>
									</div>
                                    <?php $currentyear=date('Y'); ?>
<div style="visibility:hidden">


<table id="datatable">
	<thead>
		<tr>
			<th></th>
			<th><?php  echo $currentyear; ?></th>
			<th><?php  echo $currentyear-1; ?></th>
            <th><?php  echo $currentyear-2; ?></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>Student Count</td>
			<td class="col_center">1012</td>
			<td class="col_center">900</td>
            <td class="col_center">800</td>
		</tr>
		
	</tbody>
</table>
</div>
									<table class="table table-striped">
										<thead>
											<tr>
												<th>Year</th>
												<th class="col_small col_center">Students</th>
												
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><a href="#"><?php  echo $currentyear; ?></a></td>
												<td class="col_center"><?php echo count($cyear); ?></td>
												
											</tr>
                                            <tr>
												<td><a href="#"><?php  echo $currentyear-1; ?></a></td>
												<td class="col_center"><?php echo count($prevyearcnt); ?></td>
												
											</tr>
                                             <tr>
												<td><a href="#"><?php  echo $currentyear-2; ?></a></td>
												
												<td class="col_center"><?php echo count($preyearcnt); ?></td>
											</tr>
											
										</tbody>
									</table>
								</div>
							</div>
							
							<div class="col-sm-6">
								<div class="panel panel-default">
									<div class="panel-heading">
										<h4 class="panel-title">Employees in each Department</h4>
									</div>
									<div class="panel-body">
										<div id="employee_department" ></div>
									</div>
									<table class="table table-striped">
										<thead>
											<tr>
												<th>Department</th>
												<th class="col_small col_center">Employees</th>
												<th class="col_small col_center">% Percentage</th>
											</tr>
										</thead>
										<tbody>
                                        
											<tr>
												<td><a href="#">Information Technology</a></td>
												<td class="col_center">10</td>
												<td class="col_center"><?php echo '25%'; ?></td>
											</tr>
                                           
										<tr>
												<td><a href="#">Computer Science</a></td>
												<td class="col_center">10</td>
												<td class="col_center"><?php echo '30%'; ?></td>
											</tr>
                                           
											
										</tbody>
									</table>
								</div>
							</div>
						</div>
						
					</div>
				</div>
			</section>
			<div id="footer_space"></div>
		</div>
	<?php include('inc/footer.php'); ?>