@extends('commons.layouts.admin') @section('content') @if(App\LeafAPI::get_module_status([App\LeafAPI::label_power_meter]))

{{App\Language::trans('Last update')}}

{{$last_update_at}}

{{$outstanding_count}}

{{App\Language::trans('Credit at zero or > ')}}

{{$min_credit_count}}

{{App\Language::trans('Healthy credit')}}

{{$recent_pay_count}}

{{App\Language::trans('Payment made')}}

@endif
@if(App\LeafAPI::get_module_status([App\LeafAPI::label_accounting]))

{{App\Language::trans('Recently Ticket Complain')}}

@foreach($complains as $index => $row) @endforeach
# {{App\Language::trans('Date')}} {{App\Language::trans('Description')}} {{App\Language::trans('Action')}}
{{$index+1}} {{$row->display_date($row->document_date)}} {{$row->display_substr($row->complaint, 50)}} {{App\Language::trans('Solve')}}
@endif

{{App\Language::trans('Modules Status Report')}}

@foreach($module_status_listing as $row) @endforeach
{{App\Language::trans('Modules')}} {{App\Language::trans('Description')}} {{App\Language::trans('Solution')}} {{App\Language::trans('Action')}}
{{App\Language::trans($row['module_name'])}} {{App\Language::trans($row['description'])}} {{App\Language::trans($row['solution'])}} {{App\Language::trans('Fix now')}}

{{date('F-Y', strtotime('now'))}} {{App\Language::trans('Daily Transaction')}}

{{date('Y', strtotime('now'))}} {{App\Language::trans('Monthly Transaction')}}

{!!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