<?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); 

$default;
    
    if($_GET["month"]!=NULL ){
      $default= $_GET["month"];
    }
    else{
      $default= date("m");
    }

// code to update the credit limit at every new month
$branch_details=getBranch($m);
if(date("d")==01 || date("d")==1 || date("d")=="01" || date("d")=="1" && $branch_details[0]['payment_type']=="Monthly" ){    

//    echo "==".date("d")."==";
    $data = array('sms_limit' => $branch_details[0]['monthly_credit']);
    $m->where("branch_id", $_SESSION['branch']);
    $result =  $m->update ('edu_branch_config', $data);

}  // ending if    
        
    $m->where("session_id", $_SESSION['current_session']);
    $sessionname = $m->get("edu_session_config");
    $years=explode("-",$sessionname[0]['session_year']);

    $date=date('m-d');

    $sql1="SELECT * FROM edu_student_details WHERE branch_id='$b' and status='0' and dob like '%-$date'";
    $StudentDOB=$m->query($sql1);

    $sql="SELECT * FROM edu_user_config WHERE branch_id='$b' and status='0' and DOB like '%-$date' order by user_id desc";

    $TeacherDOB=$m->query($sql);
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title> More Statistics | EduPortal </title>
    <!-- bootstrap-progressbar -->
    <link href="../vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <?php include('RootMe/css_links.php');?>
    <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    <script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
     <!-- Flaticon CSS -->
    <link rel="stylesheet" href="fonts/flaticon.css">
       
    <link rel="stylesheet" href="stylebox.css">

<style>

#myChart {
  height:100%;
  width:100%;
  min-height:400px;
}

.zc-ref {
  display: none;
}
zing-grid[loading]{height:450px;}</style>
  </head>
  <style type="text/css">
      .tile-stats .icon i{
        font-size: 35px; 
      }
    </style>
  <style>
.vl {
  border-left: 1px solid lightgray;
  height: 40px;
  position: absolute;
  left: 50%;
  margin-left: -3px;
  margin-top: 24px;
}
</style>
<?php

//getting branch details

  $m->where("branch_id", $_SESSION['branch']);
  $branch_record=$m->get("edu_branch_config");

  $m->where("Month_Id", date('m'));
  $month=$m->get("eduportal_month_config");
  $current_month= date('M');
  $branch=$_SESSION['branch'];

$months = array();

$months_names = array();
$max_value;

$cout=0;
for ($i = date('m'); $i >= 1; $i--) {
  $count++;
    $months[] = str_pad($i, 2, '0', STR_PAD_LEFT);

    $months_names[] = date("F", mktime(0, 0, 0, $i, 15));
    if ($count==6) {
      break;
    }

}


$revenue = array();



for ($i = 0; $i < count($months); $i++) {

    $mon = $months[$i] . "-" . date("Y");

    // getting  fee collections against particular months
  
     $qr="SELECT SUM(fee.collected_amount) AS total  FROM eduportal_monthly_challan as fee, edu_student_details as std WHERE fee.student_id=std.student_id and std.status='0' and fee.branch_id='$branch' and fee.paid_status='1' and fee.paying_date LIKE '%$mon'";

  //echo "$qr";
    $revenue_amount = $m->query($qr);



    // this code is used to fetch all the other fee paraments of current month
    $new_month=date("Y") . "-" . $months[$i];

    $revenue[] = $revenue_amount[0]['total'];

}


$salary = array();



for ($i = 0; $i < count($months); $i++) {

    $mon = date("Y") . "-" . $months[$i];

    // getting bookings amount

    $qr = "SELECT SUM(paid_amount) AS Total FROM employee_payroll WHERE branch_id ='$branch' and paid_status = '1' and paid_date LIKE '$mon%'";

    $salary_amount = $m->query($qr);
    $salary[] = $salary_amount[0]['Total'];

}

$expense = array();

