Browse Source

update KANWIL

main^2
dfoso 1 year ago committed by =
parent
commit
e3ea53db9e
  1. 162
      app/Models/MKanwil.php
  2. 880
      app/Views/kanwil/dashboard.php
  3. 1
      writable/debugbar/debugbar_1709561162.364085.json
  4. 1
      writable/debugbar/debugbar_1709562558.161324.json
  5. 1
      writable/debugbar/debugbar_1709562589.197560.json
  6. 1
      writable/debugbar/debugbar_1709562751.485337.json
  7. 1
      writable/debugbar/debugbar_1709562764.581781.json
  8. 1
      writable/debugbar/debugbar_1709563492.650681.json
  9. 1
      writable/debugbar/debugbar_1709563525.336195.json
  10. 1
      writable/debugbar/debugbar_1709564218.713183.json
  11. 1
      writable/debugbar/debugbar_1709564241.323211.json
  12. 1
      writable/debugbar/debugbar_1709564276.709166.json
  13. 1
      writable/debugbar/debugbar_1709564659.255327.json
  14. 1
      writable/debugbar/debugbar_1709564659.302353.json
  15. 1
      writable/debugbar/debugbar_1709564663.086797.json
  16. 1
      writable/debugbar/debugbar_1709564663.541190.json
  17. 1
      writable/debugbar/debugbar_1709564711.951712.json
  18. 1
      writable/debugbar/debugbar_1709564711.992728.json
  19. 1
      writable/debugbar/debugbar_1709564721.515608.json
  20. 1
      writable/debugbar/debugbar_1709564721.944274.json
  21. 1
      writable/debugbar/debugbar_1709566219.466964.json
  22. 1
      writable/debugbar/debugbar_1709567387.739957.json
  23. 1
      writable/session/ci_session67kkbn3njaekftbcd59kvt5v3apigukn
  24. 1
      writable/session/ci_sessionasu38rsab2bsj1pq9k9qpervj8qa4bhc
  25. 1
      writable/session/ci_sessionf42rn5jogl8ifl0r1qhi7jsi5d104n35
  26. 1
      writable/session/ci_sessionla4c2elagm62u71r3org64r086asghlv
  27. 1
      writable/session/ci_sessionmoji03lsutocqabfub6qeae66cj5e4hd
  28. 1
      writable/session/ci_sessionqltc5sms9p45la68n8f28op1i8623rd6
  29. 1
      writable/session/ci_sessionsv6oumf30s4k4tmqjedrqtvsc2p9bi6s
  30. 1
      writable/session/ci_sessionvso85crgs64s6aosr85qacnpf8b0j6fo

162
app/Models/MKanwil.php

