@extends('commons.layouts.admin')
@section('content')
@if(App\LeafAPI::get_module_status([App\LeafAPI::label_power_meter]))
@endif
@if(App\LeafAPI::get_module_status([App\LeafAPI::label_accounting]))
{{App\Language::trans('Recently Ticket Complain')}}
# |
{{App\Language::trans('Date')}} |
{{App\Language::trans('Description')}} |
{{App\Language::trans('Action')}} |
@foreach($complains as $index => $row)
{{$index+1}} |
{{$row->display_date($row->document_date)}} |
{{$row->display_substr($row->complaint, 50)}} |
{{App\Language::trans('Solve')}}
|
@endforeach
@endif
{{App\Language::trans('Modules')}} |
{{App\Language::trans('Description')}} |
{{App\Language::trans('Solution')}} |
{{App\Language::trans('Action')}} |
@foreach($module_status_listing as $row)
{{App\Language::trans($row['module_name'])}} |
{{App\Language::trans($row['description'])}} |
{{App\Language::trans($row['solution'])}} |
{{App\Language::trans('Fix now')}}
|
@endforeach
{!!Form::hidden('area_chart_data', $area_chart_data, ['id'=>'area_chart_data' , 'value'=>'area_chart_data']) !!}
@endsection
@section('script')
$.get("{{action('DashboardsController@getDashboardCount')}}", function(data){
$(".outstanding_count").html(data.outstanding_count);
$(".min_credit_count").html(data.min_credit_count);
},"json");
@if(App\LeafAPI::get_module_status([App\LeafAPI::label_power_meter]))
/*
* Custom Label formatter
* ----------------------
*/
function labelFormatter(label, series) {
return ''
+ label
+ '
'
+ Math.round(series.percent) + '%
'
}
/*
* BAR CHART
* ---------
*/
var bar_data = {
data : {!!$total_usage!!},
color: '#3c8dbc'
}
$.plot('#bar-chart', [bar_data], {
grid : {
borderWidth: 1,
borderColor: '#f3f3f3',
tickColor : '#f3f3f3'
},
series: {
bars: {
show : true,
barWidth: 0.5,
align : 'center'
}
},
xaxis : {
mode : 'categories',
tickLength: 0
}
})
/* END BAR CHART */
@endif
@endsection