<?php $__env->startSection('css_page_level'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css')); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css')); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/bootstrap-select/1.12.2/bootstrap-select.min.css')); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/bootstrap-daterangepicker/daterangepicker.min.css')); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/bootstrap-select/bootstrap-select.min.css')); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/select2/css/select2-bootstrap.min.css')); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/jquery-multi-select/css/multi-select.css')); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css')); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/bootstrap-tagsinput/bootstrap-tagsinput.css')); ?>" />
<?php $__env->stopSection(); ?>

<style type="text/css">
	.row > .col-md-3 > i{
		border-radius: 50%;
		padding: 30px 21px 30px 21px ; 
		box-shadow:inset 3px 3px 3px rgba(40%,40%,40%,0.5);
	}
	.row > .col-md-3 > label{
		font-family: Arial,"微軟正黑體",sans-serif !important;
		font-weight: bold !important;
	}
	.btn-xlarge {
		padding: 55px 120px 55px 40px !important;
	    font-size: 12px; 
	    line-height: normal;
	}
	label{
		font-weight: bold !important;
	}
	#table_list thead,
	#table_list th,
	#table_list td {
		text-align: center;
		vertical-align: middle;
	}
</style>

<?php $__env->startSection('page-content-wrapper'); ?>
	<div class="page-content-wrapper" id="main">
		<div class="page-content">
			<!-- BEGIN PAGE HEADER-->
			<h3 class="page-title">
			<?php $setting = app('anlutro\LaravelSettings\Facade'); ?>
			<?php echo e($setting::get('system_name','全方位建築智慧化管理系統')); ?> <small><?php echo e($setting::get('company_name','新保科技')); ?></small>
			</h3>
			<div class="page-bar">
				<ul class="page-breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="<?php echo e(route('manage::index')); ?>"><?php echo app('translator')->get('messages.homepage'); ?></a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="javascript:;"><?php echo app('translator')->get('messages.neighbor_hood'); ?></a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="<?php echo e(action('Manage\Interactive\FaultReportController@index')); ?>"><?php echo app('translator')->get('messages.error_return'); ?></a>
					</li>
				</ul>
			</div>
			<!-- END PAGE HEADER-->
			<!-- BEGIN DASHBOARD STATS -->
			
			<div class="row" >
				<div class="col-md-3">
					<a class="btn btn-success btn-xlarge" href="<?php echo e(action('Manage\Interactive\FaultReportController@create')); ?>" style="background-color: #45AEF1" target="_blank">
						<div class="row" style="margin-right: -120px;margin-bottom: -30px;">
							<div class="col-md-3">
								<i class="icon-tag fa-3x" style="background-color: #378BC1;"></i>
							</div>
							<div class="col-md-3" style="padding-left: 60px;margin-top: -30px;">
								<label style="font-size: 40px;">修繕</label>
								<br>
								<label style="font-size: 40px;">派工</label>
							</div>
						</div>
					</a>
				</div>
				<div class="col-md-3">
					<a class="btn btn-success btn-xlarge btn_view" style="background-color: #46BE8A;margin-left: -40px;">
						<div class="row" style="margin-right: -120px;margin-bottom: -30px;">
							<div class="col-md-3">
								<i class="icon-eye fa-3x" style="background-color: #38986F;"></i>
							</div>
							<div class="col-md-3" style="padding-left: 60px;margin-top: -30px;">
								<label style="font-size: 40px;">修繕</label>
								<br>
								<label style="font-size: 40px;">追蹤</label>
							</div>
						</div>
					</a>
				</div>
				<div class="col-md-3">
					<a class="btn btn-success btn-xlarge btn_view" style="background-color: #926DDE;margin-left: -80px;">
						<div class="row" style="margin-right: -120px;margin-bottom: -20px;">
							<div class="col-md-3">
								<i class="icon-cloud-download fa-3x" style="background-color: #7557B2;"></i>
							</div>
							<div class="col-md-3" style="padding-left: 60px;margin-top: -10px;">
								<label style="font-size: 30px;">修繕物品</label>
								<br>
								<label style="font-size: 30px;">調用紀錄</label>
							</div>
						</div>
					</a>
				</div>

				<div class="col-md-3">
					<a class="btn btn-success btn-xlarge btn_view" style="background-color: #F96868;margin-left: -80px;">
						<div class="row" style="margin-right: -120px;margin-bottom: -20px;">
							<div class="col-md-3">
								<i class="fa fa-comment fa-3x" style="background-color: #C75353;"></i>
							</div>
							<div class="col-md-3" style="padding-left: 60px;margin-top: -10px;">
								<label style="font-size: 30px;">修繕用戶</label>
								<br>
								<label style="font-size: 30px;">回饋內容</label>
							</div>
						</div>
					</a>
				</div>
			</div>


			<div style="margin-top: 30px;box-shadow:4px 4px 12px -2px rgba(20%,20%,40%,0.5);">
				<div class="row" style="padding-top: 50px;">
					<div id="container" class="col-md-7">
						
					</div>
					<div class="col-md-4">
						<label style="color: #48B0F7;font-size: 20px;">修繕總數 <?php echo e($report_count .' / '. $pre_report_count); ?> (本月 / 去年同期)</label>
						<div class="progress" style="height: 20px;background-color: #E3E8EE;text-align: center;">
						  	<div class="progress-bar progress-bar-striped progress-bar-animated active" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: <?php 
						  	if($pre_report_count == 0){
						  		if($report_count == 0){
									echo 0 . "%";
						  		}else{
						  			echo 100 . "%";
						  		}						  		
						  	}else{
						  		if($report_count == 0){
									echo 0 . "%";
						  		}else if($report_count / $pre_report_count * 100 > 100){
							  		echo 100 . "%";
							  	}else{
									echo $report_count / $pre_report_count * 100 . "%";
							  	}	
						  	}
						  	 ?>;background-color: #48B0F7;">
						  	 <?php if($pre_report_count == 0){
						  	 	echo "100%";
						  	 }else{
						  	 	if($report_count == 0){
									echo 0 . "%";
						  		}else{
						  			echo $report_count / $pre_report_count * 100 . "%";
						  		}						  	 	
						  	 }?>
						  	</div>
						</div>
						<label style="color: #455B6C;font-size: 26px;">本月處理狀況</label><br>
						<label style="color: #FF8888;font-size: 20px;">未處理 <?php echo e($report_count_not .' / '. $report_count); ?></label>
						<div class="progress" style="height: 20px;background-color: #E3E8EE;">
						  	<div class="progress-bar  progress-bar-striped progress-bar-animated active" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: 
						  	<?php 
						  		if($report_count == 0){
									echo 0;
						  		}else{
									echo $report_count_not / $report_count * 100; 						  			
						  		}
						  	?>%;background-color: #F96868;">
						  		<?php if($report_count == 0){
									echo 0;
						  		}else{
									echo $report_count_not / $report_count * 100; 						  			
						  		} ?>
						  	%</div>
						</div>
						<label style="color: #FFBB66;font-size: 20px;">處理中 <?php echo e($report_count_ing .' / '. $report_count); ?></label>
						<div class="progress" style="height: 20px;background-color: #E3E8EE;">
						  	<div class="progress-bar  progress-bar-striped progress-bar-animated active" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: 
						  	<?php 
						  		if($report_count == 0){
									echo 0;
						  		}else{
									echo $report_count_ing / $report_count * 100; 						  			
						  		}
						  	?>%;background-color: #F2A654;">
						  		<?php 
						  			if($report_count == 0){
										echo 0;
							  		}else{
										echo $report_count_ing / $report_count * 100; 						  			
							  		}
						  		?>
						  	%</div>
						</div>
						<label style="color: #58C595;font-size: 20px;">已處理 <?php echo e($report_count_end .' / '. $report_count); ?></label>
						<div class="progress" style="height: 20px;background-color: #E3E8EE;">
						  	<div class="progress-bar  progress-bar-striped progress-bar-animated active" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: 
						  	<?php 
						  		if($report_count == 0){
									if($report_count_end == 0){
										echo 0;
									}else{
										echo 100;
									}
						  		}else{
									echo $report_count_end / $report_count * 100; 						  			
						  		}
						  	?>%;background-color: #45BE89;">
						  	<?php 
						  		if($report_count == 0){
									echo 0;
						  		}else{
									echo $report_count_end / $report_count * 100; 						  			
						  		}
						  	?>
						  	%</div>
						</div>
					</div>
				</div>

				<div class="row" style="padding-top: 10px;border-width: 10px;border-top: 1px;">
					<div class="col-md-3" style="vertical-align: middle;text-align: center;">
						<?php
							if($report_count_status > 0){
								echo '<label style="font-size: 15px;color: #F97E81">▲'.$report_count_status .'</label>';
							}else if($report_count_status < 0){
								echo '<label style="font-size: 15px;color: #98D2B2">▼'.$report_count_status .'</label>';
							}else{
								echo '<label style="font-size: 15px;color: #F3AD5C">◄'.$report_count_status .'</label>';
							}
						?>
						<br>
						<label style="font-size: 20px;"><?php echo e($report_count); ?></label><br>
						<label style="font-size: 15px;">總修繕量</label>
					</div>
					<div class="col-md-3" style="vertical-align: middle;text-align: center;border-width: 1px;">
							<?php if($satisfaction_status != 0): ?>
								<?php if($satisfaction_status > 0): ?>
									<label style="font-size: 15px;color: #98D2B2">▲<?php echo e($satisfaction_status / 5 * 100); ?>%</label>
								<?php else: ?>
									<label style="font-size: 15px;color: #F97E81">▼<?php echo e($satisfaction_status / 5 * 100); ?>%</label>
								<?php endif; ?>
							<?php else: ?>
								<label style="font-size: 15px;color: #F3AD5C">◄0%</label>
							<?php endif; ?>
						<br>
						<label style="font-size: 20px;">
							<?php 
							if($satisfaction == ''){
								echo '無資料';
							}else{
								echo '★'.number_format($satisfaction,1);
							}
							?>
						</label><br>
						<label style="font-size: 15px;">總修繕用戶評比</label>
					</div>
					<div class="col-md-3" style="vertical-align: middle;text-align: center;border-width: 1px;">
						<?php if($cost_status > 0): ?>
							<label style="font-size: 15px;color: #F97E81">▲<?php echo e($cost_status); ?>元</label>
						<?php elseif($cost_status < 0): ?>
							<label style="font-size: 15px;color: #98D2B2">▼<?php echo e(abs($cost_status)); ?>元</label>
						<?php else: ?>
							<label style="font-size: 15px;color: #F3AD5C">◄持平</label>
						<?php endif; ?>
						<br>
						<label style="font-size: 20px;">$<?php echo e($cost); ?> 元</label><br>
						<label style="font-size: 15px;">總修繕金額</label>
					</div>
					<div class="col-md-3" style="vertical-align: middle;text-align: center;border-width: 1px;">
						<?php if($work_time_status > 0): ?>
							<label style="font-size: 15px;color: #F97E81">▲<?php echo e($work_time_status); ?></label>
						<?php elseif($work_time_status < 0): ?>
							<label style="font-size: 15px;color: #98D2B2">▼<?php echo e(abs($work_time_status)); ?></label>
						<?php else: ?>
							<label style="font-size: 15px;color: #F3AD5C">◄<?php echo e($work_time_status); ?></label>						
						<?php endif; ?>
						
						<br>
						<label style="font-size: 20px;"><?php echo e($work_time); ?> </label><br>
						<label style="font-size: 15px;">總修繕時數</label>
					</div>
				</div>
			</div>


			<div class="row" style="margin-top: 20px;box-shadow:4px 4px 12px -2px rgba(20%,20%,40%,0.5);">
				
				<div class="col-md-6">
					<div class="row" style="padding-left: 50px;">
						<label style="font-size: 20px;color:#2261E9;">樓層</label><label>分析表</label>
					</div>
					<div id="container2">
						
					</div>
				</div>
				
				<div class="col-md-6">
					<div class="row" style="padding-left: 50px;">
						<label style="font-size: 20px;color:#2261E9; ">區域</label><label>分析表</label>
					</div>
					<div id="container3">
						
					</div>
				</div>
			</div>

			<div class="row" style="margin-top: 20px;box-shadow:4px 4px 12px -2px rgba(20%,20%,40%,0.5);">
				
				<div class="col-md-6">
					<div class="row" style="padding-left: 50px;">
						<label style="font-size: 20px;color:#2261E9;">類別</label><label>分析表</label>
					</div>
					<div id="container4">
						
					</div>
				</div>
				
				<div class="col-md-6">
					<div class="row" style="padding-left: 50px;">
						<label style="font-size: 20px;color:#2261E9; ">狀況</label><label>分析表</label>
					</div>
					<div id="container5">
						
					</div>
				</div>
			</div>
		</div>
		<input type="hidden" id="_token" name="_token" value="<?php echo e(csrf_token()); ?>">
	</div>

	<div class="modal fade draggable-modal" id="modal_data" tabindex="-1" role="basic" aria-hidden="true">
	    <div class="modal-dialog modal-lg" style="width: 70%;">
	        <div class="modal-content">
	            <div class="modal-header blue" style="color: #fff;background-color: #3598dc;">
	                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	                <h4 class="modal-title"><?php echo app('translator')->get('messages.view_dispatch_list'); ?></h4>
	            </div>
	            <div class="modal-body">
	            	<table class="table table-striped table-bordered table-hover" id="table_list">
	            		<thead>
	            			<tr>
	            				<th>
									<?php echo app('translator')->get('messages.response_time'); ?>
								</th>
								<th>
									<?php echo app('translator')->get('messages.malfutn_floor'); ?>
								</th>
								<th>
									<?php echo app('translator')->get('messages.malfutn_section'); ?>
								</th>
								<th>
									<?php echo app('translator')->get('messages.malfutn_category'); ?>
								</th>
								<th>
									<?php echo app('translator')->get('messages.malfutn_status'); ?>
								</th>
								<th>
									<?php echo app('translator')->get('messages.response_user'); ?>
								</th>
								<th>
									<?php echo app('translator')->get('messages.status'); ?>
								</th>
								<th>
									 <?php echo app('translator')->get('messages.action'); ?>
								</th>
	            			</tr>
	            		</thead>
	            		<tbody>
	            			<?php foreach($data as $one): ?>
	            			<tr>
	            				<td>
									<?php echo e($one->time_report); ?>

								</td>
								<td>
									<?php echo e($one->type_floor); ?>

								</td>
								<td>
									<?php echo e($one->type_location); ?>

								</td>
								<td>
									<?php echo e($one->type_class); ?>

								</td>
								<td>
									<?php echo e($one->type_situation); ?>

								</td>
								<td>
									<?php echo e($one->user_name); ?>(<?php echo e($one->user_username); ?>)
								</td>
								<td>
									<?php if($one->status == '0'): ?>
									<span class="label label-warning"> <?php echo app('translator')->get('messages.not_process'); ?> </span>
									<?php elseif($one->status == '1'): ?>
									<span class="label label-info"> <?php echo app('translator')->get('messages.in_process'); ?> </span>
									<?php elseif($one->status == '2'): ?>
									<span class="label label-success"> <?php echo app('translator')->get('messages.processed'); ?> </span>
									<?php endif; ?>
								</td>
								<td>
									<a class="btn btn-info" target="_blank" href="<?php echo e(action('Manage\Interactive\FaultReportController@show',['id' => $one->id])); ?>">
										<i class="fa fa-pencil"></i><?php echo app('translator')->get('messages.detail_data'); ?> 
									</a>
								</td>
	            			</tr>
	            			<?php endforeach; ?>
	            		</tbody>
	            	</table>
	            </div>
	        </div>
	    </div>
	</div>