for ($i = 0; $i < count($months); $i++) {

    $mon = date("Y") . "-" . $months[$i];
    // getting bookings amount

    $qr = "SELECT SUM(expense_amount) AS Total FROM eduportal_expense_detail WHERE branch_id ='$branch' and status = '0' and expense_date LIKE '$mon%'";

    $expense_amount = $m->query($qr);





    $expense[] = $expense_amount[0]['Total'];

}

$max_value=max($revenue);
array_push($max_value);
array_push($months_names);
array_push($revenue);
array_push($salary);
array_push($expense);

?>
  
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
     
        <?php include('RootMe/sidebar.php');?>

        <?php include('RootMe/header.php');?>
     
        <!-- page content -->


        <div class="right_col" role="main">
  
          <div class="">
            <div class="row top_tiles">

<div style="background-color: white; margin-bottom: 10px;">

  <a href="dashboard.php" class="btn btn-round btn-primary quiklink">Dashboard</a>
  <a href="students_reports.php" class="btn btn-round btn-info quiklink">Students Report</a>
  <a href="attendance_report.php" class="btn btn-round btn-primary quiklink">Mark Attendance</a>
  <a href="reports.php" class="btn btn-round btn-success quiklink">Marks Reports</a>
  <a href="view_challan.php" class="btn btn-round btn-info quiklink">View Challan</a>
  <a href="messages.php" class="btn btn-round btn-warning quiklink">New Eng SMS</a>
  <a href="monthly_attendance.php" class="btn btn-round btn-danger quiklink">Emp Attendance</a>
  <a href="parents_id.php" class="btn btn-round btn-dark quiklink">Parents IDs</a>

  <a href="print_daily_income_exp_report.php" class="btn btn-round btn-primary quiklink"style="font-size: 12px;">Daily Closing Report</a>
  <a href="print_profitloss_report.php" class="btn btn-round btn-dark quiklink"style="font-size: 12px;"><?php echo date("M");?> Closing Report</a>
  <a href="add_marksheet.php" class="btn btn-round btn-danger quiklink">Add Marks Sheet</a>
  <a href="newurdusms.php" class="btn btn-round btn-warning quiklink">New Urdu SMS</a>
  <a href="fee_reporting.php" class="btn btn-round btn-info quiklink">Fee Reports</a>
  <a href="bulk_stdns.php" class="btn btn-round btn-success quiklink">Add Students</a>
  <a href="create_test.php" class="btn btn-round btn-primary quiklink">Subject Test</a>
  <a href="parents_id.php" class="btn btn-round btn-info quiklink">View Parents IDs</a>
  

