<?php
    include "config/statistics-functions.php";
?>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN CONTENT -->
    <div class="page-content-wrapper">
        <div class="page-content">
            <!-- BEGIN PAGE HEADER-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title">Statistics</h3>					
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <!-- END PAGE HEADER-->			            
            <!-- BEGIN PAGE CONTENT-->
            <div class="row">
                <div class="col-md-12">															
                    <!-- BEGIN INTERACTIVE CHART PORTLET-->
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption">Cases: Opened/Resolved/Closed-Not resolved</div>							
                        </div>
                        <div class="portlet-body">
                            <div id="chart_cases" class="chart">
                            </div>
                        </div>
                    </div>
                    <!-- END INTERACTIVE CHART PORTLET-->
                    <!-- BEGIN BASIC CHART PORTLET-->
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption">Average time to resolve a case</div>							
                        </div>
                        <div class="portlet-body">							
                            <div id="chart_avrg_time" class="chart">
                            </div>
                        </div>
                    </div>
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption">Earning per month</div>							
                        </div>
                        <div class="portlet-body">							
                            <div id="chart_earning" class="chart">
                            </div>
                        </div>
                    </div>
                    <!-- END BASIC CHART PORTLET-->					
                </div>
            </div>
            <!-- END PAGE CONTENT-->		
            <!-- END PAGE CONTENT-->
        </div>
    </div>
    <!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<script>
EARNING_JSON 		= <?php echo GetEarning(); ?>; 
CASE_STATISTIC_JSON = <?php echo GetCaseStatistics(); ?>;
AVG_TIME_JSON 		= <?php echo GetAvgTime(); ?>;
</script>