<?php $__env->stopSection(); ?>

<?php $__env->startSection('plugins_page_level'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/datatables/media/js/jquery.dataTables.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/bootbox/bootbox.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/bootstrap-tagsinput/bootstrap-tagsinput.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/jquery-validation/js/jquery.validate.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/jquery-multi-select/js/jquery.multi-select.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/bootstrap-select/1.12.2/bootstrap-select.min.js')); ?>"></script>


<!-- 20181108 趨勢圖套件 START -->
<script src="<?php echo e(asset('assets/global/plugins/highcharts/js/highstock.js')); ?>"></script>
<script src="<?php echo e(asset('assets/global/plugins/highcharts/js/highcharts.js')); ?>"></script>
<script src="<?php echo e(asset('assets/global/plugins/highcharts/js/highcharts-more.js')); ?>"></script>
<script src="<?php echo e(asset('assets/global/plugins/highcharts/js/exporting.js')); ?>"></script>
<script src="<?php echo e(asset('assets/global/plugins/highcharts/js/export-data.js')); ?>"></script>
<!-- 20181108 趨勢圖套件 END -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js_page_level'); ?>
<script>
$(document).ready(function(){
		$('#table_list').dataTable({
		// Internationalisation. For more info refer to http://datatables.net/manual/i18n
		"language": {
		    "aria": {
		        "sortAscending": ": activate to sort column ascending",
		        "sortDescending": ": activate to sort column descending"
		    },
		    "emptyTable": "<?php echo app('translator')->get('messages.datatable_no_data'); ?>",
		    "info": "<?php echo app('translator')->get('messages.display_from'); ?> _START_ <?php echo app('translator')->get('messages.display_to'); ?> _END_ <?php echo app('translator')->get('messages.then_total'); ?> _TOTAL_ <?php echo app('translator')->get('messages.records'); ?>",
		    "infoEmpty": "<?php echo app('translator')->get('messages.no_match'); ?>",
		    "infoFiltered": "(<?php echo app('translator')->get('messages.from'); ?> _MAX_ <?php echo app('translator')->get('messages.records_filter'); ?>)",
		    "lengthMenu": "<?php echo app('translator')->get('messages.show'); ?> _MENU_ <?php echo app('translator')->get('messages.records'); ?>",
		    "search": "<?php echo app('translator')->get('messages.quick_filter'); ?>:",
		    "zeroRecords": "<?php echo app('translator')->get('messages.no_data'); ?>",
		    "paginate": {
		        "previous":"<?php echo app('translator')->get('messages.last_page'); ?>",
		        "next": "<?php echo app('translator')->get('messages.next_page'); ?>",
		        "last": "<?php echo app('translator')->get('messages.lastest'); ?>",
		        "first": "<?php echo app('translator')->get('messages.most_previous'); ?>"
		    }
		},
		"lengthMenu": [
		    [10, 20, 50, -1],
		    [10, 20, 50, "All"] // change per page values here
		],
		// set the initial value
		"pageLength": 10,            
		"pagingType": "bootstrap_full_number",
		"columnDefs": [{  // set default column settings
		    'orderable': false,
		    'targets': [0]
		}, {
		    "searchable": false,
		    "targets": [0]
		}]
	});
});
	$(document).on('click','.btn_view',function(){
		$('#modal_data').modal('show');
	});

	Highcharts.chart('container', {
	    chart: {
	        type: 'spline'
	    },
	    title: {
	        text: ' '
	    },
	    subtitle: {
	        text: ' '
	    },
	    xAxis: {
	        categories: ['1','2','3','4','5','6','7','8','9','10',
	        			 '11','12','13','14','15','16','17','18','19','20',
	        			 '21','22','23','24','25','26','27','28','29','30','31']
	    },
	    yAxis: {
	        title: {
	            text: '報修數量'
	        },
	        labels: {
	            formatter: function () {
	                return this.value ;
	            }
	        }
	    },
	    tooltip: {
	        crosshairs: true,
	        shared: true
	    },
	    plotOptions: {
	        spline: {
	            marker: {
	                radius: 4,
	                lineColor: '#666666',
	                lineWidth: 1
	            }
	        }
	    },
	    series: [{
	        name: '本月',
	        marker: {
	            symbol: 'square'
	        },
	        data: [<?php echo $array_data; ?>]

	    }, {
	        name: '去年同期',
	        marker: {
	            symbol: 'diamond'
	        },
	        data: [<?php echo $pre_array_data; ?> ]
	    }]
	});
	
	Highcharts.chart('container2', {
	    chart: {
	        type: 'column'
	    },
	    title: {
	        text: ''
	    },
	    subtitle: {
	        text: ''
	    },
	    xAxis: {
	    	categories : [<?php echo $floors_name; ?>],
	        max : 4,
	        min : 0,
	        crosshair: true,
	        scrollbar: {
		        enabled: true
		    }
	    },
	    yAxis: {
	    	allowDecimals: false,
	        min: 0,
	        title: {
	            text: '報修數'
	        }
	    },
	    tooltip: {
	    	headerFormat: '<span style="font-size:10px">{point.key}</span><br>',
	        pointFormat:  '<span style="color:{series.color};padding:0">{series.name}:{point.y:f}</span><br>',
	        footerFormat: '',
	        shared: true,
	        useHTML: true
	    },
	    plotOptions: {
	        column: {
	            pointPadding: 0.1,
	            borderWidth: 0
	        }
	    },
	    series: [
	    	{
		        name: '去年同月',
		        data: [<?php echo $pre_floors; ?>],
			 	color: '#FFAA33'
		    },
	    	{
		        name: '本月',
		        data: [<?php echo $floors; ?>],
		        color: '#5555FF'
		    }
		],
	});
	
	Highcharts.chart('container3', {
	    chart: {
	        type: 'column'
	    },
	    title: {
	        text: ''
	    },
	    subtitle: {
	        text: ''
	    },
	    xAxis: {
	    	categories : [<?php echo $locations_name; ?>],
	        max : 4,
	        min : 0,
	        crosshair: true,
	        scrollbar: {
		        enabled: true
		    }
	    },
	    yAxis: {
	    	allowDecimals: false,
	        min: 0,
	        title: {
	            text: '報修數'
	        }
	    },
	    tooltip: {
	    	headerFormat: '<span style="font-size:10px">{point.key}</span><br>',
	        pointFormat:  '<span style="color:{series.color};padding:0">{series.name}:{point.y:f}</span><br>',
	        footerFormat: '',
	        shared: true,
	        useHTML: true
	    },
	    plotOptions: {
	        column: {
	            pointPadding: 0.1,
	            borderWidth: 0
	        }
	    },
	    series: [
	    	{
		        name: '去年同月',
		        data: [<?php echo $pre_locations; ?>],
			 	color: '#FFAA33'
		    },
	    	{
		        name: '本月',
		        data: [<?php echo $locations; ?>],
		        color: '#5555FF'
		    }
	    ]
	});

	Highcharts.chart('container4', {
	    chart: {
	        type: 'column'
	    },
	    title: {
	        text: ''
	    },
	    subtitle: {
	        text: ''
	    },
	    xAxis: {
	    	categories : [<?php echo $class_name; ?>],
	        max : 4,
	        min : 0,
	        crosshair: true,
	        scrollbar: {
		        enabled: true
		    }
	    },
	    yAxis: {
	    	allowDecimals: false,
	        min: 0,
	        title: {
	            text: '報修數'
	        }
	    },
	    tooltip: {
	    	headerFormat: '<span style="font-size:10px">{point.key}</span><br>',
	        pointFormat:  '<span style="color:{series.color};padding:0">{series.name}:{point.y:f}</span><br>',
	        footerFormat: '',
	        shared: true,
	        useHTML: true
	    },
	    plotOptions: {
	        column: {
	            pointPadding: 0.1,
	            borderWidth: 0
	        }
	    },
	    series: [
	    	{
		        name: '去年同月',
		        data: [<?php echo $pre_class; ?>],
			 	color: '#FFAA33'
		    },
	    	{
		        name: '本月',
		        data: [<?php echo $class; ?>],
		        color: '#5555FF'
		    }
	    ]
	});

	Highcharts.chart('container5', {
	    chart: {
	        type: 'column'
	    },
	    title: {
	        text: ''
	    },
	    subtitle: {
	        text: ''
	    },
	    xAxis: {
	    	categories : [<?php echo $situations_name; ?>],
	        max : 4,
	        min : 0,
	        crosshair: true,
	        scrollbar: {
		        enabled: true
		    }
	    },
	    yAxis: {
	    	allowDecimals: false,
	        min: 0,
	        title: {
	            text: '報修數'
	        }
	    },
	    tooltip: {
	    	headerFormat: '<span style="font-size:10px">{point.key}</span><br>',
	        pointFormat:  '<span style="color:{series.color};padding:0">{series.name}:{point.y:f}</span><br>',
	        footerFormat: '',
	        shared: true,
	        useHTML: true
	    },
	    plotOptions: {
	        column: {
	            pointPadding: 0.2,
	            borderWidth: 0
	        }
	    },
	    series: [
	    	{
		        name: '去年同月',
		        data: [<?php echo $pre_situations; ?>],
			 	color: '#FFAA33'
		    },
	    	{
		        name: '本月',
		        data: [<?php echo $situations; ?>],
		        color: '#5555FF'
		    }
	    ]
	});


	
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.manage', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>