</div>

             <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                <a href="manage_students.php?date=today">
                        <div class="dashboard-summery-one">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="item-icon bg-light-yellow">
                                        <i class="flaticon-user text-orange"></i>
                                    </div>
                                </div>
                                <div class="col-md-8">
                                    <div class="item-content">
                                        <div class="item-title">Today Admissions</div>
                                        <div class="item-number"><span></span><span class="counter" data-num=""></span><?php echo todayAdmissions($m);?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </a> 
                    
            </div>

               <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">

                  <a href="manage_students.php?fee=1&class_id=All&session=<?php echo $_SESSION['current_session'];?>&from=<?php echo date("01-m-Y");?>&to=<?php echo date("t-m-Y");?>">
                        <div class="dashboard-summery-one">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="item-icon bg-light-magenta">
                                        <i class="flaticon-multiple-users-silhouette text-magenta"></i>
                                    </div>
                                </div>
                                <div class="col-md-8">
                                    <div class="item-content">
                                        <div class="item-title">Admissions (<?php echo date("M");?>) </div>
                                        <div class="item-number"><span></span><span class="counter" data-num=""></span>
                                        <?php echo currentMonthAdmissions($m);?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                  </a>  
            </div>

               <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                 <a href="manage_students.php">
                        <div class="dashboard-summery-one">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="item-icon bg-light-blue">
                                        <i class="flaticon-multiple-users-silhouette text-blue"></i>
                                    </div>
                                </div>
                                <div class="col-md-8">
                                    <div class="item-content">
                                        <div class="item-title">Session Admissions</div>
                                        <div class="item-number"><span></span><span class="counter" data-num=""></span>
                                        <?php echo currentSessionAdmissions($m);?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                      </a>
                    
            </div>

               <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                <a href="list_of_old_students.php?fee=1&class_id=All&session=<?php echo $_SESSION['current_session'];?>&from=<?php echo date('Y-m-d');?>&to=<?php echo date('Y-m-d');?>">
                        <div class="dashboard-summery-one">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="item-icon bg-light-red">
                                        <i class="flaticon-user text-red"></i>
                                    </div>
                                </div>
                                <div class="col-md-8">
                                    <div class="item-content">
                                        <div class="item-title">Today Stuck Off</div>
                                        <div class="item-number"><span></span><span class="counter" data-num=""></span>
                                        <?php echo todayStuckOff($m);?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                     
                    </a>
            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                 <a href="list_of_old_students.php?fee=1&class_id=All&session=<?php echo $_SESSION['current_session'];?>&from=<?php echo date("01-m-Y");?>&to=<?php echo date("t-m-Y");?>">
                        <div class="dashboard-summery-one">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="item-icon bg-light-blue">
                                        <i class="flaticon-user text-blue"></i>
                                    </div>
                                </div>
                                <div class="col-md-8">
                                    <div class="item-content">
                                        <div class="item-title">Stuck Off (<?php echo date("M");?>)</div>
                                        <div class="item-number"><span></span><span class="counter" data-num=""></span>
                                        <?php echo currentMonthStuckOff($m);?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                     
                 </a>  
            </div>

            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                 <a href="contacts.php">
                        <div class="dashboard-summery-one">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="item-icon bg-light-green">
                                        <i class="flaticon-multiple-users-silhouette text-green"></i>
                                    </div>
                                </div>
                                <div class="col-md-8">
                                    <div class="item-content">
                                        <div class="item-title">Total Contacts </div>
                                        <div class="item-number"><span></span><span class="counter" data-num=""></span>
                                        <?php echo totalContacts($m);?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                     
                 </a>  
            </div>

             

    <div class="col-md-3 col-sm-12 col-xs-12 widget_tally_box">

                        <div class="x_panel fixed_height_490">
                          <div class="x_title">
                            <h3>Attendance <span>(Stats)</span></h3>                            
                            <div class="clearfix"></div>
                          </div>
                          <div class="x_content">

                            <div style="text-align: center;">
                              <ul class="verticle_bars list-inline">
                                <li>
                                  <div class="progress vertical progress_wide bottom">
                                    <div class="progress-bar progress-bar-dark" role="progressbar" data-transitiongoal="<?php echo getTodayPresentStudentPercentage($m); ?>"></div>
                                  </div>
                                </li>
                                <li>
                                  <div class="progress vertical progress_wide bottom">
                                    <div class="progress-bar progress-bar-gray" role="progressbar" data-transitiongoal="<?php echo getTodayAbsentStudentPercentage($m); ?>"></div>
                                  </div>
                                </li>
                                <li>
                                  <div class="progress vertical progress_wide bottom">
                                    <div class="progress-bar progress-bar-info" role="progressbar" data-transitiongoal="<?php echo getTodayEmployeePresentPersentage($m); ?>"></div>
                                  </div>
                                </li>
                                <li>
                                  <div class="progress vertical progress_wide bottom">
                                    <div class="progress-bar progress-bar-success" role="progressbar" data-transitiongoal="<?php echo getTodayEmployeeAbsentPercentage($m); ?>"></div>
                                  </div>
                                </li>
                              </ul>
                            </div>
                            

                            <ul class="legend list-unstyled">
                              <li>
                                <p>
                                  <span class="icon"><i class="fa fa-square dark"></i></span> <span class="name">Present Students </span>
                                  <div style="float: right;"><?php echo todayPresentStudentsCount($m);?></div>
                              </li>
                              <li>
                                <a href="daily_absents_students.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&date=<?php echo date("Y-m-d");?>">
                                <p>
                                  <span class="icon"><i class="fa fa-square grey"></i></span> <span class="name">Absent Students </span>
                                  <div style="float: right;"><?php echo todayAbsentStudentsCount($m); ?></div>
                                </p>
                              </a>
                              </li>

                               <li>
                                <a href="daily_late_students.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&date=<?php echo date("Y-m-d");?>">
                                <p>
                                  <span class="icon"><i class="fa fa-square grey"></i></span> <span class="name">Late Commers </span>
                                  <div style="float: right;"><?php echo todayLateStudentsCount($m); ?></div>
                                </p>
                              </a>
                              </li>

                              <li>
                                <a href="daily_leave_students.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&date=<?php echo date("Y-m-d");?>">
                                <p>
                                  <span class="icon"><i class="fa fa-square grey"></i></span> <span class="name">Leave </span>
                                  <div style="float: right;"><?php echo todayLeaveStudentsCount($m); ?></div>
                                </p>
                              </a>
                              </li>
                     
                              <li>
                                <a href="daily_absents_students.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&date=<?php echo date('Y-m-d',strtotime("-1 days"));?>">
                                  <p>
                                     <span class="icon"><i class="fa fa-print m-right-xs" target="_blank"></i></span> <span class="name">Yesterday's Absents</span>
                                    <span style="margin-left: 51px;"></span>
                                  </p>
                                </a>
                              </li>

                               <li>
                               <a href="#" data-toggle="modal" data-target="#mostabsent">
                                <p>
                                   <span class="icon"><i class="fa fa-print m-right-xs" target="_blank"></i></span> <span class="name">Most Absents (<?php echo date("M");?>)</span>
                                
                                </p>
                                 </a>
                                  <!-- Student Result popup start -->


      <div id="mostabsent" class="modal fade" role="dialog">
        <div class="modal-dialog">

          <!-- Modal content-->
          <div class="modal-content">
            <div class="modal-header" style="border-bottom:none;">
              <button type="button" class="close" data-dismiss="modal">&times;</button>
              <h4 class="modal-title" style="text-align:center;">  </h4>
            </div>

            <div class="modal-body">

