Penambahn P1 Dev
This commit is contained in:
@@ -126,6 +126,27 @@
|
||||
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
|
||||
}
|
||||
|
||||
/* Modern Topbar Team Pill */
|
||||
#btnChangeTeamTopbar,
|
||||
.btn-trigger-change-team,
|
||||
.team-indicator-pill {
|
||||
border-radius: 9999px !important;
|
||||
height: 38px !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
gap: 8px !important;
|
||||
padding: 4px 14px !important;
|
||||
transition: all 0.2s ease !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
||||
#btnChangeTeamTopbar:hover,
|
||||
.btn-trigger-change-team:hover {
|
||||
background-color: #eff6ff !important;
|
||||
border-color: #93c5fd !important;
|
||||
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
|
||||
}
|
||||
|
||||
/* Submenu Sidebar Drawer (High-legibility & cleanly nested) */
|
||||
.side-nav-second-level {
|
||||
list-style: none !important;
|
||||
|
||||
@@ -532,7 +532,7 @@
|
||||
@endphp
|
||||
@if ($authUserTeams->count() > 1)
|
||||
<div class="modal fade" id="changeTeamModal" tabindex="-1"
|
||||
aria-labelledby="changeTeamModalLabel" aria-hidden="true">
|
||||
aria-labelledby="changeTeamModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-primary text-white">
|
||||
@@ -565,12 +565,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
|
||||
<i class="mdi mdi-close me-1"></i>Batal
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="btnConfirmChangeTeam">
|
||||
<i class="mdi mdi-check me-1"></i>Ganti Team
|
||||
</button>
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
|
||||
<i class="mdi mdi-close me-1"></i>Batal
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -472,6 +472,12 @@
|
||||
<span> P1 </span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="li-remunerasi-p1-dev">
|
||||
<a href="{{ route('remunerasi.p1-dev.index') }}">
|
||||
<i class="uil-money-stack" style="margin-right: 3px; font-size:18px"></i>
|
||||
<span> P1 Dev </span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@php
|
||||
$remunerasiP2Team = App\Models\Verifikator\Team::find(session('team_id'));
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
|
||||
<!-- Indikator Tim Aktif -->
|
||||
@if($userTeamsCount > 1)
|
||||
<button type="button" class="btn-trigger-change-team hidden sm:inline-flex items-center gap-2 bg-blue-50/80 hover:bg-blue-100/80 border border-blue-200 text-blue-900 text-xs font-bold px-3.5 py-1.5 rounded-full transition shadow-2xs h-9 group" id="btnChangeTeamTopbar" title="Klik untuk mengganti Team Verifikator">
|
||||
<button type="button" class="btn-trigger-change-team rounded-pill hidden sm:inline-flex items-center gap-2 bg-blue-50/80 hover:bg-blue-100/80 border border-blue-200 text-blue-900 text-xs font-bold px-3.5 py-1.5 transition shadow-2xs h-9 group" id="btnChangeTeamTopbar" style="border-radius: 9999px !important;" title="Klik untuk mengganti Team Verifikator">
|
||||
<i class="mdi mdi-shield-check text-blue-600 text-base"></i>
|
||||
<span class="max-w-[130px] truncate text-slate-800 font-bold">{{ $activeTeam->nama ?? 'General' }}</span>
|
||||
<span class="bg-blue-600 group-hover:bg-blue-700 text-white text-[10px] font-extrabold px-1.5 py-0.5 rounded-full">Ganti</span>
|
||||
<span class="bg-blue-600 group-hover:bg-blue-700 text-white text-[10px] font-extrabold px-1.5 py-0.5 rounded-pill" style="border-radius: 9999px !important;">Ganti</span>
|
||||
</button>
|
||||
@elseif($activeTeam)
|
||||
<div class="hidden sm:inline-flex items-center gap-2 bg-slate-50 border border-slate-200 text-slate-800 text-xs font-bold px-3.5 py-1.5 rounded-full h-9" title="Team Aktif">
|
||||
<div class="team-indicator-pill rounded-pill hidden sm:inline-flex items-center gap-2 bg-slate-50 border border-slate-200 text-slate-800 text-xs font-bold px-3.5 py-1.5 h-9" style="border-radius: 9999px !important;" title="Team Aktif">
|
||||
<i class="mdi mdi-shield-check text-blue-600 text-base"></i>
|
||||
<span class="max-w-[130px] truncate">{{ $activeTeam->nama }}</span>
|
||||
</div>
|
||||
|
||||
@@ -123,15 +123,15 @@
|
||||
|
||||
<!-- Tabel Data Pagu -->
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered w-100" id="paguTable">
|
||||
<table class="table table-bordered w-100 dt-styled" id="paguTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Unit Kerja</th>
|
||||
<th>Tahun</th>
|
||||
<th>Pagu Smt 1</th>
|
||||
<th>Pagu Smt 2</th>
|
||||
<th class="text-center">Tahun</th>
|
||||
<th class="text-center">Pagu Smt 1</th>
|
||||
<th class="text-center">Pagu Smt 2</th>
|
||||
@if($canUbah || $canHapus)
|
||||
<th>Aksi</th>
|
||||
<th class="text-center">Aksi</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -220,6 +220,24 @@
|
||||
const hideJumlahCards = {{ $hideJumlahCards ? 'true' : 'false' }};
|
||||
const currentYear = '{{ date("Y") }}';
|
||||
|
||||
function renderRupiah(data) {
|
||||
if (data === '?') {
|
||||
return '<div class="text-center font-monospace">?</div>';
|
||||
}
|
||||
if (!data) {
|
||||
return '<div class="d-flex justify-content-between gap-1 nominal-cell"><span>Rp.</span><span>0</span></div>';
|
||||
}
|
||||
var str = String(data).trim();
|
||||
if (str.startsWith('Rp.') || str.startsWith('Rp')) {
|
||||
var parts = str.split(' ');
|
||||
var number = parts.slice(1).join(' ');
|
||||
return '<div class="d-flex justify-content-between gap-1 nominal-cell"><span>Rp.</span><span>' + number + '</span></div>';
|
||||
}
|
||||
var num = Number(str);
|
||||
var formatted = isNaN(num) ? str : num.toLocaleString('id-ID');
|
||||
return '<div class="d-flex justify-content-between gap-1 nominal-cell"><span>Rp.</span><span>' + formatted + '</span></div>';
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
// Initialize Select2 for filter periode, default to current year
|
||||
$('#periode').select2({
|
||||
@@ -303,9 +321,23 @@
|
||||
// Define columns
|
||||
var columns = [
|
||||
{ data: 'unit_kerja_nama', name: 'unit_kerja_nama' },
|
||||
{ data: 'tahun', name: 'tahun', className: 'text-center' },
|
||||
{ data: 'pagu_smt1', name: 'pagu_smt1', className: 'text-center' },
|
||||
{ data: 'pagu_smt2', name: 'pagu_smt2', className: 'text-center' }
|
||||
{ data: 'tahun', name: 'tahun', className: 'text-center', width: '10%' },
|
||||
{
|
||||
data: 'pagu_smt1',
|
||||
name: 'pagu_smt1',
|
||||
width: '18%',
|
||||
render: function(data) {
|
||||
return renderRupiah(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
data: 'pagu_smt2',
|
||||
name: 'pagu_smt2',
|
||||
width: '18%',
|
||||
render: function(data) {
|
||||
return renderRupiah(data);
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
if (showAksi) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -796,6 +796,7 @@
|
||||
d.tahun = $('select#tahun').val();
|
||||
d.bulan = $('select#bulan').val();
|
||||
d.arah = $('#arah_perbandingan').val();
|
||||
d.include_pppk_2025 = $('#include_pppk_2025').is(':checked') ? 1 : 0;
|
||||
}
|
||||
},
|
||||
columns: [
|
||||
@@ -1088,7 +1089,8 @@
|
||||
+ '&bulan=' + encodeURIComponent(bulan)
|
||||
+ '&jenis_pegawai=' + encodeURIComponent(jenisPegawai)
|
||||
+ '&unit_kerja=' + encodeURIComponent(unitKerja)
|
||||
+ '&arah=' + encodeURIComponent(arah);
|
||||
+ '&arah=' + encodeURIComponent(arah)
|
||||
+ '&include_pppk_2025=' + ($('#include_pppk_2025').is(':checked') ? 1 : 0);
|
||||
|
||||
fetch(exportUrl)
|
||||
.then(function(response) {
|
||||
|
||||
@@ -571,7 +571,7 @@
|
||||
updateSelectedCount(); toggleBulkButtons();
|
||||
});
|
||||
showSuccess('Berhasil', response.message);
|
||||
} else { showError('Gagal', 'Gagal menerima pengajuan: ' + response.message); }
|
||||
} else { showError('Gagal', response.message); }
|
||||
},
|
||||
error: function(xhr) { handleAjaxError(xhr); }
|
||||
});
|
||||
@@ -609,7 +609,7 @@
|
||||
updateSelectedCount(); toggleBulkButtons();
|
||||
});
|
||||
showSuccess('Berhasil', response.message);
|
||||
} else { showError('Gagal', 'Gagal menolak pengajuan: ' + response.message); }
|
||||
} else { showError('Gagal', response.message); }
|
||||
},
|
||||
error: function(xhr) { handleAjaxError(xhr); }
|
||||
});
|
||||
@@ -699,7 +699,7 @@
|
||||
});
|
||||
showSuccess('Berhasil', 'Pengajuan presensi berhasil diterima');
|
||||
} else {
|
||||
showError('Gagal', 'Gagal menerima pengajuan: ' + response.message);
|
||||
showError('Gagal', response.message);
|
||||
}
|
||||
},
|
||||
error: function(xhr) {
|
||||
@@ -742,7 +742,7 @@
|
||||
});
|
||||
showSuccess('Berhasil', 'Pengajuan presensi berhasil ditolak');
|
||||
} else {
|
||||
showError('Gagal', 'Gagal menolak pengajuan: ' + response.message);
|
||||
showError('Gagal', response.message);
|
||||
}
|
||||
},
|
||||
error: function(xhr) {
|
||||
|
||||
@@ -533,7 +533,7 @@
|
||||
updateSelectedCount(); toggleBulkButtons();
|
||||
});
|
||||
showSuccess('Berhasil', response.message);
|
||||
} else { showError('Gagal', 'Gagal menerima pengajuan: ' + response.message); }
|
||||
} else { showError('Gagal', response.message); }
|
||||
},
|
||||
error: function(xhr) { handleAjaxError(xhr); }
|
||||
});
|
||||
@@ -567,7 +567,7 @@
|
||||
updateSelectedCount(); toggleBulkButtons();
|
||||
});
|
||||
showSuccess('Berhasil', response.message);
|
||||
} else { showError('Gagal', 'Gagal menolak pengajuan: ' + response.message); }
|
||||
} else { showError('Gagal', response.message); }
|
||||
},
|
||||
error: function(xhr) { handleAjaxError(xhr); }
|
||||
});
|
||||
@@ -682,7 +682,7 @@
|
||||
});
|
||||
showSuccess('Berhasil', 'Pengajuan presensi berhasil diterima');
|
||||
} else {
|
||||
showError('Gagal', 'Gagal menerima pengajuan: ' + response.message);
|
||||
showError('Gagal', response.message);
|
||||
}
|
||||
},
|
||||
error: function(xhr) {
|
||||
@@ -719,7 +719,7 @@
|
||||
});
|
||||
showSuccess('Berhasil', 'Pengajuan presensi berhasil ditolak');
|
||||
} else {
|
||||
showError('Gagal', 'Gagal menolak pengajuan: ' + response.message);
|
||||
showError('Gagal', response.message);
|
||||
}
|
||||
},
|
||||
error: function(xhr) {
|
||||
|
||||
Reference in New Issue
Block a user