@ -0,0 +1,162 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class MKanwil extends Model
{
function selKwl()
{
$builder = $this->db->table('REF_KANWIL');
$builder->select('*');
return $builder->get();
}
function getPenn($param)
{
$kwl = $param['kwl'];
$tahun = $param['tahun'];
$bln = $param['bln'];
$query = $this->db->query("SELECT NM_KANWIL, TARGET, SUM(PENERIMAAN_BERJALAN) PENB, SUM(PENERIMAAN_LALU) PENL,
(SUM(PENERIMAAN_BERJALAN)/TARGET)*100 PENCAPAIAN, ((SUM(PENERIMAAN_BERJALAN)-SUM(PENERIMAAN_LALU))/SUM(PENERIMAAN_LALU))*100 PERTUMBUHAN
FROM KINERJA_PENERIMAAN A
LEFT JOIN REF_KANWIL B ON SUBSTR(A.NM_KANWIL,16) = SUBSTR(UPPER(NAMA),8)
WHERE THN_KINERJA = '" . $tahun . "' AND B.KODE = '" . $kwl . "' AND TO_NUMBER(BLN_KINERJA)
BETWEEN TO_NUMBER('01') AND TO_NUMBER('" . $bln . "') GROUP BY NM_KANWIL, TARGET");
return $query;
}
function getUpd()
{
$query = $this->db->query("SELECT LAST_DDL_TIME UPD
FROM DBA_OBJECTS
WHERE owner = 'GENAPP'
AND object_name = 'KINERJA_PENERIMAAN'");
return $query;
}
function getKat($param)
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$query = $this->db->query("SELECT CASE WHEN KD_KATEGORI IS NULL THEN '-' ELSE KD_KATEGORI END KODE,
CASE WHEN KD_KATEGORI IS NULL THEN 'UNKNOWN' ELSE NM_KATEGORI END NMKAT,
SUM(CASE WHEN THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN WPBAYAR ELSE 0 END)WPBYRN,
SUM(CASE WHEN THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN WPBAYAR ELSE 0 END)WPBYRP,
SUM(CASE WHEN THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) KPENN,
SUM(CASE WHEN THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) KPENP
FROM PERKATEGORI_MV
GROUP BY KD_KATEGORI,NM_KATEGORI
ORDER BY KD_KATEGORI ASC
");
return $query;
}
function getPiePen($param)
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$query = $this->db->query("SELECT NM_PAJAK,TOTALN PENERIMAAN, TOTALP PENL,
(SELECT ROUND(SUM(TOTAL)) FROM PERJENIS_MV WHERE THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "') PENERIMAAN_TOT,
(SELECT ROUND(SUM(TOTAL)) FROM PERJENIS_MV WHERE THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "') PENERIMAAN_TOTL
FROM (
SELECT NM_PAJAK,ROUND(SUM(CASE WHEN THNBYR= '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN TOTAL ELSE 0 END)) TOTALN,
ROUND(SUM(CASE WHEN THNBYR= '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN TOTAL ELSE 0 END)) TOTALP
FROM PERJENIS_MV
GROUP BY NM_PAJAK ORDER BY TOTALN DESC) WHERE ROWNUM < = 7
");
return $query;
}
function paycompNas($param)
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$query = $this->db->query("SELECT A.JMLBULAN, A.JUMLAHWP,B.JUMLAHWP JUMLAHWPP FROM
(SELECT TO_NUMBER(BLNBYR) JMLBULAN,JUMLAHWP FROM PAYCOMPNAS
WHERE THNBYR = '" . $tahun . "') A,
(SELECT TO_NUMBER(BLNBYR) JMLBULAN,JUMLAHWP FROM PAYCOMPNAS
WHERE THNBYR = '" . $tahunl . "') B
WHERE A.JMLBULAN =B.JMLBULAN
ORDER BY A.JMLBULAN ASC");
return $query;
}
function sofNas($param)
{
$tahun = $param['tahun'];
$bln = $param['bln'];
$query = $this->db->query("SELECT NO,LAPISAN,WPBYR,TOTAL,
(SELECT SUM(ROUND(WPBYR/2)) FROM SOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "') TOTWPBYR,
(SELECT SUM(TOTAL) FROM SOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "') TOTALL
FROM (
SELECT NO,LAPISAN,SUM(ROUND(WPBYR/2)) WPBYR,SUM(ROUND(TOTAL)) TOTAL FROM SOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "'
GROUP BY NO,LAPISAN) ORDER BY NO ASC ");
return $query;
}
function getBln()
{
$builder = $this->db->table('BULAN');
$builder->select('*');
return $builder->get()->getResult();
}
function getWpsk()
{
$query = $this->db->query("SELECT SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' THEN JUMLAHWP ELSE 0 END) WPK,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' THEN JUMLAHWP ELSE 0 END) WPS
FROM WPSK_MV");
return $query;
}
function getBreakdownPen($param)
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$query = $this->db->query("SELECT
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' AND THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN WPBYR ELSE 0 END) WPSWP,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' AND THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN WPBYR ELSE 0 END) WPSWPL,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' AND THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) WPSBYRN,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' AND THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) WPSBYRP,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' AND THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN WPBYR ELSE 0 END) WPKWP,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' AND THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN WPBYR ELSE 0 END) WPKWPL,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' AND THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) WPKBYRN,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' AND THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) WPKBYRP
FROM BREAKDOWN_PEN");
return $query;
}
function getWPterdaftar($param)
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$query = $this->db->query("SELECT
SUM(CASE WHEN TAHUN <= '" . $tahun . "' THEN JUMLAHWP ELSE 0 END) WPADMNOW,
SUM(CASE WHEN TAHUN <= '" . $tahunl . "' THEN JUMLAHWP ELSE 0 END) WPADMPAST
FROM WP_TERDAFTAR");
return $query;
}
function laporTahunan($param)
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$query = $this->db->query("SELECT SUM(CASE WHEN TAHUN = '" . $tahun . "' THEN JMLLAPOR ELSE 0 END) LAPORNOW,
SUM(CASE WHEN TAHUN = '" . $tahunl . "' THEN JMLLAPOR ELSE 0 END) LAPORPAST
FROM DASH_SPTTAHUNAN");
return $query;
}
}

880
app/Views/kanwil/dashboard.php

@ -0,0 +1,880 @@
<style>
.highcharts-figure,
.highcharts-data-table table {
min-width: 320px;
max-width: 800px;
margin: 1em auto;
}
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #ebebeb;
margin: 10px auto;
text-align: center;
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
background: #f8f8f8;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
</style>
<?php
$tgt = 0;
$pennow = 0;
$penpast = 0;
foreach ($penerimaan as $row) {
$tgt += $row->TARGET;
$pennow += $row->PENB;
$penpast += $row->PENL;
$capaian = ($pennow / $tgt) * 100;
$growth = (($pennow - $penpast) / $penpast) * 100;
$selisih = $pennow - $penpast;
$carryover = $pennow - $tgt;
}
$jml_penerimaan = 0;
$jml_penlalu = 0;
foreach ($pie_penerimaan as $_junk => $data) {
$jml_penerimaan = $jml_penerimaan + $data->PENERIMAAN;
$jml_penerimaantot = $data->PENERIMAAN_TOT;
$pentotlalu = $data->PENERIMAAN_TOTL;
$jml_penlalu = $jml_penlalu + $data->PENL;
}
$jml_penerimaan = $jml_penerimaantot - $jml_penerimaan;
$jml_penlalu = $pentotlalu - $jml_penlalu;
$gwpiepenl = (($jml_penerimaan - $jml_penlalu) / $jml_penlalu) * 100;
$row = 0;
$datanya_penerimaan = "[";
foreach ($pie_penerimaan as $_junk => $data) {
$gwpiepen = (($data->PENERIMAAN - $data->PENL) / $data->PENL) * 100;
$datanya_penerimaan = $datanya_penerimaan . "{name :'" . $data->NM_PAJAK . "',y: " . $data->PENERIMAAN . " , gw:" . $gwpiepen . "}";
break;
}
foreach ($pie_penerimaan as $_junk => $data) {
if ($row <> 0) {
$gwpiepen = (($data->PENERIMAAN - $data->PENL) / $data->PENL) * 100;
$datanya_penerimaan = $datanya_penerimaan . ",{name :'" . $data->NM_PAJAK . "',y: " . $data->PENERIMAAN . ", gw:" . $gwpiepen . "}";
}
$row = $row + 1;
}
$datanya_penerimaan = $datanya_penerimaan . ",{name: 'Lainnya',y:" . $jml_penerimaan . ", gw: " . $gwpiepenl . "}]";
$datapaycomp = "[";
foreach ($paycomp as $rowp) {
$datapaycomp = $datapaycomp . "{name : 'Jmlbln : " . $rowp->JMLBULAN . "',y: " . $rowp->JUMLAHWP . "},";
}
$datapaycomp = $datapaycomp . "]";
$tahun2 = date('Y');
$rentang_tahun = range($tahun2, 2022);
$hariini = date('d-m-y');
?>
<div class="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 mb-2">
<form class="form-inline" action="<?php base_url('Kanwil/index') ?>" method="post">
<label class="my-1 mr-2">Kanwil :</label>
<select class="custom-select my-1 mr-sm-2" id="kwl" name="kwl">
<?
foreach ($selkwl as $row) {
if ($row->KODE == $kwlx) {
$sel = "selected";
} else {
$sel = "";
}
echo "<option value=\"" . $row->KODE . "\" " . $sel . ">" . $row->KODE . " - " . $row->NAMA . "</option>";
}
?>
</select>
<label class="my-1 mr-2">Tahun :</label>
<select class="custom-select my-1 mr-sm-2" id="tahun" name="tahun">
<?
foreach ($rentang_tahun as $tahun) {
if ($tahun == $tahunx) {
$sel = "selected";
} else {
$sel = "";
}
echo "<option value=\"" . $tahun . "\" " . $sel . ">" . $tahun . "</option>";
}
?>
</select>
<label class="my-1 mr-2">s.d. Bulan :</label>
<select class="custom-select my-1 mr-sm-2" id="bulan" name="bulan">
<?php
foreach ($refbulan as $rowb) {
if ($rowb->KODE == $bulanx) {
$isSelected = ' selected="selected"';
} else {
$isSelected = '';
}
echo "<option value='" . $rowb->KODE . "'" . $isSelected . ">" . ucfirst(strtolower($rowb->NM_PANJANG)) . "</option>";
}
?>
</select>
<button type="submit" class="btn btn-primary my-1">Proses</button>
</form>
</div>
</div>
<div class="row clearfix">
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>Target Nas</h6>
<h6><b><?= number_format($tgt, 0, ',', '.') ?></b></h6>
</div>
<div class="icon">
<i class="ik ik-award"></i>
</div>
</div>
<small class="text-small mt-10 d-block">Capaian <?= number_format($capaian, 2) ?>%</small>
</div>
<div class="progress progress-sm">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="<?= number_format($capaian, 2) ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?= number_format($capaian, 2) ?>%;"></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>Penerimaan sd <?= $tahunx ?></h6>
<h6><b><?= number_format($pennow, 0, ',', '.') ?></b></h6>
</div>
<div class="icon">
<i class="ik ik-thumbs-up"></i>
</div>
</div>
<small class="text-small mt-10 d-block">Growth <?= number_format($growth, 2) ?>%</small>
</div>
<div class="progress progress-sm">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="<?= number_format($growth, 2) ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?= number_format($growth, 2) ?>%;"></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>Penerimaan <?= $tahunx - 1 ?></h6>
<h6><b><?= number_format($penpast, 0, ',', '.') ?></b></h6>
</div>
<div class="icon">
<i class="ik ik-calendar"></i>
</div>
</div>
<small class="text-small mt-10 d-block">Selisih <?= number_format($selisih, 0, ',', '.') ?></small>
</div>
<div class="progress progress-sm">
<div class="progress-bar bg-warning" role="progressbar" aria-valuenow="<?= ($selisih / $penpast) * 100 ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?= ($selisih / $penpast) * 100 ?>%;"></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="widget">
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>Delta</h6>
<h6><b><?= number_format($carryover, 0, ',', '.') ?></b></h6>
</div>
<div class="icon">
<i class="ik ik-alert-triangle"></i>
</div>
</div>
<small class="text-small mt-10 d-block">update <?= $updatex['UPD'] ?></small>
</div>
<div class="progress progress-sm">
<div class="progress-bar bg-info" role="progressbar" aria-valuenow="<?= idate('d') ?>" aria-valuemin="1" aria-valuemax="<?= date('t', strtotime($hariini)) ?>" style="width: <?= idate('d') / date('t', strtotime($hariini)) * 100 ?>%;"></div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-body">
<div class="row align-items-center">
<div class="col-lg-8 col-md-12">
<h3 class="card-title">Breakdown Penerimaan</h3>
<?php
$totwpskbyr = $wp_sk['WPSWP'] + $wp_sk['WPKWP'];
$totwpskbyrl = $wp_sk['WPSWPL'] + $wp_sk['WPKWPL'];
$wpsktbyrn = $wp_sk['WPSBYRN'] + $wp_sk['WPKBYRN'];
$wpsktbyrl = $wp_sk['WPSBYRP'] + $wp_sk['WPKBYRP'];
$totwpall = $wp_terdaftar['WPS'] + $wp_terdaftar['WPK'];
?>
</div>
<div class="col-lg-6 col-md-12">
<div class="col text-center">
<h5><ion-icon name="people"></ion-icon>Strategis</h5>
</div>
<div class="row mb-15">
<div class="col-8">Penerimaan</div>
<div class="col-4 text-right"><?= number_format($wp_sk['WPSBYRN'], 0, ',', '.') ?></div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-green" role="progressbar" style="width: 48%" aria-valuenow="48" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">Growth</div>
<div class="col-3 text-right"><?= number_format(($wp_sk['WPSBYRN'] - $wp_sk['WPSBYRP']) / $wp_sk['WPSBYRP'] * 100, 2) ?>%</div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-green" role="progressbar" style="width: <?= number_format(($wp_sk['WPSBYRN'] - $wp_sk['WPSBYRP']) / $wp_sk['WPSBYRP'] * 100, 2) ?>%" aria-valuenow="<?= number_format(($wp_sk['WPSBYRN'] - $wp_sk['WPSBYRP']) / $wp_sk['WPSBYRP'] * 100, 2) ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">Peranan</div>
<div class="col-3 text-right"><?= number_format($wp_sk['WPSBYRN'] / $wpsktbyrn * 100, 2) ?>%</div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-green" role="progressbar" style="width: <?= number_format($wp_sk['WPSBYRN'] / $wpsktbyrn * 100, 2) ?>%" aria-valuenow="<?= number_format($wp_sk['WPSBYRN'] / $wpsktbyrn * 100, 2) ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">WP Terdaftar</div>
<div class="col-3 text-right"><?= number_format($wp_terdaftar['WPS'], 0, ',', '.') ?></div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-green" role="progressbar" style="width: 48%" aria-valuenow="48" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">WP Bayar</div>
<div class="col-3 text-right"><?= number_format($wp_sk['WPSWP'], 0, ',', '.') ?></div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-green" role="progressbar" style="width: 48%" aria-valuenow="48" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">Ratio(%)</div>
<div class="col-3 text-right"><?= number_format($wp_sk['WPSWP'] / $wp_terdaftar['WPS'] * 100, 2) ?></div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-green" role="progressbar" style="width: <?= number_format($wp_sk['WPSWP'] / $wp_terdaftar['WPS'] * 100, 2) ?>%" aria-valuenow="<?= number_format(($wp_sk['WPSWP'] / $wp_terdaftar['WPS']) * 100, 2) ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
<div class=" col-lg-6 col-md-12">
<div class="col text-center">
<h5><ion-icon name="aperture"></ion-icon>Kewilayahan</h5>
</div>
<div class="row mb-15">
<div class="col-8">Penerimaan</div>
<div class="col-4 text-right"><?= number_format($wp_sk['WPKBYRN'], 0, ',', '.') ?></div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-primary " role="progressbar" style="width: 48%" aria-valuenow="48" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">Growth</div>
<div class="col-3 text-right"><?= number_format(($wp_sk['WPKBYRN'] - $wp_sk['WPKBYRP']) / $wp_sk['WPKBYRP'] * 100, 2) ?>%</div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-primary" role="progressbar" style="width: <?= number_format(($wp_sk['WPKBYRN'] - $wp_sk['WPKBYRP']) / $wp_sk['WPKBYRP'] * 100, 2) ?>%" aria-valuenow="<?= number_format(($wp_sk['WPKBYRN'] - $wp_sk['WPKBYRP']) / $wp_sk['WPKBYRP'] * 100, 2) ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">Peranan</div>
<div class="col-3 text-right"><?= number_format($wp_sk['WPKBYRN'] / $wpsktbyrn * 100, 2) ?>%</div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-primary" role="progressbar" style="width: <?= number_format($wp_sk['WPKBYRN'] / $wpsktbyrn * 100, 2) ?>%" aria-valuenow="<?= number_format($wp_sk['WPKBYRN'] / $wpsktbyrn * 100, 2) ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">WP Terdaftar</div>
<div class="col-3 text-right"><?= number_format($wp_terdaftar['WPK'], 0, ',', '.') ?></div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-primary" role="progressbar" style="width: 48%" aria-valuenow="48" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">WP Bayar</div>
<div class="col-3 text-right"><?= number_format($wp_sk['WPKWP'], 0, ',', '.') ?></div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-primary" role="progressbar" style="width: 48%" aria-valuenow="48" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
<div class="row mb-15">
<div class="col-9">Ratio(%)</div>
<div class="col-3 text-right"><?= number_format($wp_sk['WPKWP'] / $wp_terdaftar['WPK'] * 100, 2) ?>%</div>
<div class="col-12">
<div class="progress progress-sm mt-5">
<div class="progress-bar-striped progress-bar-animated bg-primary" role="progressbar" style="width: <?= number_format($wp_sk['WPKWP'] / $wp_terdaftar['WPK'] * 100, 2) ?>%" aria-valuenow="<?= number_format($wp_sk['WPKWP'] / $wp_terdaftar['WPK'] * 100, 2) ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card" style="min-height: 422px;">
<div class="card-header">
<h3>Info Wajib Pajak</h3>
</div>
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th class="text-center">Tahun</th>
<th class="text-center">WP Terdaftar</th>
<th class="text-center">WP Bayar</th>
<th class="text-center">Ratio (%)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center"><?php echo $tahunx ?></td>
<td class="text-center"><?= number_format($wpadm['WPADMNOW'], 0, ',', '.') ?></td>
<td class="text-center"><?= number_format($totwpskbyr, 0, ',', '.') ?></td>
<td class="text-center"> <?= number_format(($totwpskbyr / $totwpall) * 100, 2) ?></td>
</tr>
<tr>
<td class="text-center"><?php echo $tahunx - 1 ?></td>
<td class="text-center"><?= number_format($wpadm['WPADMPAST'], 0, ',', '.') ?></td>
<td class="text-center"><?= number_format($totwpskbyrl, 0, ',', '.') ?></td>
<td class="text-center"> <?= number_format(($totwpskbyrl / $wpadm['WPADMPAST']) * 100, 2) ?></td>
</tr>
<tr>
<td class="text-center">Delta</td>
<td class="text-center"><?= number_format(($wpadm['WPADMNOW'] - $wpadm['WPADMPAST']) / $wpadm['WPADMPAST'] * 100, 2) ?>%</td>
<td class="text-center"><?= number_format(($totwpskbyr - $totwpskbyrl) / $totwpskbyrl * 100, 2) ?>%</td>
<td class="text-center">-</td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<tr>
<th class="text-center">Tahun</th>
<th class="text-center">WP Lapor</th>
<th class="text-center"></th>
<th class="text-center">Ratio (%)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center"><?php echo $tahunx ?></td>
<td class="text-center"><?= number_format($laporThn['LAPORNOW'], 0, ',', '.') ?></td>
<td class="text-center"></td>
<td class="text-center"><?= number_format(($laporThn['LAPORNOW'] / $wpadm['WPADMNOW']) * 100, 2) ?></td>
</tr>
<tr>
<td class="text-center"><?php echo $tahunx - 1 ?></td>
<td class="text-center"><?= number_format($laporThn['LAPORPAST'], 0, ',', '.') ?></td>
<td class="text-center"></td>
<td class="text-center"><?= number_format(($laporThn['LAPORPAST'] / $wpadm['WPADMPAST']) * 100, 2) ?></td>
</tr>
<tr>
<td class="text-center">Delta</td>
<td class="text-center"><?= number_format(($laporThn['LAPORNOW'] - $laporThn['LAPORPAST']) / $laporThn['LAPORPAST'] * 100, 2) ?>%</td>
<td class="text-center"></td>
<td class="text-center">-</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3>Payment Compliance <?= $tahunx ?></h3>
<div class="card-header-right">
<ul class="list-unstyled card-option">
<li><i class="ik ik-chevron-left action-toggle"></i></li>
<li><i class="ik ik-minus minimize-card"></i></li>
<li><i class="ik ik-x close-card"></i></li>
</ul>
</div>
</div>
<div class="card-body">
<div id="paycomp"></div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3>PerJenis Pajak <?= $tahunx ?></h3>
<div class="card-header-right">
<ul class="list-unstyled card-option">
<li><i class="ik ik-chevron-left action-toggle"></i></li>
<li><i class="ik ik-minus minimize-card"></i></li>
<li><i class="ik ik-x close-card"></i></li>
</ul>
</div>
</div>
<div class="card-body">
<div id="preview_jenis_penerimaan"></div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3>Strength of Figure</h3>
<div class="card-header-right">
<ul class="list-unstyled card-option">
<li><i class="ik ik-chevron-left action-toggle"></i></li>
<li><i class="ik ik-minus minimize-card"></i></li>
<li><i class="ik ik-x close-card"></i></li>
</ul>
</div>
</div>
<div class="card-body">
<table class="table table-sm">
<thead>
<th class="text-center"><ion-icon name="pulse"></ion-icon> SOF</th>
<th class="text-center"><ion-icon name="person"></ion-icon> WP</th>
<th class="text-center"><ion-icon name="warning"></ion-icon> WP (%)</th>
<th class="text-center"><ion-icon name="cash"></ion-icon> Jumlah</th>
<th class="text-center"><ion-icon name="warning"></ion-icon> Jumlah (%)</th>
</thead>
<?php
foreach ($parsesof as $row) {
$wpbyrsof = $row->WPBYR;
$totwpsof = $row->TOTWPBYR;
$totjmlsof = $row->TOTALL;
$pctwp = $row->WPBYR / $totwpsof * 100;
$pctpen = $row->TOTAL / $totjmlsof * 100;
if ($pctwp < 0) {
$mpctwp = "text-danger";
$markmpctwp = "<ion-icon name='arrow-down-outline'></ion-icon>";
} else {
$mpctwp = "text-success";
$markmpctwp = "<ion-icon name='arrow-up-outline'></ion-icon>";
}
if ($pctpen < 0) {
$mpctpen = "text-danger";
$markmpctpen = "<ion-icon name='arrow-down-outline'></ion-icon>";
} else {
$mpctpen = "text-success";
$markmpctpen = "<ion-icon name='arrow-up-outline'></ion-icon>";
}
?>
<tbody>
<td><?= $row->LAPISAN; ?></td>
<td class="text-right"><?= number_format($row->WPBYR, 0, ',', '.') ?></td>
<td class="text-right <?= $mpctwp ?>"><?= number_format($pctwp, 2) ?> <?= $markmpctwp ?></td>
<td class="text-right"><?= number_format($row->TOTAL, 0, ',', '.') ?></td>
<td class="text-right <?= $mpctpen ?>"><?= number_format($pctpen, 2) ?> <?= $markmpctpen ?></td>
</tbody>
<?php } ?>
<tfoot>
<th>Total</th>
<th class="text-right"><?= number_format($totwpsof, 0, ',', '.') ?></th>
<th></th>
<th class="text-right"><?= number_format($totjmlsof, 0, ',', '.') ?></th>
</tfoot>
</table>
<small class="text-primary">*) Nilai Persentase dibawah 0% berwarna merah</small>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">PENERIMAAN PER KATEGORI <?= $tahunx ?></h5>
<table class="table table-hover">
<thead class='thead-dark'>
<tr class="table-active">
<th class="text-center">Kode</th>
<th class="text-center">Kategori</th>
<th class="text-center">Wp Bayar <?= $tahunx ?></th>
<th class="text-center">Wp Bayar <?= $tahunx - 1 ?></th>
<th class="text-center">gw WP Bayar (%)</th>
<th class="text-center">Realisasi <?= $tahunx ?></th>
<th class="text-center">Realisasi <?= $tahunx - 1 ?></th>
<th class="text-center">gw Penerimaan (%)</th>
</tr>
</thead>
<?php foreach ($perkategori as $row) {
$gwwp = (($row->WPBYRN - $row->WPBYRP) / $row->WPBYRP) * 100;
$gwkat = (($row->KPENN - $row->KPENP) / $row->KPENP) * 100;
if ($gwwp < 0) {
$markgww = "text-danger";
$markgwwic = "<ion-icon name='arrow-down-outline'></ion-icon>";
} else {
$markgww = "text-success";
$markgwwic = "<ion-icon name='arrow-up-outline'></ion-icon>";
}
if ($gwkat < 0) {
$markgwk = "text-danger";
$markgwkic = "<ion-icon name='arrow-down-outline'></ion-icon>";
} else {
$markgwk = "text-success";
$markgwkic = "<ion-icon name='arrow-up-outline'></ion-icon>";
}
?>
<tbody>
<td><?= $row->KODE ?></td>
<td><?= $row->NMKAT ?></td>
<td class="text-right"><?= number_format($row->WPBYRN, 0, ',', '.') ?></td>
<td class="text-right"><?= number_format($row->WPBYRP, 0, ',', '.') ?></td>
<td class="text-center <?= $markgww ?>"><?= number_format($gwwp, 2) ?> <?php echo $markgwwic ?></td>
<td class="text-right"><?= number_format($row->KPENN, 0, ',', '.') ?></td>
<td class="text-right"><?= number_format($row->KPENP, 0, ',', '.') ?></td>
<td class="text-center <?= $markgwk ?>"><?= number_format($gwkat, 2) ?> <?php echo $markgwkic ?></td>
</tbody>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
<?php echo view('inc/js.php') ?>
<script>
(function(H) {
H.seriesTypes.pie.prototype.animate = function(init) {
const series = this,
chart = series.chart,
points = series.points,
{
animation
} = series.options,
{
startAngleRad
} = series;
function fanAnimate(point, startAngleRad) {
const graphic = point.graphic,
args = point.shapeArgs;
if (graphic && args) {
graphic
// Set inital animation values
.attr({
start: startAngleRad,
end: startAngleRad,
opacity: 1
})
// Animate to the final position
.animate({
start: args.start,
end: args.end
}, {
duration: animation.duration / points.length
}, function() {
// On complete, start animating the next point
if (points[point.index + 1]) {
fanAnimate(points[point.index + 1], args.end);
}
// On the last point, fade in the data labels, then
// apply the inner size
if (point.index === series.points.length - 1) {
series.dataLabelsGroup.animate({
opacity: 1
},
void 0,
function() {
points.forEach(point => {
point.opacity = 1;
});
series.update({
enableMouseTracking: true
}, false);
chart.update({
plotOptions: {
pie: {
innerSize: '10%',
borderRadius: 8
}
}
});
});
}
});
}
}
if (init) {
// Hide points on init
points.forEach(point => {
point.opacity = 0;
});
} else {
fanAnimate(points[0], startAngleRad);
}
};
}(Highcharts));
Highcharts.chart('preview_jenis_penerimaan', {
chart: {
type: 'pie'
},
title: {
text: ''
},
subtitle: {
text: ''
},
tooltip: {
pointFormat: 'Peranan: <b>{point.percentage:.1f}%</b> <br> Gw : {point.gw:.1f}%'
},
accessibility: {
point: {
valueSuffix: '%'
}
},
plotOptions: {
pie: {
allowPointSelect: true,
borderWidth: 2,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b><br>{point.percentage:.1f}%',
distance: 20
}
}
},
credits: {
enabled: false
},
series: [{
// Disable mouse tracking on load, enable after custom animation
enableMouseTracking: false,
animation: {
duration: 2000
},
colorByPoint: true,
data: <?php echo $datanya_penerimaan ?>
}]
});
</script>
<script>
(function(H) {
H.seriesTypes.pie.prototype.animate = function(init) {
const series = this,
chart = series.chart,
points = series.points,
{
animation
} = series.options,
{
startAngleRad
} = series;
function fanAnimate(point, startAngleRad) {
const graphic = point.graphic,
args = point.shapeArgs;
if (graphic && args) {
graphic
// Set inital animation values
.attr({
start: startAngleRad,
end: startAngleRad,
opacity: 1
})
// Animate to the final position
.animate({
start: args.start,
end: args.end
}, {
duration: animation.duration / points.length
}, function() {
// On complete, start animating the next point
if (points[point.index + 1]) {
fanAnimate(points[point.index + 1], args.end);
}
// On the last point, fade in the data labels, then
// apply the inner size
if (point.index === series.points.length - 1) {
series.dataLabelsGroup.animate({
opacity: 1
},
void 0,
function() {
points.forEach(point => {
point.opacity = 1;
});
series.update({
enableMouseTracking: true
}, false);
chart.update({
plotOptions: {
pie: {
innerSize: '20%',
borderRadius: 8
}
}
});
});
}
});
}
}
if (init) {
// Hide points on init
points.forEach(point => {
point.opacity = 0;
});
} else {
fanAnimate(points[0], startAngleRad);
}
};
}(Highcharts));
$(function() {
Highcharts.setOptions({
lang: {
thousandsSep: '.'
}
});
Highcharts.chart('paycomp', {
chart: {
type: 'pie'
},
title: {
text: ''
},
subtitle: {
text: ''
},
tooltip: {
pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b> <br> jmlWP : {point.y} '
},
accessibility: {
point: {
valueSuffix: '%'
}
},
plotOptions: {
pie: {
allowPointSelect: true,
borderWidth: 2,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b><br>{point.percentage:.1f}% <br> WP : {point.y:,.0f} ',
distance: 20
}
}
},
credits: {
enabled: false
},
series: [{
// Disable mouse tracking on load, enable after custom animation
enableMouseTracking: false,
animation: {
duration: 2000
},
colorByPoint: true,
data: <?php echo $datapaycomp ?>
}]
});
});
</script>

1
writable/debugbar/debugbar_1709561162.364085.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562558.161324.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562589.197560.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562751.485337.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562764.581781.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709563492.650681.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709563525.336195.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564218.713183.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564241.323211.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564276.709166.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564659.255327.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564659.302353.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564663.086797.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564663.541190.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564711.951712.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564711.992728.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564721.515608.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564721.944274.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709566219.466964.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709567387.739957.json

File diff suppressed because one or more lines are too long

1
writable/session/ci_session67kkbn3njaekftbcd59kvt5v3apigukn

@ -0,0 +1 @@
__ci_last_regenerate|i:1709567386;_ci_previous_url|s:32:"https://localhost/enginen/Kanwil";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";tpkantor|s:6:"Kanwil";isLogin|b:1;

1
writable/session/ci_sessionasu38rsab2bsj1pq9k9qpervj8qa4bhc

@ -0,0 +1 @@
__ci_last_regenerate|i:1709562473;_ci_previous_url|s:30:"https://localhost/enginen/Home";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";isLogin|b:1;

1
writable/session/ci_sessionf42rn5jogl8ifl0r1qhi7jsi5d104n35

@ -0,0 +1 @@
__ci_last_regenerate|i:1709564659;_ci_previous_url|s:30:"https://localhost/enginen/Home";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";isLogin|b:1;

1
writable/session/ci_sessionla4c2elagm62u71r3org64r086asghlv

@ -0,0 +1 @@
__ci_last_regenerate|i:1709564218;_ci_previous_url|s:32:"https://localhost/enginen/Kanwil";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";isLogin|b:1;

1
writable/session/ci_sessionmoji03lsutocqabfub6qeae66cj5e4hd

@ -0,0 +1 @@
__ci_last_regenerate|i:1709565942;_ci_previous_url|s:30:"https://localhost/enginen/Home";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";tpkantor|s:6:"Kanwil";isLogin|b:1;

1
writable/session/ci_sessionqltc5sms9p45la68n8f28op1i8623rd6

@ -0,0 +1 @@
__ci_last_regenerate|i:1709563453;_ci_previous_url|s:32:"https://localhost/enginen/Kanwil";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";isLogin|b:1;

1
writable/session/ci_sessionsv6oumf30s4k4tmqjedrqtvsc2p9bi6s

@ -0,0 +1 @@
__ci_last_regenerate|i:1709567386;_ci_previous_url|s:32:"https://localhost/enginen/Kanwil";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";tpkantor|s:6:"Kanwil";isLogin|b:1;

1
writable/session/ci_sessionvso85crgs64s6aosr85qacnpf8b0j6fo

@ -0,0 +1 @@
__ci_last_regenerate|i:1709561533;_ci_previous_url|s:30:"https://localhost/enginen/Home";nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";isLogin|b:1;
Loading…
Cancel
Save