</form>


<form  action="absent_students.php" method="get">

  <input type="hidden" name="dashboard" value="dashboard">
                     
                   <div class="col-md-12" style="padding: 8px;">

                       <div class="form-group ">

                          <label class="required">Session</label>
                              <select name="session" class="form-control" >

                             
                        <option>Select Session</option>
                        <?php
 
                      $match;
                      if(!isset($_REQUEST['session'])){
                        $match=$_SESSION['current_session'];
                      }else { $match=$_REQUEST['session']; }
                     
       
                        $WorkAssignList = $m->get("edu_session_config");
                        foreach($WorkAssignList as $WorkAssignListVal)
                        { 
                            $yr=explode("-",$WorkAssignListVal['session_year']);
                          ?>

                           <option <?php if($match==$WorkAssignListVal['session_id']){echo 'selected';}?> value="<?php echo $yr[0]; ?>"><?php echo $WorkAssignListVal['session_year']; ?></option>


                                <?php
                        } ?>

                    </select>
                            </div>


                    </div> 
                                 
                

                  <div class="col-md-12" style="padding:8px;"  id="">

                       <div class="form-group ">

                          <label class="required"> Month</label>
                               <select style="height:40px;" name="month" id="month" class="form-control"  required>

                              <option value="">Select Month</option>
                        

                        <?php
                        $WorkAssignList = $m->get("eduportal_month_config");
                        foreach($WorkAssignList as $WorkAssignListVal)
                        { ?>

                           <option <?php if($default==$WorkAssignListVal['Month_Id']){echo 'selected';}?> value="<?php echo $WorkAssignListVal['Month_Id']; ?>"><?php echo $WorkAssignListVal['Month_Name']; ?></option>


                                <?php
                        } ?>

                    </select>
                       
                          </div>
                  </div>                     
      
            <div class="modal-footer">

            <button type="submit" class="btn btn-primary" name="submit" >Submit </button>
              


            </div>



                 </form>

          </div>

          </div>

        </div>
      </div>

      <!-- Student result popup ending -->
                              </li>

                               <li>
                               <a href="regular_students_session.php">
                                <p>
                                   <span class="icon"><i class="fa fa-print m-right-xs" target="_blank"></i></span> <span class="name">Regular Students </span>
                                
                                </p>
                                 </a>
                              </li>

                            


                            </ul>

                          </div>
                        </div>
                      </div>



    <div class="col-md-6 col-sm-6 col-xs-12" >

  <?php // restricting user from this page || $_SESSION['user_id']!=213 

