Compare commits

...

2 Commits

Author SHA1 Message Date
arbi d2d41c3ee1 Merge pull request 'Penyetaraan kostumisasi tampilan baru.' (#7) from development into main
Reviewed-on: #7
2026-09-01 14:40:47 +07:00
Ariyutta c36057d0b6 Penyetaraan kostumisasi tampilan baru. 2026-09-01 14:40:11 +07:00
14 changed files with 319 additions and 23 deletions
@@ -280,6 +280,14 @@ class P1Controller extends Controller
'selisih_bruto' => $currentBruto - $previousBruto, 'selisih_bruto' => $currentBruto - $previousBruto,
'selisih_pajak' => $currentPajak - $previousPajak, 'selisih_pajak' => $currentPajak - $previousPajak,
'selisih_netto' => $currentNetto - $previousNetto, 'selisih_netto' => $currentNetto - $previousNetto,
'bulan_lalu_jafung' => $previousRow?->nama_jabatan_fungsional ?? '-',
'bulan_terpilih_jafung' => $currentRow?->nama_jabatan_fungsional ?? '-',
'bulan_lalu_jtt' => $previousRow?->nama_jabatan_tugas_tambahan ?: '-',
'bulan_terpilih_jtt' => $currentRow?->nama_jabatan_tugas_tambahan ?: '-',
'bulan_lalu_status_pegawai' => $previousRow?->jenis_pegawai ?? '-',
'bulan_terpilih_status_pegawai' => $currentRow?->jenis_pegawai ?? '-',
'bulan_lalu_golongan' => $previousRow?->golongan ?? '-',
'bulan_terpilih_golongan' => $currentRow?->golongan ?? '-',
]), ]),
]; ];
})->filter(function ($row) use ($arah) { })->filter(function ($row) use ($arah) {
@@ -1,14 +1,22 @@
@extends('layouts.main') @extends('layouts.main')
@section('css') @section('css')
@endsection
@section('style')
<style> <style>
table tr th, table tr th,
table tr td { table tr td {
vertical-align: middle !important; vertical-align: middle !important;
} }
#limitsTable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#limitsTable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style> </style>
@endsection @endsection
@@ -30,7 +38,7 @@
'description' => 'Berikut adalah daftar limit mengajar untuk setiap Unit Kerja', 'description' => 'Berikut adalah daftar limit mengajar untuk setiap Unit Kerja',
]) ])
<div class="table-responsive"> <div class="table-responsive">
<table class="display table table-striped w-100" id="limitsTable"> <table class="display table w-100" id="limitsTable">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -1,14 +1,22 @@
@extends('layouts.main') @extends('layouts.main')
@section('css') @section('css')
@endsection
@section('style')
<style> <style>
table tr th, table tr th,
table tr td { table tr td {
vertical-align: middle !important; vertical-align: middle !important;
} }
#limitsTable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#limitsTable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style> </style>
@endsection @endsection
@@ -45,7 +53,7 @@
</div> </div>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table class="display table table-striped w-100" id="limitsTable"> <table class="display table w-100" id="limitsTable">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -1,5 +1,20 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#table-penunjang thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#table-penunjang tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -18,7 +33,7 @@
'description' => 'Berikut adalah daftar limit untuk setiap kategori rubrik penunjang' 'description' => 'Berikut adalah daftar limit untuk setiap kategori rubrik penunjang'
]) ])
<table id="table-penunjang" class="table table-bordered table-striped dt-responsive nowrap w-100"> <table id="table-penunjang" class="table table-bordered dt-responsive nowrap w-100">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -1,5 +1,24 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#periodeTable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#periodeTable tbody tr {
transition: background-color 0.15s ease-in-out;
}
#periodeTable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -21,7 +40,7 @@
]) ])
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered w-100" id="periodeTable"> <table class="table table-bordered w-100" id="periodeTable">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -1,5 +1,24 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#permissionTable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#permissionTable tbody tr {
transition: background-color 0.15s ease-in-out;
}
#permissionTable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -21,7 +40,7 @@
]) ])
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered w-100" id="permissionTable"> <table class="table table-bordered w-100" id="permissionTable">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -311,4 +330,4 @@
} }
} }
</script> </script>
@endsection @endsection
@@ -1,5 +1,12 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#rubrikTable tbody tr:hover > * { background-color: rgba(13, 110, 253, 0.08) !important; box-shadow: none; }
#rubrikTable thead th { background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important; color: #fff !important; border-color: #0166d2 !important; }
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -67,7 +74,7 @@
<!-- Tabel Data Rubrik --> <!-- Tabel Data Rubrik -->
<div class="row"> <div class="row">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered w-100 dt-styled" id="rubrikTable"> <table class="table table-bordered w-100 dt-styled" id="rubrikTable">
<thead> <thead>
<tr> <tr>
<th>ID Rubrik</th> <th>ID Rubrik</th>
@@ -1,5 +1,22 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#kategoriTable thead th, #kategoriTable tbody tr:hover > *,
#syaratTable thead th, #syaratTable tbody tr:hover > *,
#rubrikTable thead th, #rubrikTable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
#kategoriTable thead th, #syaratTable thead th, #rubrikTable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -33,7 +50,7 @@
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered w-100 dt-styled" id="kategoriTable"> <table class="table table-bordered w-100 dt-styled" id="kategoriTable">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -1,5 +1,12 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#syaratTable tbody tr:hover > * { background-color: rgba(13, 110, 253, 0.08) !important; box-shadow: none; }
#syaratTable thead th { background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important; color: #fff !important; border-color: #0166d2 !important; }
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -22,7 +29,7 @@
]) ])
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered w-100 dt-styled" id="syaratTable"> <table class="table table-bordered w-100 dt-styled" id="syaratTable">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -1,5 +1,20 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#member-datatable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#member-datatable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="{{ route('manajemen.team.index') }}">Manajemen</a></li> <li class="breadcrumb-item"><a href="{{ route('manajemen.team.index') }}">Manajemen</a></li>
@@ -64,7 +79,7 @@
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered table-striped w-100" id="member-datatable"> <table class="table table-bordered w-100" id="member-datatable">
<thead> <thead>
<tr> <tr>
<th>NIP</th> <th>NIP</th>
+16 -1
View File
@@ -1,5 +1,20 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#team-datatable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#team-datatable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -19,7 +34,7 @@
]) ])
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered table-striped w-100" id="team-datatable"> <table class="table table-bordered w-100" id="team-datatable">
<thead> <thead>
<tr> <tr>
<th>No.</th> <th>No.</th>
+16 -1
View File
@@ -1,5 +1,20 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#userTable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#userTable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Manajemen</a></li>
@@ -18,7 +33,7 @@
]) ])
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered w-100" id="userTable"> <table class="table table-bordered w-100" id="userTable">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@@ -1,5 +1,20 @@
@extends('layouts.main') @extends('layouts.main')
@section('css')
<style>
#paguTable thead th {
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
color: #fff !important;
border-color: #0166d2 !important;
}
#paguTable tbody tr:hover > * {
background-color: rgba(13, 110, 253, 0.08) !important;
box-shadow: none;
}
</style>
@endsection
@section('breadcrumb') @section('breadcrumb')
<ol class="breadcrumb m-0"> <ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Perhitungan</a></li> <li class="breadcrumb-item"><a href="javascript:void(0);">Perhitungan</a></li>
@@ -110,7 +125,7 @@
<!-- Tabel Data Pagu --> <!-- Tabel Data Pagu -->
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered w-100" id="paguTable"> <table class="table table-bordered w-100" id="paguTable">
<thead> <thead>
<tr> <tr>
<th>Unit Kerja</th> <th>Unit Kerja</th>
@@ -68,6 +68,57 @@
color: #fff !important; color: #fff !important;
} }
#detailPerbandinganP1Modal #detail-perbandingan-identitas-bulan-lalu {
background-color: var(--ct-danger) !important;
color: #fff !important;
}
#detailPerbandinganP1Modal #detail-perbandingan-identitas-bulan-terpilih {
background-color: var(--ct-primary) !important;
color: #fff !important;
}
#detailPerbandinganP1Modal #detail-perbandingan-identitas-keterangan {
background-color: var(--ct-dark) !important;
color: #fff !important;
}
#detailPerbandinganP1Modal .table {
table-layout: fixed;
}
#detailPerbandinganP1Modal .identity-comparison-table th,
#detailPerbandinganP1Modal .identity-comparison-table td {
vertical-align: middle;
overflow-wrap: anywhere;
word-break: break-word;
white-space: normal;
}
#detailPerbandinganP1Modal td > div.d-flex {
text-align: right;
}
#detailPerbandinganP1Modal .nominal-cell {
font-family: 'Courier New', 'Courier', monospace;
font-size: 0.9375rem;
}
#detailPerbandinganP1Modal .nominal-cell.bg-tosca {
background-color: #b2f2e5 !important;
font-weight: 600;
border-radius: 4px;
}
#detailPerbandinganP1Modal td.bg-tosca {
background-color: #b2f2e5 !important;
font-weight: 600;
}
#detailPerbandinganP1Modal td > div.d-flex span:last-child {
flex: 1;
}
#p1 .nominal-diff { #p1 .nominal-diff {
color: #7c3aed !important; color: #7c3aed !important;
font-weight: 600; font-weight: 600;
@@ -285,7 +336,7 @@
</div> </div>
<div class="modal fade" id="detailPerbandinganP1Modal" tabindex="-1" aria-hidden="true" data-bs-backdrop="static"> <div class="modal fade" id="detailPerbandinganP1Modal" tabindex="-1" aria-hidden="true" data-bs-backdrop="static">
<div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable"> <div class="modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header bg-primary text-white"> <div class="modal-header bg-primary text-white">
<h5 class="modal-title">Detail Perbandingan P1</h5> <h5 class="modal-title">Detail Perbandingan P1</h5>
@@ -301,9 +352,40 @@
<tr><th>Jenis Pegawai</th><td id="detail-perbandingan-jenis">-</td></tr> <tr><th>Jenis Pegawai</th><td id="detail-perbandingan-jenis">-</td></tr>
</tbody> </tbody>
</table> </table>
<h6 class="fw-bold mb-2">Perbandingan Identitas</h6>
<div class="table-responsive">
<table class="table table-sm table-bordered mb-3 identity-comparison-table">
<colgroup>
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
</colgroup>
<thead>
<tr>
<th>Kategori</th>
<th id="detail-perbandingan-identitas-bulan-lalu" class="bg-danger text-white fw-bold">Bulan Lalu</th>
<th id="detail-perbandingan-identitas-bulan-terpilih" class="bg-primary text-white fw-bold">Bulan Ini</th>
<th id="detail-perbandingan-identitas-keterangan" class="bg-dark text-white fw-bold">Keterangan</th>
</tr>
</thead>
<tbody>
<tr><th>Jabatan Fungsional</th><td id="detail-perbandingan-lalu-jafung">-</td><td id="detail-perbandingan-terpilih-jafung">-</td><td id="detail-perbandingan-keterangan-jafung">-</td></tr>
<tr><th>Jabatan Tugas Tambahan</th><td id="detail-perbandingan-lalu-jtt">-</td><td id="detail-perbandingan-terpilih-jtt">-</td><td id="detail-perbandingan-keterangan-jtt">-</td></tr>
<tr><th>Status Pegawai</th><td id="detail-perbandingan-lalu-status-pegawai">-</td><td id="detail-perbandingan-terpilih-status-pegawai">-</td><td id="detail-perbandingan-keterangan-status-pegawai">-</td></tr>
<tr><th>Golongan</th><td id="detail-perbandingan-lalu-golongan">-</td><td id="detail-perbandingan-terpilih-golongan">-</td><td id="detail-perbandingan-keterangan-golongan">-</td></tr>
</tbody>
</table>
</div>
<h6 class="fw-bold mb-2">Perbandingan Pembayaran</h6> <h6 class="fw-bold mb-2">Perbandingan Pembayaran</h6>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-sm table-bordered mb-0"> <table class="table table-sm table-bordered mb-0">
<colgroup>
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
</colgroup>
<thead> <thead>
<tr> <tr>
<th>Komponen</th> <th>Komponen</th>
@@ -663,11 +745,57 @@
$('#detail-perbandingan-jenis').text(row.jenis_pegawai || '-'); $('#detail-perbandingan-jenis').text(row.jenis_pegawai || '-');
$('#detail-perbandingan-bulan-lalu').text(detail.bulan_lalu || 'Bulan Lalu'); $('#detail-perbandingan-bulan-lalu').text(detail.bulan_lalu || 'Bulan Lalu');
$('#detail-perbandingan-bulan-terpilih').text(detail.bulan_terpilih || 'Bulan Ini'); $('#detail-perbandingan-bulan-terpilih').text(detail.bulan_terpilih || 'Bulan Ini');
$('#detail-perbandingan-identitas-bulan-lalu').text(detail.bulan_lalu || 'Bulan Lalu');
$('#detail-perbandingan-identitas-bulan-terpilih').text(detail.bulan_terpilih || 'Bulan Ini');
['bruto', 'pajak', 'netto'].forEach(function(field) { ['bruto', 'pajak', 'netto'].forEach(function(field) {
$('#detail-perbandingan-lalu-' + field).text(formatRupiahValue(detail['bulan_lalu_' + field])); var laluValue = detail['bulan_lalu_' + field];
$('#detail-perbandingan-terpilih-' + field).text(formatRupiahValue(detail['bulan_terpilih_' + field])); var terpilihValue = detail['bulan_terpilih_' + field];
$('#detail-perbandingan-selisih-' + field).text(formatRupiahValue(detail['selisih_' + field])); var selisihValue = detail['selisih_' + field];
var laluFormatted = formatRupiahValue(laluValue);
var terpilihFormatted = formatRupiahValue(terpilihValue);
var selisihFormatted = formatRupiahValue(selisihValue);
var laluParts = laluFormatted.split(' ');
var laluNumber = laluParts.slice(1).join(' ');
var laluHtml = '<div class="d-flex justify-content-between gap-1 nominal-cell"><span>Rp.</span><span>' + laluNumber + '</span></div>';
var terpilihParts = terpilihFormatted.split(' ');
var terpilihNumber = terpilihParts.slice(1).join(' ');
var hasChange = Math.abs(selisihValue) > 0.01;
var terpilihHtml = '<div class="d-flex justify-content-between gap-1 nominal-cell"><span>Rp.</span><span>' + terpilihNumber + '</span></div>';
var selisihParts = selisihFormatted.split(' ');
var selisihNumber = selisihParts.slice(1).join(' ');
var selisihHtml = '<div class="d-flex justify-content-between gap-1 nominal-cell"><span>Rp.</span><span>' + selisihNumber + '</span></div>';
var terpilihCell = $('#detail-perbandingan-terpilih-' + field);
terpilihCell.html(terpilihHtml);
if (hasChange) {
terpilihCell.addClass('bg-tosca');
} else {
terpilihCell.removeClass('bg-tosca');
}
$('#detail-perbandingan-lalu-' + field).html(laluHtml);
$('#detail-perbandingan-selisih-' + field).html(selisihHtml);
});
['jafung', 'jtt', 'status_pegawai', 'golongan'].forEach(function(field) {
var laluValue = detail['bulan_lalu_' + field] || '-';
var terpilihValue = detail['bulan_terpilih_' + field] || '-';
var hasChange = laluValue !== terpilihValue;
$('#detail-perbandingan-lalu-' + field).text(laluValue);
var terpilihCell = $('#detail-perbandingan-terpilih-' + field);
terpilihCell.text(terpilihValue);
if (hasChange) {
terpilihCell.addClass('bg-tosca');
} else {
terpilihCell.removeClass('bg-tosca');
}
$('#detail-perbandingan-keterangan-' + field).text('-');
}); });
new bootstrap.Modal(document.getElementById('detailPerbandinganP1Modal')).show(); new bootstrap.Modal(document.getElementById('detailPerbandinganP1Modal')).show();