| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <script src="http://code.highcharts.com/highcharts.js"></script>
- <script src="http://code.highcharts.com/maps/modules/map.js"></script>
- <script src="http://code.highcharts.com/maps/modules/exporting.js"></script>
- <script src="http://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
- <script>
- Highcharts.chart('sppRT-search', {
- chart: {
- type: 'bar'
- },
- title:false,
- xAxis: {
- categories: [
- @foreach(\App\Model\ListMonth::all() as $key => $value)
- '{{$value->nama}}',
- @endforeach
- ],
- title: {
- text: null
- }
- },
- yAxis: {
- min: 0,
- title: {
- text: 'UPT',
- align: 'high'
- },
- labels: {
- overflow: 'justify'
- }
- },
- tooltip: {
- valueSuffix: ' Jumlah'
- },
- plotOptions: {
- bar: {
- dataLabels: {
- enabled: true
- }
- }
- },
- legend: {
- layout: 'vertical',
- align: 'right',
- verticalAlign: 'top',
- x: -40,
- y: 80,
- floating: true,
- borderWidth: 1,
- backgroundColor:
- Highcharts.defaultOptions.legend.backgroundColor || '#FFFFFF',
- shadow: true
- },
- credits: {
- enabled: false
- },
- series: [
- {
- name: 'Total RT Terbit Diterbitkan',
- data: [
- @foreach(\App\Model\ListMonth::all() as $key => $value)
- 0,
- @endforeach
- ]
- },
- {
- name: 'RT Terbayar ( H-60 s.d H-30 )',
- data: [
- @foreach(\App\Model\ListMonth::all() as $key => $value)
- <?php
- if ($value->id_bulan == 1) {
- $minMonth = 11;
- $minYears = $year - 1;
- }
- elseif ($value->id_bulan == 2) {
- $minMonth = 12;
- $minYears = $year - 1;
- }
- else{
- $minMonth = $value->id_bulan - 2;
- $minYears = $year;
- }
- ?>
- 0,
- @endforeach
- ]
- },
- {
- name: 'RT Terbayar ( H-30 s.d H ) Hasil TL UPT',
- data: [
- @foreach(\App\Model\ListMonth::all() as $key => $value)
- <?php
- if ($value->id_bulan == 1) {
- $minMonth = 11;
- $minYears = $year - 1;
- }
- elseif ($value->id_bulan == 2) {
- $minMonth = 12;
- $minYears = $year - 1;
- }
- else{
- $minMonth = $value->id_bulan - 1;
- $minYears = $year;
- }
- ?>
- @if(\App\Model\SPP\RT::where('status_pembayaran','paid')->get() == null)
- 0,
- @else
- 0,
- @endif
- @endforeach
- ]
- },
- {
- name: 'RT Belum Terbayar ( Belum Jatuh Tempo )',
- data: [
- @foreach(\App\Model\ListMonth::all() as $key => $value)
- <?php
- if ($value->id_bulan == 1) {
- $minMonth = 11;
- $minYears = $year - 1;
- }
- elseif ($value->id_bulan == 2) {
- $minMonth = 12;
- $minYears = $year - 1;
- }
- else{
- $minMonth = $value->id_bulan - 1;
- $minYears = $year;
- }
- ?>
- 0,
- @endforeach
- ]
- },
- {
- name: 'RT Tidak Membayar ( Menjadi Reminder )',
- data: [
- @foreach(\App\Model\ListMonth::all() as $key => $value)
- <?php
- if ($value->id_bulan == 1) {
- $minMonth = 11;
- $minYears = $year - 1;
- }
- elseif ($value->id_bulan == 2) {
- $minMonth = 12;
- $minYears = $year - 1;
- }
- else{
- $minMonth = $value->id_bulan;
- $minYears = $year;
- }
- ?>
- 0,
- @endforeach
- ]
- },
- ]
- });
- </script>
- <script type="text/javascript">
- var map = am4core.create("chartdiv", am4maps.MapChart);
- </script>
|