if($_SESSION['user_id']!=213 && $_SESSION['user_id']!=212 && $_SESSION['user_id']!=227){

?>
  
<div id='myChart' style="border: 1px solid #E6E9ED;"></div>


<?php } ?>
 <script type="text/javascript">
 $(function () {

        var months =<?php echo json_encode($months_names) ?>;
        var revenue =<?php echo json_encode($revenue) ?>;
        var expense =<?php echo json_encode($expense) ?>;
        var salary =<?php echo json_encode($salary) ?>;
        var max_value=<?php echo json_encode($max_value) ?>;
        max_value=max_value+50000+"";
      //alert(max_value);

    ZC.LICENSE=["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];var myConfig = {
    "graphset": [
        {
            "type": "bar",
            "background-color": "white",
            "title": {
                "text": "Graph Statistics",
                "font-color": "#7E7E7E",
                "backgroundColor": "none",
                "font-size": "22px",
                "alpha": 1,
                "adjust-layout":true,
            },
            "plotarea": {
                "margin": "dynamic"
            },
            "legend": {
                "layout": "x3",
                "overflow": "page",
                "alpha": 0.05,
                "shadow": false,
                "align":"center",
                "adjust-layout":true,
                "marker": {
                    "type": "circle",
                    "border-color": "none",
                    "size": "10px"
                },
                "border-width": 0,
                "maxItems": 3,
                "toggle-action": "hide",
                "pageOn": {
                    "backgroundColor": "#000",
                    "size": "10px",
                    "alpha": 0.65
                },
                "pageOff": {
                    "backgroundColor": "#7E7E7E",
                    "size": "10px",
                    "alpha": 0.65
                },
                "pageStatus": {
                    "color": "black"
                }
            },
            "plot": {   
                "bars-space-left":0.15,
                "bars-space-right":0.15,
                "animation": {
                    "effect": "ANIMATION_SLIDE_BOTTOM",
                    "sequence": 0, 
                    "speed": 800,
                    "delay": 800
                }
            },
            "scale-y": {
                "line-color": "#7E7E7E",
                "item": {
                    "font-color": "#7e7e7e"
                },
                "values": max_value,
                "guide": {
                    "visible": true
                },
                "label": {
                  "text": "Amount (Pkr)",
                  "font-family": "arial",
                  "bold": true,
                  "font-size": "14px",
                  "font-color": "#7E7E7E",
                },
            },
           
            "scaleX":{
                "values": 
                 months,
                "placement":"default",
                "tick":{
                    "size":58,
                    "placement":"cross"
                },
                "itemsOverlap":true,
                "item":{
                    "offsetY":-55
                }
            },
          
            "tooltip": {
              "visible": false
            },
            "crosshair-x":{
                "line-width":"100%",
                "alpha":0.18,
                "plot-label":{
                  "header-text":"%kv Sales"
                }
            },
            "series": [
                {
                    "values": expense,
                    "alpha": 0.95,
                    "borderRadiusTopLeft": 7,
                    "background-color": "#8993c7",
                    "text": "Expenses",
                },
                {
                    "values":salary,
                    "borderRadiusTopLeft": 7,
                    "alpha": 0.95,
                    "background-color": "#fdb462",
                    "text": "Wages/Salary "
                },
                {
                    "values":revenue,
                    "alpha": 0.95,
                    "borderRadiusTopLeft": 7,
                    "background-color": "#8dd3c7",
                    "text": "Revenue"
                },
              
            ]
        }
    ]
};

zingchart.render({ 
  id : 'myChart', 
  data : myConfig, 
  height: '100%', 
  width: '100%' 
 });
});
</script>

              </div>



<div class="col-md-3 col-sm-12 col-xs-12 widget_tally_box">
                        <div class="x_panel ui-ribbon-container fixed_height_490">
                          
                          <div class="x_title">
                            <h4> SMS Usage <span>(<?php echo $current_month; ?>)</h4>
                            <div class="clearfix"></div>
                          </div>
                          <div class="x_content">

                            <div style="text-align: center; margin-bottom: 17px">
                              <span class="chart" data-percent="<?php echo getCurrentMonthUsedSmsPercentage($m);  ?>">
                              <span class="percent"></span>
                              </span>
                            </div>

                            <h4 class="name_title">SMS Limit (<?php echo getCurrentMonthTotalSms($m); ?>)</h4>
                            
                            <div class="divider"></div>

                              <div>
                              <ul class="list-inline widget_tally">
                                <li>
                                  <p>
                              <a href="sent_message.php?<?php echo session_id().session_id().session_id().session_id();?>&session=<?php echo date('Y');?>&month=<?php echo date('m'); ?>&type=fee">
                                    <span class="month">Fee SMS </span>
                                    <span class="count"><?php echo getCurrentMonthFeeSms($m)+0; ?></span>
                              </a>
                                  </p>
                                </li>
                                <li>
                                  <p>
                                <a href="sent_message.php?<?php echo session_id().session_id().session_id().session_id();?>&session=<?php echo date('Y');?>&month=<?php echo date('m'); ?>&type=result">
                                    <span class="month">Result SMS </span>
                                    <span class="count"><?php echo getCurrentMonthResultSms($m)+0; ?></span>
                                </a>
                                  </p>
                                </li>
                                <li>
                                  <p>
                                <a href="sent_message.php?<?php echo session_id().session_id().session_id().session_id();?>&session=<?php echo date('Y');?>&month=<?php echo date('m'); ?>&type=other">
                                    <span class="month">Other SMS </span>
                                    <span class="count"><?php echo getCurrentMonthOtherSms($m)+0; ?></span>
                                </a>
                                  </p>
                                </li>


                                <li>
                                  <p>
                                <a href="sent_message.php?<?php echo session_id().session_id().session_id().session_id();?>&session=<?php echo date('Y');?>&month=<?php echo date('m'); ?>&type=att">
                                    <span class="month">Attendance SMS </span>
                                    <span class="count"><?php echo getCurrentMonthAttendanceSms($m)+0; ?></span>
                                </a>
                                  </p>
                                </li>

                                <li>
                                  <p>
                                <a href="sent_message.php?<?php echo session_id().session_id().session_id().session_id();?>">
                                    <strong><span class="month"> Total SMS Used </span>
                                    <span class="count">
                                      <?php echo number_format(getCurrentMonthFeeSms($m)+getCurrentMonthResultSms($m)+getCurrentMonthOtherSms($m)+getCurrentMonthAttendanceSms($m)+0); ?></span> </strong>
                                </a>
                                  </p>
                                </li>


                              </ul>
                            </div>

                          </div>
                        </div>
                      </div>
                            

                            


     

               


              </div>

              
                
    </div>
    </div>
          
            </div>
          </div>
        </div>
        <!-- /page content -->
  

    <?php include('RootMe/js_linksscript.php');?>
    <!-- Chart.js -->
    <script src="../vendors/Chart.js/dist/Chart.min.js"></script>
     <!-- ECharts -->
    <script src="../vendors/echarts/dist/echarts.min.js"></script>
    <script src="../vendors/echarts/map/js/world.js"></script>
    <!-- bootstrap-progressbar -->
    <script src="../vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
     <script src="../vendors/morris.js/morris.min.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>
     <!-- easy-pie-chart -->
    <script src="../vendors/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js"></script>
      <!-- morris.js -->
    <script src="../vendors/raphael/raphael.min.js"></script>
    <script src="../vendors/morris.js/morris.min.js"></script>

  </body>
</html>
