Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 80d470df5f | |||
| dc923fb063 |
@@ -543,7 +543,7 @@ class DetailController extends Controller
|
||||
|
||||
$nips = collect($sk['anggota'])->pluck('nip')->filter()->unique()->values()->toArray();
|
||||
$pegawaiCollection = Pegawai::with('jabatan.detail')
|
||||
->select('nip', 'nip_siakad', 'jabatan_dtt_nama', 'jabatan_dtt_tanggal_berlaku', 'jabatan_dtt_tanggal_berakhir', 'unit_kerja_nama')
|
||||
->select('nip', 'nip_siakad', 'jenis_pegawai', 'jabatan_dtt_nama', 'jabatan_dtt_tanggal_berlaku', 'jabatan_dtt_tanggal_berakhir', 'unit_kerja_nama')
|
||||
->where(function ($q) use ($nips) {
|
||||
$q->whereIn('nip', $nips)->orWhereIn('nip_siakad', $nips);
|
||||
})
|
||||
@@ -556,6 +556,7 @@ class DetailController extends Controller
|
||||
$value['jtt']['nama'] = $pegawai?->jabatan?->detail?->last()?->tambahan?->nama;
|
||||
$value['jtt']['tgl_berlaku'] = $pegawai?->jabatan_dtt_tanggal_berlaku;
|
||||
$value['jtt']['tgl_berakhir'] = $pegawai?->jabatan_dtt_tanggal_berakhir;
|
||||
$value['jenis_pegawai'] = $pegawai?->jenis_pegawai;
|
||||
}
|
||||
|
||||
$data = collect($sk['anggota']);
|
||||
@@ -669,7 +670,7 @@ class DetailController extends Controller
|
||||
|
||||
$nips = $anggotas->pluck('nip')->filter()->unique()->values()->toArray();
|
||||
$pegawaiCollection = Pegawai::with('jabatan.detail')
|
||||
->select('nip', 'nip_siakad', 'jabatan_dtt_nama', 'jabatan_dtt_tanggal_berlaku', 'jabatan_dtt_tanggal_berakhir', 'unit_kerja_nama')
|
||||
->select('nip', 'nip_siakad', 'jenis_pegawai', 'jabatan_dtt_nama', 'jabatan_dtt_tanggal_berlaku', 'jabatan_dtt_tanggal_berakhir', 'unit_kerja_nama')
|
||||
->where(fn ($q) => $q->whereIn('nip', $nips)->orWhereIn('nip_siakad', $nips))
|
||||
->get();
|
||||
$pegawaiByNip = $pegawaiCollection->keyBy('nip');
|
||||
@@ -685,6 +686,7 @@ class DetailController extends Controller
|
||||
'nip' => $anggota->nip,
|
||||
'nama' => $anggota->nama,
|
||||
'posisi' => $anggota->posisi,
|
||||
'jenis_pegawai' => $pegawai?->jenis_pegawai,
|
||||
'kategori_id' => $anggota->kategori_id,
|
||||
'keterangan' => $anggota->keterangan,
|
||||
'rubrik_id' => $anggota->rubrik_id,
|
||||
|
||||
Generated
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "verifikator",
|
||||
"name": "verifikator-untan",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
+1281
-7
File diff suppressed because it is too large
Load Diff
@@ -5,283 +5,148 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Login | {{ config('app.name') }}</title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
|
||||
|
||||
<!-- Font & Icons -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
|
||||
|
||||
<!-- CSS Notifikasi -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
|
||||
|
||||
<!-- App Vite (Tailwind CSS v4 & High-Legibility Tokens) -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
<style>
|
||||
body {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: "Inter", sans-serif;
|
||||
padding: 20px;
|
||||
@keyframes float-slow {
|
||||
0%, 100% { transform: translateY(0px) rotate(0deg); }
|
||||
50% { transform: translateY(-10px) rotate(1deg); }
|
||||
}
|
||||
|
||||
.login-wrapper {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
border: 1px solid rgba(59, 130, 246, 0.1);
|
||||
display: flex;
|
||||
min-height: 600px;
|
||||
transition: transform 0.3s ease;
|
||||
@keyframes pulse-glow {
|
||||
0%, 100% { opacity: 0.35; transform: scale(1); }
|
||||
50% { opacity: 0.65; transform: scale(1.1); }
|
||||
}
|
||||
|
||||
.login-wrapper:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 25px 50px rgba(30, 58, 138, 0.4);
|
||||
@keyframes card-entrance {
|
||||
0% { opacity: 0; transform: translateY(28px) scale(0.98); }
|
||||
100% { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
|
||||
.image-section {
|
||||
flex: 1;
|
||||
background: linear-gradient(45deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px;
|
||||
color: white;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.animate-float-slow {
|
||||
animation: float-slow 6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.image-section::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23grid)"/></svg>');
|
||||
opacity: 0.3;
|
||||
.animate-pulse-glow {
|
||||
animation: pulse-glow 8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.floating-elements::before,
|
||||
.floating-elements::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 50%;
|
||||
animation: float 6s ease-in-out infinite;
|
||||
.animate-card-entrance {
|
||||
animation: card-entrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||
}
|
||||
|
||||
.floating-elements::before {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
top: 10%;
|
||||
right: -50px;
|
||||
}
|
||||
|
||||
.floating-elements::after {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
bottom: 20%;
|
||||
left: -30px;
|
||||
animation-delay: 3s;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-20px); }
|
||||
}
|
||||
|
||||
.image-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image-content .icon {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 30px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.image-content h1 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.image-content p {
|
||||
font-size: 1.1rem;
|
||||
opacity: 0.9;
|
||||
line-height: 1.6;
|
||||
max-width: 300px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
flex: 1;
|
||||
padding: 50px 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
text-align: center;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.login-header h2 {
|
||||
color: #1e3a8a;
|
||||
font-weight: 600;
|
||||
font-size: 2rem;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.login-header p {
|
||||
color: #3b82f6;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.btn-portal {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
padding: 18px;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.btn-portal:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
|
||||
background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-portal:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.sso-info {
|
||||
margin-top: 30px;
|
||||
padding: 16px 20px;
|
||||
background: #eff6ff;
|
||||
border: 1px solid #bfdbfe;
|
||||
border-radius: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sso-info p {
|
||||
color: #1e40af;
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.login-wrapper {
|
||||
flex-direction: column;
|
||||
max-width: 500px;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.image-section {
|
||||
padding: 30px 20px;
|
||||
min-height: 250px;
|
||||
}
|
||||
|
||||
.image-content h1 { font-size: 1.8rem; }
|
||||
|
||||
.form-section {
|
||||
padding: 30px 25px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.image-section {
|
||||
padding: 25px 15px;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.form-section { padding: 25px 20px; }
|
||||
.image-content h1 { font-size: 1.5rem; }
|
||||
.login-header h2 { font-size: 1.3rem; }
|
||||
.glass-card {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="login-wrapper">
|
||||
<div class="image-section">
|
||||
<div class="floating-elements"></div>
|
||||
<div class="image-content">
|
||||
<div class="icon">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="untan.png" height="80">
|
||||
<body class="min-h-screen bg-slate-950 font-sans text-slate-800 antialiased flex items-center justify-center p-4 sm:p-6 lg:p-8 relative overflow-x-hidden selection:bg-blue-600 selection:text-white">
|
||||
|
||||
<!-- Ambient Glowing Orbs Background -->
|
||||
<div class="fixed inset-0 pointer-events-none overflow-hidden z-0">
|
||||
<div class="absolute -top-40 -left-40 w-96 h-96 sm:w-[520px] sm:h-[520px] bg-blue-600/25 rounded-full blur-3xl animate-pulse-glow"></div>
|
||||
<div class="absolute -bottom-40 -right-40 w-96 h-96 sm:w-[580px] sm:h-[580px] bg-indigo-600/20 rounded-full blur-3xl animate-pulse-glow" style="animation-delay: -3s;"></div>
|
||||
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-80 h-80 bg-blue-500/15 rounded-full blur-3xl"></div>
|
||||
<div class="absolute inset-0 bg-[radial-gradient(#334155_1px,transparent_1px)] [background-size:24px_24px] opacity-25"></div>
|
||||
</div>
|
||||
|
||||
<!-- Main Login Card Container (Kompak & Proporsional) -->
|
||||
<div class="w-full max-w-[740px] glass-card rounded-2xl shadow-2xl shadow-blue-950/40 border border-white/20 overflow-hidden relative z-10 animate-card-entrance grid grid-cols-1 md:grid-cols-12 min-h-[460px]">
|
||||
|
||||
<!-- Sisi Kiri: Brand & Visual Hero (5 Kolom) -->
|
||||
<div class="md:col-span-5 relative bg-gradient-to-br from-blue-600 via-blue-700 to-indigo-900 p-6 sm:p-7 flex flex-col justify-between overflow-hidden text-white">
|
||||
<div class="absolute -top-16 -right-16 w-48 h-48 bg-white/10 rounded-full blur-xl pointer-events-none"></div>
|
||||
<div class="absolute -bottom-16 -left-16 w-52 h-52 bg-blue-400/20 rounded-full blur-xl pointer-events-none"></div>
|
||||
<div class="absolute inset-0 bg-[radial-gradient(rgba(255,255,255,0.12)_1px,transparent_1px)] [background-size:16px_16px] pointer-events-none"></div>
|
||||
|
||||
|
||||
<!-- Center Brand Section -->
|
||||
<div class="relative z-10 my-6 sm:my-auto text-center flex flex-col items-center">
|
||||
<div class="w-20 h-20 max-w-[80px] max-h-[80px] rounded-2xl bg-white/15 backdrop-blur-md p-3 flex items-center justify-center border border-white/30 shadow-lg shadow-blue-950/20 mb-3 animate-float-slow group shrink-0">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="Logo UNTAN" class="h-full w-full max-h-full max-w-full object-contain filter drop-shadow-md transition-transform duration-300 group-hover:scale-105">
|
||||
</div>
|
||||
<h1>Verifikator</h1>
|
||||
<p>Sistem Verifikasi Remunerasi Universitas Tanjungpura</p>
|
||||
|
||||
<h1 class="text-xl sm:text-2xl font-extrabold tracking-tight mb-1 text-white">Verifikator</h1>
|
||||
<p class="text-xs font-medium text-blue-100/90 leading-relaxed max-w-[200px]">
|
||||
Sistem Verifikasi Remunerasi<br>Universitas Tanjungpura
|
||||
</p>
|
||||
|
||||
<div class="mt-4 inline-flex items-center gap-1.5 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1 rounded-full text-[11px] text-blue-50 font-medium shadow-2xs">
|
||||
<i class="fas fa-shield-halved text-emerald-300 text-[10px]"></i>
|
||||
<span>Single Sign-On Terintegrasi</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="relative z-10 text-center md:text-left text-[10px] text-blue-200/70 border-t border-white/10 pt-3">
|
||||
© {{ date('Y') }} Universitas Tanjungpura
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-section">
|
||||
<div class="login-header">
|
||||
<h2>Selamat Datang</h2>
|
||||
<p>Gunakan akun Portal Untan Anda untuk masuk</p>
|
||||
</div>
|
||||
<!-- Sisi Kanan: Single Sign-On Action (7 Kolom) -->
|
||||
<div class="md:col-span-7 p-6 sm:p-8 flex flex-col justify-center bg-white relative">
|
||||
<div class="max-w-[340px] w-full mx-auto">
|
||||
<div class="mb-6">
|
||||
<h2 class="text-xl sm:text-2xl font-black text-slate-900 tracking-tight mb-1">
|
||||
Selamat Datang
|
||||
</h2>
|
||||
<p class="text-xs sm:text-sm text-slate-500 font-medium">
|
||||
Gunakan akun resmi Portal Untan Anda untuk masuk ke sistem
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<a href="https://portal.untan.ac.id/login?next={{ urlencode(url('/dashboard')) }}"
|
||||
class="btn-portal">
|
||||
<i class="fas fa-university fa-lg"></i>
|
||||
Masuk dengan Portal Untan
|
||||
</a>
|
||||
<div class="space-y-4">
|
||||
<a href="https://portal.untan.ac.id/login?next={{ urlencode(url('/dashboard')) }}"
|
||||
class="w-full py-2.5 px-4 text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-700 active:bg-blue-800 rounded-lg shadow-md shadow-blue-600/30 hover:shadow-blue-600/40 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 flex items-center justify-center gap-2.5 group">
|
||||
<i class="fas fa-university text-sm transition-transform group-hover:scale-110"></i>
|
||||
<span>Masuk dengan Portal Untan</span>
|
||||
</a>
|
||||
|
||||
<div class="sso-info">
|
||||
<p>
|
||||
<i class="fas fa-info-circle"></i>
|
||||
Anda akan diarahkan ke <strong>portal.untan.ac.id</strong> untuk login
|
||||
menggunakan akun Google <strong>@untan.ac.id</strong>
|
||||
</p>
|
||||
<div class="rounded-xl bg-blue-50/70 border border-blue-200/80 p-3.5 text-xs text-slate-600 leading-relaxed flex items-start gap-2.5">
|
||||
<i class="fas fa-circle-info text-blue-600 text-sm mt-0.5 shrink-0"></i>
|
||||
<div>
|
||||
Anda akan diarahkan secara aman ke <strong class="text-blue-900 font-bold">portal.untan.ac.id</strong> untuk proses autentikasi menggunakan akun resmi Google <strong class="text-blue-900 font-bold">@untan.ac.id</strong>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.min.js"></script>
|
||||
<script>
|
||||
function showInfo(title, text) {
|
||||
new Notify({ status: 'info', title, text, effect: 'fade', autoclose: true, autotimeout: 5000, position: 'right top' });
|
||||
new Notify({
|
||||
status: 'info',
|
||||
title,
|
||||
text,
|
||||
effect: 'fade',
|
||||
autoclose: true,
|
||||
autotimeout: 5000,
|
||||
position: 'right top'
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('load', function () {
|
||||
const wrapper = document.querySelector('.login-wrapper');
|
||||
wrapper.style.opacity = '0';
|
||||
wrapper.style.transform = 'translateY(30px)';
|
||||
setTimeout(() => {
|
||||
wrapper.style.transition = 'all 0.8s ease';
|
||||
wrapper.style.opacity = '1';
|
||||
wrapper.style.transform = 'translateY(0)';
|
||||
}, 100);
|
||||
});
|
||||
|
||||
@if (session('info'))
|
||||
showInfo('Informasi', '{{ session('info') }}');
|
||||
@endif
|
||||
@if (session('error'))
|
||||
new Notify({ status: 'error', title: 'Error', text: '{{ session('error') }}', effect: 'fade', autoclose: true, autotimeout: 5000, position: 'right top' });
|
||||
@endif
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -6,456 +6,295 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>Login | {{ config('app.name') }}</title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
|
||||
|
||||
<!-- Font & Icons -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
|
||||
rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
|
||||
|
||||
<!-- CSS Notifikasi -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
|
||||
|
||||
<!-- App Vite (Tailwind CSS v4 & High-Legibility Tokens) -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
<style>
|
||||
body {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: "Inter", sans-serif;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.login-wrapper {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
transition: transform 0.3s ease;
|
||||
border: 1px solid rgba(59, 130, 246, 0.1);
|
||||
display: flex;
|
||||
min-height: 600px;
|
||||
}
|
||||
|
||||
.login-wrapper:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 25px 50px rgba(30, 58, 138, 0.4);
|
||||
}
|
||||
|
||||
/* Image Section */
|
||||
.image-section {
|
||||
flex: 1;
|
||||
background: linear-gradient(45deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px;
|
||||
color: white;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.image-section::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.image-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image-content .icon {
|
||||
font-size: 5rem;
|
||||
margin-bottom: 30px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto 30px;
|
||||
backdrop-filter: blur(10px);
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.image-content h1 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.image-content p {
|
||||
font-size: 1.1rem;
|
||||
opacity: 0.9;
|
||||
line-height: 1.6;
|
||||
max-width: 300px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.floating-elements {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.floating-elements::before,
|
||||
.floating-elements::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 50%;
|
||||
animation: float 6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.floating-elements::before {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
top: 10%;
|
||||
right: -50px;
|
||||
animation-delay: 0s;
|
||||
}
|
||||
|
||||
.floating-elements::after {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
bottom: 20%;
|
||||
left: -30px;
|
||||
animation-delay: 3s;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0px);
|
||||
/* Modern Micro-Animations & Glow Effects */
|
||||
@keyframes float-slow {
|
||||
0%, 100% {
|
||||
transform: translateY(0px) rotate(0deg);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: translateY(-20px);
|
||||
transform: translateY(-10px) rotate(1deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Form Section */
|
||||
.form-section {
|
||||
flex: 1;
|
||||
padding: 50px 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.login-header h2 {
|
||||
color: #1e3a8a;
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.login-header p {
|
||||
color: #3b82f6;
|
||||
font-size: 14px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.form-floating {
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.form-floating input {
|
||||
border: 2px solid #dbeafe;
|
||||
border-radius: 12px;
|
||||
padding: 15px 20px;
|
||||
transition: all 0.3s ease;
|
||||
background: #fafbfc;
|
||||
}
|
||||
|
||||
.form-floating input:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
|
||||
transform: scale(1.02);
|
||||
background: white;
|
||||
}
|
||||
|
||||
.form-floating label {
|
||||
color: #60a5fa;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.btn-login {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
padding: 15px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.btn-login:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
|
||||
background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
|
||||
}
|
||||
|
||||
.btn-login:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.divider {
|
||||
text-align: center;
|
||||
margin: 25px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.divider::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: #dbeafe;
|
||||
}
|
||||
|
||||
.divider span {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
padding: 0 15px;
|
||||
color: #60a5fa;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.social-login {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.btn-social {
|
||||
flex: 1;
|
||||
padding: 12px;
|
||||
border: 2px solid #dbeafe;
|
||||
border-radius: 12px;
|
||||
background: white;
|
||||
transition: all 0.3s ease;
|
||||
color: #3b82f6;
|
||||
}
|
||||
|
||||
.btn-social:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
|
||||
border-color: #3b82f6;
|
||||
background: #f0f9ff;
|
||||
}
|
||||
|
||||
.password-toggle {
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
cursor: pointer;
|
||||
color: #60a5fa;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.password-toggle:hover {
|
||||
color: #3b82f6;
|
||||
}
|
||||
|
||||
.input-error {
|
||||
border-color: #dc3545 !important;
|
||||
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 992px) {
|
||||
.login-wrapper {
|
||||
max-width: 800px;
|
||||
@keyframes pulse-glow {
|
||||
0%, 100% {
|
||||
opacity: 0.35;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.image-content h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.image-content .icon {
|
||||
font-size: 4rem;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
50% {
|
||||
opacity: 0.65;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
body {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.login-wrapper {
|
||||
flex-direction: column;
|
||||
max-width: 500px;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.image-section {
|
||||
padding: 30px 20px;
|
||||
min-height: 250px;
|
||||
}
|
||||
|
||||
.image-content h1 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.image-content .icon {
|
||||
font-size: 3rem;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.image-content p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
padding: 30px 25px;
|
||||
}
|
||||
|
||||
.login-header h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.login-wrapper {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.image-section {
|
||||
padding: 25px 15px;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
padding: 25px 20px;
|
||||
}
|
||||
|
||||
.image-content h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.login-header h2 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Loading Animation */
|
||||
@keyframes spin {
|
||||
@keyframes card-entrance {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
opacity: 0;
|
||||
transform: translateY(28px) scale(0.98);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
.fa-spinner {
|
||||
animation: spin 1s linear infinite;
|
||||
@keyframes shake {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
20%, 60% { transform: translateX(-5px); }
|
||||
40%, 80% { transform: translateX(5px); }
|
||||
}
|
||||
|
||||
.animate-float-slow {
|
||||
animation: float-slow 6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.animate-pulse-glow {
|
||||
animation: pulse-glow 8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.animate-card-entrance {
|
||||
animation: card-entrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||
}
|
||||
|
||||
/* Glassmorphism */
|
||||
.glass-card {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
}
|
||||
|
||||
/* Slider Captcha Modern Overrides */
|
||||
#slider-captcha-container .slider-captcha-wrapper {
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-captcha-canvas-wrapper {
|
||||
border: 1.5px solid #e2e8f0 !important;
|
||||
border-radius: 14px !important;
|
||||
box-shadow: 0 3px 10px -2px rgba(15, 23, 42, 0.06);
|
||||
overflow: hidden;
|
||||
background: #f8fafc !important;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-control {
|
||||
margin-top: 14px !important;
|
||||
height: 44px !important;
|
||||
background: #f8fafc !important;
|
||||
border: 1.5px solid #e2e8f0 !important;
|
||||
border-radius: 12px !important;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-control:hover {
|
||||
border-color: #93c5fd !important;
|
||||
background: #eff6ff !important;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-track {
|
||||
color: #475569 !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: 600 !important;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-button {
|
||||
width: 44px !important;
|
||||
height: 44px !important;
|
||||
border-radius: 10px !important;
|
||||
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
|
||||
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
|
||||
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s !important;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-button:hover {
|
||||
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45) !important;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-refresh {
|
||||
margin-top: 10px !important;
|
||||
padding: 9px 16px !important;
|
||||
background: #ffffff !important;
|
||||
border: 1.5px solid #e2e8f0 !important;
|
||||
border-radius: 12px !important;
|
||||
color: #2563eb !important;
|
||||
font-weight: 600 !important;
|
||||
font-size: 12.5px !important;
|
||||
transition: all 0.2s ease !important;
|
||||
}
|
||||
|
||||
#slider-captcha-container .slider-refresh:hover {
|
||||
background: #eff6ff !important;
|
||||
border-color: #bfdbfe !important;
|
||||
transform: translateY(-1px);
|
||||
color: #1d4ed8 !important;
|
||||
}
|
||||
|
||||
/* Input error effect */
|
||||
.input-error {
|
||||
border-color: #ef4444 !important;
|
||||
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
|
||||
animation: shake 0.35s ease;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="login-wrapper">
|
||||
<!-- Image Section -->
|
||||
<div class="image-section">
|
||||
<div class="floating-elements"></div>
|
||||
<div class="image-content">
|
||||
<div class="icon">
|
||||
{{-- <i class="fas fa-shield-alt"></i> --}}
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="untan.png" height="80">
|
||||
<body class="min-h-screen bg-slate-950 font-sans text-slate-800 antialiased flex items-center justify-center p-4 sm:p-6 lg:p-8 relative overflow-x-hidden selection:bg-blue-600 selection:text-white">
|
||||
|
||||
<!-- Ambient Glowing Orbs Background -->
|
||||
<div class="fixed inset-0 pointer-events-none overflow-hidden z-0">
|
||||
<!-- Top Left Cyan/Blue Glow -->
|
||||
<div class="absolute -top-40 -left-40 w-96 h-96 sm:w-[520px] sm:h-[520px] bg-blue-600/25 rounded-full blur-3xl animate-pulse-glow"></div>
|
||||
<!-- Bottom Right Indigo/Navy Glow -->
|
||||
<div class="absolute -bottom-40 -right-40 w-96 h-96 sm:w-[580px] sm:h-[580px] bg-indigo-600/20 rounded-full blur-3xl animate-pulse-glow" style="animation-delay: -3s;"></div>
|
||||
<!-- Center Subtle Blue Ambient -->
|
||||
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-80 h-80 bg-blue-500/15 rounded-full blur-3xl"></div>
|
||||
<!-- Grid Pattern Overlay -->
|
||||
<div class="absolute inset-0 bg-[radial-gradient(#334155_1px,transparent_1px)] [background-size:24px_24px] opacity-25"></div>
|
||||
</div>
|
||||
|
||||
<!-- Main Login Card Container (Kompak & Proporsional) -->
|
||||
<div class="w-full max-w-[740px] glass-card rounded-2xl shadow-2xl shadow-blue-950/40 border border-white/20 overflow-hidden relative z-10 animate-card-entrance grid grid-cols-1 md:grid-cols-12 min-h-[480px]">
|
||||
|
||||
<!-- Sisi Kiri: Brand & Visual Hero (5 Kolom) -->
|
||||
<div class="md:col-span-5 relative bg-gradient-to-br from-blue-600 via-blue-700 to-indigo-900 p-6 sm:p-7 flex flex-col justify-between overflow-hidden text-white">
|
||||
<!-- Decorative Vector Background -->
|
||||
<div class="absolute -top-16 -right-16 w-48 h-48 bg-white/10 rounded-full blur-xl pointer-events-none"></div>
|
||||
<div class="absolute -bottom-16 -left-16 w-52 h-52 bg-blue-400/20 rounded-full blur-xl pointer-events-none"></div>
|
||||
<div class="absolute inset-0 bg-[radial-gradient(rgba(255,255,255,0.12)_1px,transparent_1px)] [background-size:16px_16px] pointer-events-none"></div>
|
||||
|
||||
|
||||
<!-- Center Brand Section -->
|
||||
<div class="relative z-10 my-6 sm:my-auto text-center flex flex-col items-center">
|
||||
<!-- Logo Avatar with Floating Micro-animation -->
|
||||
<div class="w-20 h-20 max-w-[80px] max-h-[80px] rounded-2xl bg-white/15 backdrop-blur-md p-3 flex items-center justify-center border border-white/30 shadow-lg shadow-blue-950/20 mb-3 animate-float-slow group shrink-0">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="Logo UNTAN" class="h-full w-full max-h-full max-w-full object-contain filter drop-shadow-md transition-transform duration-300 group-hover:scale-105">
|
||||
</div>
|
||||
<h1>Verifikator</h1>
|
||||
<p>Sistem Verifikasi Remunerasi Universitas Tanjungpura</p>
|
||||
|
||||
<h1 class="text-xl sm:text-2xl font-extrabold tracking-tight mb-1 text-white">Verifikator</h1>
|
||||
<p class="text-xs font-medium text-blue-100/90 leading-relaxed max-w-[200px]">
|
||||
Sistem Verifikasi Remunerasi<br>Universitas Tanjungpura
|
||||
</p>
|
||||
|
||||
<!-- Floating Info Pill -->
|
||||
<div class="mt-4 inline-flex items-center gap-1.5 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1 rounded-full text-[11px] text-blue-50 font-medium shadow-2xs">
|
||||
<i class="fas fa-shield-halved text-emerald-300 text-[10px]"></i>
|
||||
<span>Aman & Terintegrasi</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bottom Footer Note -->
|
||||
<div class="relative z-10 text-center md:text-left text-[10px] text-blue-200/70 border-t border-white/10 pt-3">
|
||||
© {{ date('Y') }} Universitas Tanjungpura
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form Section -->
|
||||
<div class="form-section">
|
||||
<div class="login-header">
|
||||
<h2>Selamat Datang</h2>
|
||||
<p>Silakan masuk ke akun Anda untuk melanjutkan</p>
|
||||
</div>
|
||||
|
||||
<form id="loginForm">
|
||||
<div class="form-floating">
|
||||
<input type="text" class="form-control" id="username" placeholder="Masukkan NIP"
|
||||
name="username">
|
||||
<label for="username"><i class="fas fa-user"></i> NIP</label>
|
||||
<!-- Sisi Kanan: Form Login (7 Kolom) -->
|
||||
<div class="md:col-span-7 p-6 sm:p-7 flex flex-col justify-center bg-white relative">
|
||||
<div class="max-w-[320px] w-full mx-auto">
|
||||
<!-- Form Header -->
|
||||
<div class="mb-4">
|
||||
<h2 class="text-xl sm:text-2xl font-black text-slate-900 tracking-tight mb-1">
|
||||
Selamat Datang
|
||||
</h2>
|
||||
<p class="text-xs text-slate-500 font-medium">
|
||||
Silakan masuk ke akun Anda untuk melanjutkan
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="form-floating position-relative">
|
||||
<input type="password" class="form-control" id="password" placeholder="Masukkan Password"
|
||||
name="password">
|
||||
<label for="password"><i class="fas fa-lock"></i> Password</label>
|
||||
<span class="password-toggle" onclick="togglePassword()">
|
||||
<i class="fas fa-eye" id="eyeIcon"></i>
|
||||
</span>
|
||||
<!-- Auth Form -->
|
||||
<form id="loginForm" class="space-y-3">
|
||||
<!-- Input NIP -->
|
||||
<div>
|
||||
<label for="username" class="block text-[11px] font-bold text-slate-600 uppercase tracking-wider mb-1">
|
||||
NIP Pegawai
|
||||
</label>
|
||||
<div class="relative rounded-lg shadow-2xs">
|
||||
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-slate-400">
|
||||
<i class="fas fa-id-badge text-xs"></i>
|
||||
</div>
|
||||
<input type="text" id="username" name="username" placeholder="Masukkan 18 Digit NIP"
|
||||
class="w-full pl-9 pr-3 py-2 text-xs sm:text-sm bg-slate-50/90 border border-slate-200 rounded-lg font-medium text-slate-800 placeholder-slate-400 focus:bg-white focus:outline-none focus:border-blue-600 focus:ring-3 focus:ring-blue-100 transition-all duration-200">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Input Password -->
|
||||
<div>
|
||||
<label for="password" class="block text-[11px] font-bold text-slate-600 uppercase tracking-wider mb-1">
|
||||
Password
|
||||
</label>
|
||||
<div class="relative rounded-lg shadow-2xs">
|
||||
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-slate-400">
|
||||
<i class="fas fa-lock text-xs"></i>
|
||||
</div>
|
||||
<input type="password" id="password" name="password" placeholder="Masukkan Password Akun"
|
||||
class="w-full pl-9 pr-9 py-2 text-xs sm:text-sm bg-slate-50/90 border border-slate-200 rounded-lg font-medium text-slate-800 placeholder-slate-400 focus:bg-white focus:outline-none focus:border-blue-600 focus:ring-3 focus:ring-blue-100 transition-all duration-200">
|
||||
<button type="button" onclick="togglePassword()" class="absolute inset-y-0 right-0 pr-3 flex items-center justify-center bg-transparent border-none text-slate-400 hover:text-blue-600 transition cursor-pointer focus:outline-none" title="Lihat / Sembunyikan Password">
|
||||
<i class="fas fa-eye text-xs" id="eyeIcon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Slider Captcha Container -->
|
||||
<div class="pt-0.5">
|
||||
<div id="slider-captcha-container" class="w-full overflow-hidden"></div>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Masuk -->
|
||||
<div class="pt-1">
|
||||
<button type="submit" id="loginButton"
|
||||
class="btn-login w-full py-2.5 px-4 text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-700 active:bg-blue-800 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-blue-600 rounded-lg shadow-md shadow-blue-600/30 hover:shadow-blue-600/40 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 flex items-center justify-center gap-2">
|
||||
<i class="fas fa-right-to-bracket text-xs"></i>
|
||||
<span>Masuk ke Sistem</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- Divider Atau -->
|
||||
<div class="relative my-4">
|
||||
<div class="absolute inset-0 flex items-center">
|
||||
<div class="w-full border-t border-slate-200"></div>
|
||||
</div>
|
||||
<div class="relative flex justify-center text-[11px]">
|
||||
<span class="px-2.5 bg-white text-slate-400 font-semibold uppercase tracking-wider">
|
||||
atau masuk dengan
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Slider Captcha -->
|
||||
<div id="slider-captcha-container" style="margin-bottom: 20px; width: 100%;"></div>
|
||||
|
||||
<button type="submit" class="btn btn-login btn-primary w-100" id="loginButton">
|
||||
<i class="fas fa-sign-in-alt"></i> Masuk
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="divider">
|
||||
<span>atau</span>
|
||||
</div>
|
||||
|
||||
<div class="social-login">
|
||||
<button type="button" class="btn btn-social btn-google" onclick="loginWithGoogle()">
|
||||
<i class="fab fa-google"></i> Google
|
||||
</button>
|
||||
<!-- Single Sign On / Google Button -->
|
||||
<div>
|
||||
<button type="button" onclick="loginWithGoogle()"
|
||||
class="w-full py-2 px-3 text-xs font-bold text-slate-700 bg-white hover:bg-slate-50 active:bg-slate-100 border border-slate-200 hover:border-slate-300 rounded-lg shadow-2xs hover:shadow-xs transition-all duration-200 flex items-center justify-center gap-2 group">
|
||||
<svg class="w-3.5 h-3.5" viewBox="0 0 24 24">
|
||||
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" />
|
||||
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" />
|
||||
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z" />
|
||||
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z" />
|
||||
</svg>
|
||||
<span class="group-hover:text-blue-600 transition-colors">Akun Google UNTAN</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- Scripts -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||||
|
||||
<!-- JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.min.js"></script>
|
||||
|
||||
<!-- Slider Captcha -->
|
||||
<script src="{{ asset('assets/js/slider-captcha.js') }}?v={{ time() }}"></script>
|
||||
|
||||
<script>
|
||||
@@ -486,7 +325,6 @@
|
||||
new Notify(config);
|
||||
}
|
||||
|
||||
// Fungsi khusus untuk notifikasi sukses
|
||||
function showSuccess(title = 'Success', text = 'Operation completed successfully') {
|
||||
showNotification({
|
||||
status: 'success',
|
||||
@@ -495,7 +333,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Fungsi khusus untuk notifikasi error
|
||||
function showError(title = 'Error', text = 'An error occurred') {
|
||||
showNotification({
|
||||
status: 'error',
|
||||
@@ -505,7 +342,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Fungsi khusus untuk notifikasi warning
|
||||
function showWarning(title = 'Warning', text = 'Please check your input') {
|
||||
showNotification({
|
||||
status: 'warning',
|
||||
@@ -514,7 +350,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Fungsi khusus untuk notifikasi info
|
||||
function showInfo(title = 'Information', text = 'Here is some information') {
|
||||
showNotification({
|
||||
status: 'info',
|
||||
@@ -523,12 +358,10 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Fungsi untuk menangani error dari jQuery AJAX
|
||||
function handleAjaxError(xhr, status, error) {
|
||||
let errorMessage = 'An unexpected error occurred';
|
||||
let errorTitle = 'Error';
|
||||
|
||||
// Fungsi helper untuk extract message dari response
|
||||
function getMessageFromResponse(xhr) {
|
||||
try {
|
||||
const responseData = JSON.parse(xhr.responseText);
|
||||
@@ -538,7 +371,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Parse error berdasarkan status code
|
||||
switch (xhr.status) {
|
||||
case 400:
|
||||
errorTitle = 'Bad Request';
|
||||
@@ -558,7 +390,6 @@
|
||||
break;
|
||||
case 422:
|
||||
errorTitle = 'Validation Error';
|
||||
// Coba parse validation errors dari response
|
||||
try {
|
||||
const responseData = JSON.parse(xhr.responseText);
|
||||
if (responseData.errors) {
|
||||
@@ -578,15 +409,10 @@
|
||||
errorMessage = getMessageFromResponse(xhr) || 'Internal server error. Please try again later.';
|
||||
break;
|
||||
default:
|
||||
// Coba parse pesan error dari response
|
||||
try {
|
||||
const responseData = JSON.parse(xhr.responseText);
|
||||
if (responseData.message) {
|
||||
errorMessage = responseData.message;
|
||||
}
|
||||
if (responseData.title) {
|
||||
errorTitle = responseData.title;
|
||||
}
|
||||
if (responseData.message) errorMessage = responseData.message;
|
||||
if (responseData.title) errorTitle = responseData.title;
|
||||
} catch (e) {
|
||||
errorMessage = getMessageFromResponse(xhr) || `Error ${xhr.status}: ${error}`;
|
||||
}
|
||||
@@ -594,17 +420,14 @@
|
||||
showError(errorTitle, errorMessage);
|
||||
}
|
||||
|
||||
// Fungsi untuk reset form error state
|
||||
function resetFormErrors() {
|
||||
$('.form-control').removeClass('input-error');
|
||||
$('input').removeClass('input-error');
|
||||
}
|
||||
|
||||
// Fungsi untuk highlight field error
|
||||
function highlightFieldError(fieldName) {
|
||||
$(`#${fieldName}`).addClass('input-error');
|
||||
}
|
||||
|
||||
// Fungsi toggle password
|
||||
function togglePassword() {
|
||||
const passwordInput = document.getElementById('password');
|
||||
const eyeIcon = document.getElementById('eyeIcon');
|
||||
@@ -620,53 +443,39 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Setup CSRF token untuk Laravel
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
}
|
||||
});
|
||||
|
||||
// Initialize Slider Captcha
|
||||
let sliderCaptcha;
|
||||
|
||||
// Event handler untuk form login
|
||||
$(document).ready(function() {
|
||||
// Get container width for responsive captcha
|
||||
const containerWidth = $('#loginForm').width();
|
||||
const containerWidth = Math.min($('#loginForm').width() || 310, 310);
|
||||
|
||||
// Initialize slider captcha
|
||||
sliderCaptcha = new SliderCaptcha({
|
||||
container: '#slider-captcha-container',
|
||||
width: containerWidth || 400,
|
||||
height: 150,
|
||||
width: containerWidth,
|
||||
height: 145,
|
||||
onSuccess: function(token) {
|
||||
console.log('Captcha verified:', token);
|
||||
// Enable login button
|
||||
$('#loginButton').prop('disabled', false);
|
||||
},
|
||||
onFail: function() {
|
||||
console.log('Captcha verification failed');
|
||||
// Keep login button disabled
|
||||
$('#loginButton').prop('disabled', true);
|
||||
}
|
||||
});
|
||||
|
||||
// Disable login button initially
|
||||
$('#loginButton').prop('disabled', true);
|
||||
|
||||
$('#loginForm').on('submit', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
// Reset error states
|
||||
resetFormErrors();
|
||||
|
||||
// Ambil data form
|
||||
const formData = new FormData(this);
|
||||
const username = formData.get('username');
|
||||
const password = formData.get('password');
|
||||
|
||||
// Validasi client-side
|
||||
if (!username) {
|
||||
showError('Validation Error', 'NIP tidak boleh kosong');
|
||||
highlightFieldError('username');
|
||||
@@ -679,22 +488,18 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// Check captcha verification
|
||||
if (!sliderCaptcha.isVerified()) {
|
||||
showError('Validation Error', 'Silakan selesaikan verifikasi captcha terlebih dahulu');
|
||||
return;
|
||||
}
|
||||
|
||||
// Add captcha token to form data
|
||||
formData.append('captcha_token', sliderCaptcha.getToken());
|
||||
|
||||
// Ubah tombol menjadi loading
|
||||
const loginBtn = $('.btn-login');
|
||||
const originalBtnText = loginBtn.html();
|
||||
const loginBtn = $('#loginButton');
|
||||
const originalHtml = loginBtn.html();
|
||||
loginBtn.html('<i class="fas fa-spinner fa-spin"></i> Memproses...');
|
||||
loginBtn.prop('disabled', true);
|
||||
|
||||
// Kirim request AJAX
|
||||
$.ajax({
|
||||
url: "{{ route('authenticated') }}",
|
||||
method: 'POST',
|
||||
@@ -702,22 +507,17 @@
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function(response, status, xhr) {
|
||||
// Reset tombol
|
||||
loginBtn.html(originalBtnText);
|
||||
loginBtn.html(originalHtml);
|
||||
loginBtn.prop('disabled', false);
|
||||
|
||||
// Handle JSON response
|
||||
if (response.success) {
|
||||
showSuccess(
|
||||
'Login Berhasil',
|
||||
response.message ||
|
||||
'Selamat datang! Anda akan diarahkan ke dashboard.'
|
||||
response.message || 'Selamat datang! Anda akan diarahkan ke dashboard.'
|
||||
);
|
||||
|
||||
// Redirect setelah 1.5 detik
|
||||
setTimeout(function() {
|
||||
window.location.href = response.redirect;
|
||||
}, 2000);
|
||||
}, 1500);
|
||||
} else {
|
||||
showError(
|
||||
'Login Gagal',
|
||||
@@ -726,14 +526,10 @@
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
// Reset tombol
|
||||
loginBtn.html(originalBtnText);
|
||||
loginBtn.html(originalHtml);
|
||||
loginBtn.prop('disabled', false);
|
||||
|
||||
// Handle AJAX error
|
||||
handleAjaxError(xhr, status, error);
|
||||
|
||||
// Highlight field yang error untuk 422 (validation)
|
||||
if (xhr.status === 422) {
|
||||
try {
|
||||
const responseData = JSON.parse(xhr.responseText);
|
||||
@@ -742,16 +538,13 @@
|
||||
highlightFieldError(field);
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
// Ignore parsing error
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Remove error class when user types
|
||||
$('.form-control').on('input', function() {
|
||||
$('input').on('input', function() {
|
||||
$(this).removeClass('input-error');
|
||||
});
|
||||
});
|
||||
@@ -760,20 +553,6 @@
|
||||
window.location.href = "{{ route('auth.google') }}";
|
||||
}
|
||||
|
||||
// Animasi saat halaman dimuat
|
||||
window.addEventListener('load', function() {
|
||||
const container = document.querySelector('.login-wrapper');
|
||||
container.style.opacity = '0';
|
||||
container.style.transform = 'translateY(30px)';
|
||||
|
||||
setTimeout(() => {
|
||||
container.style.transition = 'all 0.8s ease';
|
||||
container.style.opacity = '1';
|
||||
container.style.transform = 'translateY(0)';
|
||||
}, 100);
|
||||
});
|
||||
|
||||
// Flash Message Alert dari Session
|
||||
@if (session('error'))
|
||||
showError('Akses Ditolak', '{{ session('error') }}');
|
||||
@endif
|
||||
|
||||
@@ -8,89 +8,138 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row g-3">
|
||||
<div class="col-sm">
|
||||
<div class="card border border-primary">
|
||||
<div class="card-body py-2 px-3">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="me-2">
|
||||
<i class="uil-clipboard-alt text-primary" style="font-size: 40px;"></i>
|
||||
</div>
|
||||
<div>
|
||||
<p class="mb-0" style="font-size: 13px; font-weight:bold">Total Penunjang <br>
|
||||
<span class="mb-0 count-up" data-target="{{ $penunjangStats['total'] }}" style="font-size: 32px; font-weight: bold;">0</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Grid 5 KPI Stat Cards (Kompak, Rapi & Elegan) -->
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-5 gap-3 mb-3.5">
|
||||
<!-- Card 1: Total Penunjang -->
|
||||
<div class="dash-stat-card bg-white rounded-xl p-3.5 border border-slate-200/90 shadow-2xs relative overflow-hidden dash-anim-in dash-delay-1">
|
||||
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-blue-500 to-indigo-600"></div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="dash-stat-icon w-8 h-8 rounded-lg bg-blue-50 border border-blue-100 flex items-center justify-center text-blue-600">
|
||||
<i class="uil-clipboard-alt text-lg"></i>
|
||||
</div>
|
||||
<span class="text-[10px] font-extrabold uppercase tracking-wider text-blue-700 bg-blue-50 px-2 py-0.5 rounded-full border border-blue-100">
|
||||
Total
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-2.5">
|
||||
<div class="text-2xl font-black text-slate-900 tracking-tight leading-none count-up" data-target="{{ $penunjangStats['total'] }}">0</div>
|
||||
<div class="text-[10.5px] font-bold text-slate-500 mt-1 uppercase tracking-wider">Total Penunjang</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm">
|
||||
<div class="card border border-success">
|
||||
<div class="card-body py-2 px-3">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="me-2">
|
||||
<i class="uil-check-circle text-success" style="font-size: 40px;"></i>
|
||||
</div>
|
||||
<div>
|
||||
<p class="mb-0" style="font-size: 13px; font-weight:bold">Penunjang Diterima <br>
|
||||
<span class="mb-0 count-up" data-target="{{ $penunjangStats['diterima'] }}" style="font-size: 32px; font-weight: bold;">0</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Card 2: Penunjang Diterima -->
|
||||
<div class="dash-stat-card bg-white rounded-xl p-3.5 border border-slate-200/90 shadow-2xs relative overflow-hidden dash-anim-in dash-delay-2">
|
||||
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-emerald-500 to-teal-600"></div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="dash-stat-icon w-8 h-8 rounded-lg bg-emerald-50 border border-emerald-100 flex items-center justify-center text-emerald-600">
|
||||
<i class="uil-check-circle text-lg"></i>
|
||||
</div>
|
||||
<span class="text-[10px] font-extrabold uppercase tracking-wider text-emerald-700 bg-emerald-50 px-2 py-0.5 rounded-full border border-emerald-200">
|
||||
Diterima
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-2.5">
|
||||
<div class="text-2xl font-black text-emerald-700 tracking-tight leading-none count-up" data-target="{{ $penunjangStats['diterima'] }}">0</div>
|
||||
<div class="text-[10.5px] font-bold text-slate-500 mt-1 uppercase tracking-wider">Penunjang Diterima</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm">
|
||||
<div class="card border border-danger">
|
||||
<div class="card-body py-2 px-3">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="me-2">
|
||||
<i class="uil-times-circle text-danger" style="font-size: 40px;"></i>
|
||||
</div>
|
||||
<div>
|
||||
<p class="mb-0" style="font-size: 13px; font-weight:bold">Penunjang Ditolak <br>
|
||||
<span class="mb-0 count-up" data-target="{{ $penunjangStats['ditolak'] }}" style="font-size: 32px; font-weight: bold;">0</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Card 3: Penunjang Ditolak -->
|
||||
<div class="dash-stat-card bg-white rounded-xl p-3.5 border border-slate-200/90 shadow-2xs relative overflow-hidden dash-anim-in dash-delay-3">
|
||||
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-rose-500 to-red-600"></div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="dash-stat-icon w-8 h-8 rounded-lg bg-rose-50 border border-rose-100 flex items-center justify-center text-rose-600">
|
||||
<i class="uil-times-circle text-lg"></i>
|
||||
</div>
|
||||
<span class="text-[10px] font-extrabold uppercase tracking-wider text-rose-700 bg-rose-50 px-2 py-0.5 rounded-full border border-rose-200">
|
||||
Ditolak
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-2.5">
|
||||
<div class="text-2xl font-black text-rose-700 tracking-tight leading-none count-up" data-target="{{ $penunjangStats['ditolak'] }}">0</div>
|
||||
<div class="text-[10.5px] font-bold text-slate-500 mt-1 uppercase tracking-wider">Penunjang Ditolak</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm">
|
||||
<div class="card border border-warning">
|
||||
<div class="card-body py-2 px-3">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="me-2">
|
||||
<i class="uil-clock text-warning" style="font-size: 40px;"></i>
|
||||
</div>
|
||||
<div>
|
||||
<p class="mb-0" style="font-size: 13px; font-weight:bold">Penunjang Diajukan <br>
|
||||
<span class="mb-0 count-up" data-target="{{ $penunjangStats['diajukan'] }}" style="font-size: 32px; font-weight: bold;">0</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Card 4: Penunjang Diajukan -->
|
||||
<div class="dash-stat-card bg-white rounded-xl p-3.5 border border-slate-200/90 shadow-2xs relative overflow-hidden dash-anim-in dash-delay-4">
|
||||
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-amber-500 to-yellow-600"></div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="dash-stat-icon w-8 h-8 rounded-lg bg-amber-50 border border-amber-100 flex items-center justify-center text-amber-600">
|
||||
<i class="uil-clock text-lg"></i>
|
||||
</div>
|
||||
<span class="text-[10px] font-extrabold uppercase tracking-wider text-amber-700 bg-amber-50 px-2 py-0.5 rounded-full border border-amber-200">
|
||||
Diajukan
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-2.5">
|
||||
<div class="text-2xl font-black text-amber-700 tracking-tight leading-none count-up" data-target="{{ $penunjangStats['diajukan'] }}">0</div>
|
||||
<div class="text-[10.5px] font-bold text-slate-500 mt-1 uppercase tracking-wider">Penunjang Diajukan</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm">
|
||||
<div class="card border border-secondary">
|
||||
<div class="card-body py-2 px-3">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="me-2">
|
||||
<i class="uil-file-question-alt text-secondary" style="font-size: 40px;"></i>
|
||||
</div>
|
||||
<div>
|
||||
<p class="mb-0" style="font-size: 13px; font-weight:bold">Penunjang Belum Diajukan <br>
|
||||
<span class="mb-0 count-up" data-target="{{ $penunjangStats['belum_diajukan'] }}" style="font-size: 32px; font-weight: bold;">0</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Card 5: Belum Diajukan -->
|
||||
<div class="dash-stat-card bg-white rounded-xl p-3.5 border border-slate-200/90 shadow-2xs relative overflow-hidden dash-anim-in dash-delay-5">
|
||||
<div class="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-slate-400 to-slate-600"></div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="dash-stat-icon w-8 h-8 rounded-lg bg-slate-100 border border-slate-200 flex items-center justify-center text-slate-600">
|
||||
<i class="uil-file-question-alt text-lg"></i>
|
||||
</div>
|
||||
<span class="text-[10px] font-extrabold uppercase tracking-wider text-slate-700 bg-slate-100 px-2 py-0.5 rounded-full border border-slate-200">
|
||||
Draft
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-2.5">
|
||||
<div class="text-2xl font-black text-slate-800 tracking-tight leading-none count-up" data-target="{{ $penunjangStats['belum_diajukan'] }}">0</div>
|
||||
<div class="text-[10.5px] font-bold text-slate-500 mt-1 uppercase tracking-wider">Belum Diajukan</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Section Panduan Alur Verifikasi (Padding Vertikal Ramping & Pas) -->
|
||||
<div class="bg-white rounded-xl px-4 sm:px-5 py-3 sm:py-3.5 border border-slate-200/90 shadow-2xs dash-anim-in">
|
||||
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between pb-2.5 border-b border-slate-100 gap-1.5">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<div class="w-7 h-7 rounded-lg bg-blue-50 border border-blue-100 flex items-center justify-center text-blue-600 shrink-0">
|
||||
<i class="mdi mdi-clipboard-check-outline text-base"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-sm font-extrabold text-slate-900 leading-tight">Alur Pelaksanaan Verifikasi</h3>
|
||||
<p class="text-[11px] text-slate-500 font-medium leading-none mt-0.5">Panduan ringkas bagi verifikator remunerasi Universitas Tanjungpura</p>
|
||||
</div>
|
||||
</div>
|
||||
<span class="inline-flex items-center gap-1.5 text-[10.5px] font-bold text-blue-700 bg-blue-50 px-2.5 py-0.5 rounded-full border border-blue-100 self-start sm:self-auto">
|
||||
<i class="mdi mdi-shield-check-outline"></i> Standar UNTAN
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-3 mt-2.5">
|
||||
<div class="dash-step-card bg-slate-50/70 hover:bg-white rounded-lg px-3.5 py-2.5 border border-slate-200/80 shadow-2xs transition">
|
||||
<div class="flex items-center gap-2 mb-1">
|
||||
<span class="dash-step-number w-5 h-5 rounded-full bg-blue-600 text-white flex items-center justify-center text-[10px] font-black shrink-0">1</span>
|
||||
<span class="text-[11.5px] font-black uppercase tracking-wider text-blue-800">Periksa Bukti</span>
|
||||
</div>
|
||||
<p class="text-[11.5px] text-slate-600 leading-relaxed font-normal m-0">
|
||||
Periksa kelengkapan berkas bukti dukung pada menu SK, Penunjang, atau Tri Dharma yang diajukan civitas akademika.
|
||||
</p>
|
||||
</div>
|
||||
<div class="dash-step-card bg-slate-50/70 hover:bg-white rounded-xl px-3.5 py-2.5 border border-slate-200/80 shadow-2xs transition">
|
||||
<div class="flex items-center gap-2 mb-1">
|
||||
<span class="dash-step-number w-5 h-5 rounded-full bg-indigo-600 text-white flex items-center justify-center text-[10px] font-black shrink-0">2</span>
|
||||
<span class="text-[11.5px] font-black uppercase tracking-wider text-indigo-800">Kesesuaian Rubrik</span>
|
||||
</div>
|
||||
<p class="text-[11.5px] text-slate-600 leading-relaxed font-normal m-0">
|
||||
Validasi kesesuaian uraian kegiatan dengan aturan rubrik remunerasi dan batas maksimal poin yang ditetapkan.
|
||||
</p>
|
||||
</div>
|
||||
<div class="dash-step-card bg-slate-50/70 hover:bg-white rounded-xl px-3.5 py-2.5 border border-slate-200/80 shadow-2xs transition">
|
||||
<div class="flex items-center gap-2 mb-1">
|
||||
<span class="dash-step-number w-5 h-5 rounded-full bg-emerald-600 text-white flex items-center justify-center text-[10px] font-black shrink-0">3</span>
|
||||
<span class="text-[11.5px] font-black uppercase tracking-wider text-emerald-800">Status & Catatan</span>
|
||||
</div>
|
||||
<p class="text-[11.5px] text-slate-600 leading-relaxed font-normal m-0">
|
||||
Berikan status Diterima, atau berikan catatan yang jelas jika berkas Perlu Perbaikan atau Ditolak.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,21 +25,249 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap" rel="stylesheet">
|
||||
<!-- App Vite (Tailwind CSS v4 & High-Legibility Design System) -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--ct-body-color: #000;
|
||||
--ct-body-color-rgb: 0, 0, 0;
|
||||
--ct-text-muted: #000;
|
||||
--ct-page-title-color: #000;
|
||||
--ct-table-color: #000;
|
||||
--ct-primary: #2563eb !important;
|
||||
--ct-primary-rgb: 37, 99, 235 !important;
|
||||
--ct-component-active-bg: #2563eb !important;
|
||||
--ct-link-color: #2563eb !important;
|
||||
--ct-link-hover-color: #1d4ed8 !important;
|
||||
--ct-btn-primary-bg: #2563eb !important;
|
||||
--ct-btn-primary-border: #2563eb !important;
|
||||
--ct-body-color: #0f172a !important;
|
||||
--ct-body-color-rgb: 15, 23, 42 !important;
|
||||
--ct-text-muted: #475569 !important;
|
||||
--ct-page-title-color: #0f172a !important;
|
||||
--ct-table-color: #0f172a !important;
|
||||
--ct-menu-item: #334155 !important;
|
||||
--ct-menu-item-hover: #2563eb !important;
|
||||
--ct-menu-item-active: #2563eb !important;
|
||||
}
|
||||
|
||||
body[data-leftbar-theme="light"] {
|
||||
--ct-menu-item: #000;
|
||||
body[data-leftbar-theme="light"], body {
|
||||
--ct-primary: #2563eb !important;
|
||||
--ct-component-active-bg: #2563eb !important;
|
||||
--ct-menu-item: #334155 !important;
|
||||
--ct-menu-item-hover: #2563eb !important;
|
||||
--ct-menu-item-active: #2563eb !important;
|
||||
}
|
||||
|
||||
/* Sidebar Section Titles (Kompak, Proporsional & Elegan) */
|
||||
.side-nav .side-nav-title,
|
||||
.side-nav-title,
|
||||
li.side-nav-title {
|
||||
font-size: 11px !important;
|
||||
font-weight: 700 !important;
|
||||
text-transform: uppercase !important;
|
||||
letter-spacing: 0.08em !important;
|
||||
color: #94a3b8 !important;
|
||||
padding: 16px 12px 6px 12px !important;
|
||||
margin: 0 !important;
|
||||
pointer-events: none !important;
|
||||
cursor: default !important;
|
||||
line-height: 1.2 !important;
|
||||
list-style: none !important;
|
||||
}
|
||||
|
||||
body.sidebar-collapsed .side-nav .side-nav-title,
|
||||
body.sidebar-collapsed .side-nav-title {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Modern Sidebar Toggle Button (Button Garis 3) */
|
||||
#sidebar-toggle-btn {
|
||||
background-color: #f8fafc !important;
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
border-radius: 10px !important;
|
||||
color: #475569 !important;
|
||||
width: 38px !important;
|
||||
height: 38px !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
||||
#sidebar-toggle-btn:hover {
|
||||
background-color: #2563eb !important;
|
||||
border-color: #2563eb !important;
|
||||
color: #ffffff !important;
|
||||
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
|
||||
transform: translateY(-1px) !important;
|
||||
}
|
||||
|
||||
#sidebar-toggle-btn:active {
|
||||
transform: scale(0.96) !important;
|
||||
}
|
||||
|
||||
/* Modern Topbar User Profile Pill */
|
||||
#user-menu-btn {
|
||||
background-color: #f8fafc !important;
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
border-radius: 9999px !important;
|
||||
padding: 3px 12px 3px 6px !important;
|
||||
height: 38px !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
gap: 8px !important;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
|
||||
transition: all 0.2s ease !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
||||
#user-menu-btn:hover {
|
||||
background-color: #eff6ff !important;
|
||||
border-color: #bfdbfe !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;
|
||||
padding: 5px 6px !important;
|
||||
margin: 4px 0 6px 0 !important;
|
||||
background-color: #f8fafc !important;
|
||||
border-radius: 10px !important;
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
}
|
||||
|
||||
.side-nav-second-level li {
|
||||
list-style: none !important;
|
||||
margin: 2px 0 !important;
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.side-nav-second-level li a {
|
||||
color: #334155 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
gap: 8px !important;
|
||||
padding: 7px 10px 7px 12px !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: 500 !important;
|
||||
text-decoration: none !important;
|
||||
border-radius: 7px !important;
|
||||
transition: all 0.15s ease-in-out !important;
|
||||
opacity: 1 !important;
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.side-nav-second-level li a i {
|
||||
color: #64748b !important;
|
||||
font-size: 16px !important;
|
||||
width: 18px !important;
|
||||
text-align: center !important;
|
||||
flex-shrink: 0 !important;
|
||||
margin-right: 2px !important;
|
||||
}
|
||||
|
||||
.side-nav-second-level li a:hover:not(.active) {
|
||||
color: #2563eb !important;
|
||||
background-color: #eff6ff !important;
|
||||
}
|
||||
|
||||
.side-nav-second-level li a:hover:not(.active) i {
|
||||
color: #2563eb !important;
|
||||
}
|
||||
|
||||
/* Submenu Item yang Sedang Aktif (Solid Announcement Blue #2563eb & Teks Putih Kontras Tinggi) */
|
||||
.side-nav-second-level li.active > a,
|
||||
.side-nav-second-level li.menuitem-active > a,
|
||||
.side-nav-second-level li.badge-primary-lighten > a,
|
||||
.side-nav-second-level .active.badge-primary-lighten a,
|
||||
.side-nav-second-level li a.active {
|
||||
color: #ffffff !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
font-weight: 600 !important;
|
||||
box-shadow: 0 3px 8px rgba(37, 99, 235, 0.32) !important;
|
||||
}
|
||||
|
||||
.side-nav-second-level li.active > a *,
|
||||
.side-nav-second-level li.menuitem-active > a *,
|
||||
.side-nav-second-level li.badge-primary-lighten > a *,
|
||||
.side-nav-second-level .active.badge-primary-lighten a *,
|
||||
.side-nav-second-level li a.active * {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* Parent Menu Item saat Aktif (Baik saat DIBUKA maupun DITUTUP/COLLAPSED) */
|
||||
.side-nav-item:has(.side-nav-second-level).menuitem-active > .side-nav-link,
|
||||
.side-nav-item:has(.side-nav-second-level).active > .side-nav-link,
|
||||
.side-nav-item.si-sk.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-tri-dharma.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-laporan-kegiatan.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-pengajuan-aktivitas.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-skp.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-pleno-penunjang.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-remunerasi.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-rekapitulasi.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-limit.menuitem-active > .side-nav-link,
|
||||
.side-nav-item.si-rubrik.menuitem-active > .side-nav-link,
|
||||
.side-nav-link.badge-primary-lighten,
|
||||
.side-nav-link[aria-expanded="true"] {
|
||||
background-color: #eff6ff !important;
|
||||
color: #2563eb !important;
|
||||
font-weight: 700 !important;
|
||||
border: 1px solid #bfdbfe !important;
|
||||
}
|
||||
|
||||
.side-nav-item:has(.side-nav-second-level).menuitem-active > .side-nav-link *,
|
||||
.side-nav-item:has(.side-nav-second-level).active > .side-nav-link *,
|
||||
.side-nav-item.si-sk.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-tri-dharma.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-laporan-kegiatan.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-pengajuan-aktivitas.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-skp.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-pleno-penunjang.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-remunerasi.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-rekapitulasi.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-limit.menuitem-active > .side-nav-link *,
|
||||
.side-nav-item.si-rubrik.menuitem-active > .side-nav-link *,
|
||||
.side-nav-link.badge-primary-lighten *,
|
||||
.side-nav-link[aria-expanded="true"] * {
|
||||
color: #2563eb !important;
|
||||
}
|
||||
|
||||
.side-nav .menu-arrow,
|
||||
.side-nav-link .menu-arrow {
|
||||
position: absolute !important;
|
||||
right: 14px !important;
|
||||
top: 50% !important;
|
||||
transform: translateY(-50%) !important;
|
||||
color: #94a3b8 !important;
|
||||
}
|
||||
|
||||
.side-nav-link[aria-expanded="true"] .menu-arrow,
|
||||
.side-nav-item.menuitem-active > .side-nav-link .menu-arrow,
|
||||
.side-nav-link.badge-primary-lighten .menu-arrow {
|
||||
transform: translateY(-50%) rotate(90deg) !important;
|
||||
color: #2563eb !important;
|
||||
}
|
||||
|
||||
/* Menu Single (TIDAK punya submenu) saat Aktif */
|
||||
.side-nav-item:not(:has(.side-nav-second-level)).menuitem-active > .side-nav-link,
|
||||
.side-nav-item:not(:has(.side-nav-second-level)).active > .side-nav-link {
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #ffffff !important;
|
||||
font-weight: 600 !important;
|
||||
border: none !important;
|
||||
box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35) !important;
|
||||
}
|
||||
|
||||
.side-nav-item:not(:has(.side-nav-second-level)).menuitem-active > .side-nav-link *,
|
||||
.side-nav-item:not(:has(.side-nav-second-level)).active > .side-nav-link * {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Inter", sans-serif;
|
||||
font-family: "Plus Jakarta Sans", "Inter", sans-serif;
|
||||
}
|
||||
|
||||
table td,
|
||||
@@ -47,17 +275,55 @@
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__clear {
|
||||
position: relative;
|
||||
z-index: 999;
|
||||
pointer-events: auto !important;
|
||||
margin-right: 35px;
|
||||
margin-top: 2px;
|
||||
color: rgb(185, 185, 185);
|
||||
/* Select2 Universal Styles & Clear Button */
|
||||
.select2-container--default .select2-selection--single {
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.select2-container .select2-selection--single .select2-selection__clear {
|
||||
font-size: 1.4em;
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
padding-right: 50px !important;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__clear {
|
||||
position: absolute !important;
|
||||
right: 28px !important;
|
||||
top: 50% !important;
|
||||
transform: translateY(-50%) !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
width: 18px !important;
|
||||
height: 18px !important;
|
||||
line-height: 16px !important;
|
||||
text-align: center !important;
|
||||
font-size: 15px !important;
|
||||
font-weight: 700 !important;
|
||||
color: #94a3b8 !important;
|
||||
z-index: 10 !important;
|
||||
cursor: pointer !important;
|
||||
pointer-events: auto !important;
|
||||
border-radius: 50% !important;
|
||||
transition: all 0.2s ease !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
|
||||
color: #ef4444 !important;
|
||||
background-color: #fee2e2 !important;
|
||||
transform: translateY(-50%) scale(1.15) !important;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
||||
float: right !important;
|
||||
margin-right: 10px !important;
|
||||
color: #94a3b8 !important;
|
||||
cursor: pointer !important;
|
||||
transition: color 0.15s ease !important;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
|
||||
color: #ef4444 !important;
|
||||
}
|
||||
|
||||
.profile-img {
|
||||
|
||||
@@ -5,12 +5,21 @@
|
||||
@include('layouts.header')
|
||||
@yield('css')
|
||||
<style>
|
||||
/* ===== Styled DataTable (.dt-styled) ===== */
|
||||
.dt-styled td, .dt-styled th {
|
||||
/* ===== Styled DataTable & App Table Headers ===== */
|
||||
.dt-styled td, .dt-styled th,
|
||||
table.dataTable td, table.dataTable th,
|
||||
.table-bordered td, .table-bordered th,
|
||||
.table td, .table th {
|
||||
border-color: #ced4da !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dt-styled thead th,
|
||||
table.dataTable thead th,
|
||||
.table thead th,
|
||||
.tab-content .table thead th,
|
||||
#table-belum-selesai thead th,
|
||||
#table-selesai thead th,
|
||||
.dt-styled thead th.sorting,
|
||||
.dt-styled thead th.sorting_asc,
|
||||
.dt-styled thead th.sorting_desc,
|
||||
@@ -19,10 +28,11 @@
|
||||
.dt-styled thead th.font-monospace,
|
||||
.dt-styled thead th.nip-col,
|
||||
.dt-styled thead th.nominal-cell {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important;
|
||||
background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
white-space: nowrap;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
.dt-styled thead th.sorting:before,
|
||||
@@ -38,6 +48,270 @@
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/* ===== Modern Rounded Pagination ===== */
|
||||
.dataTables_paginate ul.pagination,
|
||||
.dataTables_wrapper .pagination,
|
||||
.pagination {
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
gap: 5px !important;
|
||||
margin: 6px 0 !important;
|
||||
padding: 0 !important;
|
||||
flex-wrap: wrap !important;
|
||||
}
|
||||
|
||||
.dataTables_paginate ul.pagination .page-item,
|
||||
.dataTables_wrapper .pagination .page-item,
|
||||
.pagination .page-item {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.dataTables_paginate ul.pagination .page-link,
|
||||
.dataTables_wrapper .pagination .page-link,
|
||||
.pagination .page-link {
|
||||
border-radius: 8px !important;
|
||||
margin: 0 !important;
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
background-color: #ffffff !important;
|
||||
color: #475569 !important;
|
||||
font-weight: 600 !important;
|
||||
font-size: 13px !important;
|
||||
min-width: 34px !important;
|
||||
height: 34px !important;
|
||||
padding: 0 10px !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
||||
.dataTables_paginate ul.pagination .page-link:hover,
|
||||
.dataTables_wrapper .pagination .page-link:hover,
|
||||
.pagination .page-link:hover {
|
||||
background-color: #f1f5f9 !important;
|
||||
border-color: #cbd5e1 !important;
|
||||
color: #2563eb !important;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
|
||||
}
|
||||
|
||||
.dataTables_paginate ul.pagination .page-item.active .page-link,
|
||||
.dataTables_wrapper .pagination .page-item.active .page-link,
|
||||
.pagination .page-item.active .page-link {
|
||||
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
|
||||
border-color: #2563eb !important;
|
||||
color: #ffffff !important;
|
||||
font-weight: 700 !important;
|
||||
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.dataTables_paginate ul.pagination .page-item.disabled .page-link,
|
||||
.dataTables_wrapper .pagination .page-item.disabled .page-link,
|
||||
.pagination .page-item.disabled .page-link {
|
||||
background-color: #f8fafc !important;
|
||||
border-color: #e2e8f0 !important;
|
||||
color: #94a3b8 !important;
|
||||
opacity: 0.65 !important;
|
||||
cursor: not-allowed !important;
|
||||
transform: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_info {
|
||||
color: #475569 !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: 500 !important;
|
||||
padding-top: 8px !important;
|
||||
}
|
||||
|
||||
/* Nav Pills / Status Tabs & Smooth Switch Animation */
|
||||
@keyframes tabPaneFadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes tabNavActivePulse {
|
||||
0% {
|
||||
transform: scale(0.96);
|
||||
}
|
||||
60% {
|
||||
transform: scale(1.02);
|
||||
}
|
||||
100% {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-pills .nav-link,
|
||||
.nav-tabs .nav-link {
|
||||
transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
cursor: pointer !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-pills .nav-link:active,
|
||||
.nav-tabs .nav-link:active {
|
||||
transform: scale(0.97) !important;
|
||||
}
|
||||
|
||||
.nav-pills .nav-link:hover:not(.active),
|
||||
.nav-tabs .nav-link:hover:not(.active) {
|
||||
background-color: #f1f5f9 !important;
|
||||
color: #2563eb !important;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.nav-pills .nav-link.active,
|
||||
.nav-pills .show > .nav-link,
|
||||
.nav-tabs .nav-link.active {
|
||||
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
|
||||
background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
|
||||
animation: tabNavActivePulse 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
|
||||
}
|
||||
|
||||
/* Animasi Tab Panes Masuk Ketika Tab Berpindah (Semua Halaman) */
|
||||
.tab-content > .tab-pane.active,
|
||||
.tab-content > .tab-pane.tab-animating,
|
||||
.tab-pane.active,
|
||||
.tab-pane.tab-animating {
|
||||
animation: tabPaneFadeInUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
|
||||
}
|
||||
|
||||
/* ===== Responsive Mobile DataTables Controls (2 Columns: Length & Search) ===== */
|
||||
@media (max-width: 767.98px) {
|
||||
.dataTables_wrapper > .row:first-child,
|
||||
.dataTables_wrapper > div.row:first-of-type,
|
||||
div.dataTables_wrapper div.row:first-child {
|
||||
display: flex !important;
|
||||
flex-direction: row !important;
|
||||
flex-wrap: nowrap !important;
|
||||
align-items: center !important;
|
||||
justify-content: space-between !important;
|
||||
gap: 8px !important;
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
margin-bottom: 12px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* Kolom Kiri: Show entries / Length dropdown */
|
||||
.dataTables_wrapper > .row:first-child > div:first-child,
|
||||
.dataTables_wrapper > div.row:first-of-type > div:first-child,
|
||||
.dataTables_wrapper > .row:first-child > div:has(.dataTables_length),
|
||||
div.dataTables_wrapper div.dataTables_length {
|
||||
width: auto !important;
|
||||
max-width: none !important;
|
||||
flex: 0 0 auto !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
/* Kolom Kanan: Search / Filter input */
|
||||
.dataTables_wrapper > .row:first-child > div:last-child,
|
||||
.dataTables_wrapper > div.row:first-of-type > div:last-child,
|
||||
.dataTables_wrapper > .row:first-child > div:has(.dataTables_filter),
|
||||
div.dataTables_wrapper div.dataTables_filter {
|
||||
width: auto !important;
|
||||
max-width: none !important;
|
||||
flex: 1 1 auto !important;
|
||||
min-width: 0 !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
/* Hilangkan teks 'Show' & 'entries' pada label, tampilkan hanya select dropdown box */
|
||||
div.dataTables_wrapper div.dataTables_length label {
|
||||
font-size: 0 !important;
|
||||
color: transparent !important;
|
||||
line-height: 0 !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
div.dataTables_wrapper div.dataTables_length select {
|
||||
font-size: 13.5px !important;
|
||||
line-height: 1.4 !important;
|
||||
font-weight: 500 !important;
|
||||
color: #1e293b !important;
|
||||
margin: 0 !important;
|
||||
padding: 6px 30px 6px 12px !important;
|
||||
border: 1px solid #cbd5e1 !important;
|
||||
border-radius: 8px !important;
|
||||
background-color: #ffffff !important;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-position: right 10px center !important;
|
||||
background-size: 12px 10px !important;
|
||||
appearance: none !important;
|
||||
-webkit-appearance: none !important;
|
||||
-moz-appearance: none !important;
|
||||
height: 38px !important;
|
||||
min-width: 68px !important;
|
||||
cursor: pointer !important;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
|
||||
}
|
||||
|
||||
div.dataTables_wrapper div.dataTables_length select:focus {
|
||||
border-color: #2563eb !important;
|
||||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
/* Hilangkan teks 'Search:' pada label, input melebar memenuhi kolom dengan icon search */
|
||||
div.dataTables_wrapper div.dataTables_filter label {
|
||||
font-size: 0 !important;
|
||||
color: transparent !important;
|
||||
line-height: 0 !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
width: 100% !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
div.dataTables_wrapper div.dataTables_filter input {
|
||||
font-size: 13.5px !important;
|
||||
line-height: 1.4 !important;
|
||||
color: #1e293b !important;
|
||||
margin: 0 !important;
|
||||
padding: 6px 12px 6px 36px !important;
|
||||
border: 1px solid #cbd5e1 !important;
|
||||
border-radius: 8px !important;
|
||||
background-color: #ffffff !important;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z' /%3E%3C/svg%3E") !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-position: 11px center !important;
|
||||
background-size: 16px 16px !important;
|
||||
width: 100% !important;
|
||||
min-width: 0 !important;
|
||||
height: 38px !important;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
|
||||
}
|
||||
|
||||
div.dataTables_wrapper div.dataTables_filter input:focus {
|
||||
border-color: #2563eb !important;
|
||||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
|
||||
outline: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.dt-styled tbody tr {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -102,19 +376,6 @@
|
||||
box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%) !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.footer .footer-links a {
|
||||
color: rgba(255, 255, 255, 0.8) !important;
|
||||
}
|
||||
|
||||
.footer .footer-links a:hover {
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
/* Team Name Marquee */
|
||||
.team-name-container {
|
||||
width: 100%;
|
||||
@@ -141,234 +402,188 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Hilangkan box-shadow bawaan sidebar */
|
||||
.leftside-menu {
|
||||
box-shadow: none !important;
|
||||
-webkit-box-shadow: none !important;
|
||||
}
|
||||
|
||||
/* Sidebar Active Menu dengan Background Biru dan Border Radius */
|
||||
/* Submenu yang aktif mendapat highlight */
|
||||
.side-nav .side-nav-second-level .active.badge-primary-lighten {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.side-nav .side-nav-second-level .active.badge-primary-lighten a {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%) !important;
|
||||
color: white !important;
|
||||
border-radius: 8px !important;
|
||||
margin-left: 8px !important;
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
.side-nav .side-nav-second-level .active.badge-primary-lighten a:hover {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 70%, #1d4ed8 100%) !important;
|
||||
}
|
||||
|
||||
.side-nav .side-nav-second-level .active.badge-primary-lighten a i {
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
/* Menu tunggal (tanpa submenu) yang aktif mendapat highlight */
|
||||
.side-nav .menuitem-active:not(:has(.side-nav-second-level))>a,
|
||||
body[data-leftbar-theme="light"] .side-nav .menuitem-active:not(:has(.side-nav-second-level))>a,
|
||||
body[data-leftbar-theme="dark"] .side-nav .menuitem-active:not(:has(.side-nav-second-level))>a {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%) !important;
|
||||
color: white !important;
|
||||
border-radius: 8px !important;
|
||||
margin-left: 8px !important;
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
.side-nav .menuitem-active:not(:has(.side-nav-second-level))>a:hover {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 70%, #1d4ed8 100%) !important;
|
||||
}
|
||||
|
||||
.side-nav .menuitem-active:not(:has(.side-nav-second-level))>a i {
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
/* Hilangkan background biru pada parent menu ketika ada submenu */
|
||||
.side-nav .menuitem-active:has(.side-nav-second-level)>a,
|
||||
body[data-leftbar-theme="light"] .side-nav .menuitem-active:has(.side-nav-second-level)>a,
|
||||
body[data-leftbar-theme="dark"] .side-nav .menuitem-active:has(.side-nav-second-level)>a {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
/* Topbar Marquee */
|
||||
.topbar-marquee {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 90%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
background: rgba(187, 187, 187, 0.301);
|
||||
border: 1px solid rgba(53, 53, 101, 0.129);
|
||||
border-radius: 6px;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
.marquee-content {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
animation: marquee-scroll 22s linear infinite;
|
||||
color: #dc3545;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@keyframes marquee-scroll {
|
||||
0% {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
100% {
|
||||
left: -100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive untuk mobile */
|
||||
@media (max-width: 768px) {
|
||||
.topbar-marquee {
|
||||
width: 40%;
|
||||
left: 30%;
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip-tolak .tooltip-inner {
|
||||
max-width: 320px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* ===== Sidebar Desktop & Mobile Smooth Drawer Support ===== */
|
||||
#main-sidebar {
|
||||
will-change: transform, translate;
|
||||
transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), translate 0.7s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.7s ease !important;
|
||||
}
|
||||
|
||||
#main-content-wrapper {
|
||||
transition: padding-left 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
|
||||
}
|
||||
|
||||
/* Responsive Mobile Drawer State Handling */
|
||||
@media (max-width: 1023px) {
|
||||
#main-sidebar {
|
||||
transform: translateX(-100%) !important;
|
||||
translate: none !important;
|
||||
}
|
||||
|
||||
#main-sidebar.mobile-open,
|
||||
#main-sidebar:not(.-translate-x-full) {
|
||||
transform: translateX(0) !important;
|
||||
translate: none !important;
|
||||
box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Backdrop with smooth fade in/out transition */
|
||||
#sidebar-backdrop {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.7s ease, backdrop-filter 0.7s ease !important;
|
||||
will-change: opacity, backdrop-filter;
|
||||
}
|
||||
|
||||
#sidebar-backdrop.active {
|
||||
opacity: 1 !important;
|
||||
visibility: visible !important;
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
#main-sidebar {
|
||||
transform: translateX(0) !important;
|
||||
translate: none !important;
|
||||
}
|
||||
|
||||
body.sidebar-collapsed #main-sidebar {
|
||||
transform: translateX(-100%) !important;
|
||||
}
|
||||
|
||||
body.sidebar-collapsed #main-content-wrapper {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ===== Modal & Backdrop Stacking Fix ===== */
|
||||
.modal {
|
||||
z-index: 1060 !important;
|
||||
}
|
||||
|
||||
.modal-backdrop {
|
||||
z-index: 1050 !important;
|
||||
}
|
||||
|
||||
/* ===== Page Title Font Size (Kompak & Proporsional) ===== */
|
||||
.page-title-anim h1,
|
||||
.app-main-content .page-title-anim h1 {
|
||||
font-size: 1.25rem !important;
|
||||
font-weight: 700 !important;
|
||||
letter-spacing: -0.02em !important;
|
||||
line-height: 1.35 !important;
|
||||
margin: 0 !important;
|
||||
color: #0f172a !important;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.page-title-anim h1,
|
||||
.app-main-content .page-title-anim h1 {
|
||||
font-size: 1.125rem !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body data-layout-color="light" data-leftbar-theme="light" data-layout-mode="fluid" data-rightbar-onstart="false">
|
||||
<!-- Begin page -->
|
||||
<div class="wrapper">
|
||||
<!-- ========== Left Sidebar Start ========== -->
|
||||
<div class="leftside-menu">
|
||||
@include('layouts.sidebar')
|
||||
</div>
|
||||
<!-- Left Sidebar End -->
|
||||
<body data-leftbar-theme="light" class="bg-slate-50 text-slate-800 antialiased font-sans selection:bg-blue-600 selection:text-white">
|
||||
<!-- Main Application Shell (100% Full Tailwind CSS) -->
|
||||
<div class="min-h-screen bg-slate-50 flex">
|
||||
<!-- Sidebar Component -->
|
||||
@include('layouts.sidebar')
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- Start Page Content here -->
|
||||
<!-- ============================================================== -->
|
||||
<!-- Mobile Sidebar Backdrop Overlay -->
|
||||
<div id="sidebar-backdrop" class="fixed inset-0 z-40 bg-slate-900/50 backdrop-blur-xs lg:hidden"></div>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Topbar Start -->
|
||||
@include('layouts.topbar')
|
||||
<!-- end Topbar -->
|
||||
<!-- Main Column Content Wrapper -->
|
||||
<div id="main-content-wrapper" class="flex-1 flex flex-col min-w-0 min-h-screen transition-all duration-300 lg:pl-64">
|
||||
<!-- Topbar Header -->
|
||||
@include('layouts.topbar')
|
||||
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box">
|
||||
<div class="page-title-right">
|
||||
<nav aria-label="breadcrumb">
|
||||
@yield('breadcrumb')
|
||||
</nav>
|
||||
</div>
|
||||
<h4 class="page-title">{{ $title }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Main Page Content Body -->
|
||||
<main class="flex-1 px-3 sm:px-5 pt-2 pb-5 app-main-content">
|
||||
<!-- Page Title & Breadcrumb Header (Kompak, Rapi, Tanpa Garis Pembatas Sesuai Permintaan) -->
|
||||
<div class="mb-2 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-1 page-title-anim">
|
||||
<div>
|
||||
<h1 class="page-title text-base sm:text-lg font-bold tracking-tight text-slate-900 leading-snug m-0">{{ $title }}</h1>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<nav class="flex items-center text-xs font-medium text-slate-500">
|
||||
@yield('breadcrumb')
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="page-content-anim">
|
||||
@yield('content')
|
||||
@yield('modal')
|
||||
@yield('modal-alert-blade')
|
||||
</div>
|
||||
|
||||
<!-- Modal Ganti Team (Global) -->
|
||||
@php
|
||||
$authUser = Auth::user();
|
||||
$authUserTeams = $authUser->teams;
|
||||
@endphp
|
||||
@if ($authUserTeams->count() > 1)
|
||||
<div class="modal fade" id="changeTeamModal" tabindex="-1"
|
||||
aria-labelledby="changeTeamModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-primary text-white">
|
||||
<h5 class="modal-title" id="changeTeamModalLabel">
|
||||
<i class="mdi mdi-account-switch me-1"></i>Ganti Team Verifikator
|
||||
</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"
|
||||
aria-label="Close"></button>
|
||||
<!-- Modal Ganti Team (Global) -->
|
||||
@php
|
||||
$authUser = Auth::user();
|
||||
$authUserTeams = $authUser->teams;
|
||||
@endphp
|
||||
@if ($authUserTeams->count() > 1)
|
||||
<div class="modal fade" id="changeTeamModal" tabindex="-1"
|
||||
aria-labelledby="changeTeamModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-primary text-white">
|
||||
<h5 class="modal-title" id="changeTeamModalLabel">
|
||||
<i class="mdi mdi-account-switch me-1"></i>Ganti Team Verifikator
|
||||
</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"
|
||||
aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-info mb-3" role="alert">
|
||||
<i class="mdi mdi-information-outline me-1"></i>
|
||||
Pilih team yang ingin Anda gunakan. Team aktif saat ini:
|
||||
<strong>{{ $authUserTeams->where('id', session('team_id'))->first()->nama ?? 'Belum dipilih' }}</strong>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-info mb-3" role="alert">
|
||||
<i class="mdi mdi-information-outline me-1"></i>
|
||||
Pilih team yang ingin Anda gunakan. Team aktif saat ini:
|
||||
<strong>{{ $authUserTeams->where('id', session('team_id'))->first()->nama ?? 'Belum dipilih' }}</strong>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="change_team_id" class="form-label">Team <span
|
||||
class="text-danger">*</span></label>
|
||||
<select class="form-select select2" id="change_team_id"
|
||||
name="change_team_id" required data-dropdown-parent="#changeTeamModal"
|
||||
data-placeholder="Pilih Team...">
|
||||
<option value=""></option>
|
||||
@foreach ($authUserTeams as $team)
|
||||
<option value="{{ $team->id }}"
|
||||
{{ session('team_id') == $team->id ? 'selected' : '' }}>
|
||||
{{ $team->nama }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</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>
|
||||
<div class="mb-3">
|
||||
<label for="change_team_id" class="form-label">Team <span
|
||||
class="text-danger">*</span></label>
|
||||
<select class="form-select select2" id="change_team_id"
|
||||
name="change_team_id" required data-dropdown-parent="#changeTeamModal"
|
||||
data-placeholder="Pilih Team...">
|
||||
<option value=""></option>
|
||||
@foreach ($authUserTeams as $team)
|
||||
<option value="{{ $team->id }}"
|
||||
{{ session('team_id') == $team->id ? 'selected' : '' }}>
|
||||
{{ $team->nama }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<!-- container -->
|
||||
|
||||
</div>
|
||||
<!-- content -->
|
||||
|
||||
<!-- Footer Start -->
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
Verifikator Universitas Tanjungpura 2025 | All Rights Reserved.
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="text-md-end footer-links d-none d-md-block">
|
||||
<a href="javascript: void(0);">About</a>
|
||||
<a href="javascript: void(0);">Support</a>
|
||||
<a href="javascript: void(0);">Contact Us</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</main>
|
||||
|
||||
<!-- Modern Footer -->
|
||||
<footer class="bg-white border-t border-slate-200 py-3.5 px-3 sm:px-5 sm:pr-48 text-sm text-slate-500 flex items-center">
|
||||
<span>© {{ date('Y') }} <strong class="text-slate-800">Sistem Verifikator Remunerasi</strong> • Universitas Tanjungpura.</span>
|
||||
</footer>
|
||||
<!-- end Footer -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- End Page content -->
|
||||
<!-- ============================================================== -->
|
||||
|
||||
|
||||
</div>
|
||||
<!-- END wrapper -->
|
||||
|
||||
<!-- WhatsApp Helpdesk Button -->
|
||||
<div class="whatsapp-helpdesk-wrapper">
|
||||
@@ -706,6 +921,34 @@
|
||||
<!-- bundle -->
|
||||
<script src="{{ asset('assets/js/vendor.min.js') }}"></script>
|
||||
<script src="{{ asset('assets/js/app.min.js') }}"></script>
|
||||
<script>
|
||||
// Netralkan perilaku auto-condensed Hyper template saat resize
|
||||
(function() {
|
||||
if (window.jQuery) {
|
||||
if (window.jQuery.LayoutThemeApp) {
|
||||
window.jQuery.LayoutThemeApp._adjustLayout = function() {
|
||||
document.body.removeAttribute('data-leftbar-compact-mode');
|
||||
};
|
||||
}
|
||||
if (window.jQuery.LeftSidebar) {
|
||||
window.jQuery.LeftSidebar.activateCondensedSidebar = function() {
|
||||
document.body.removeAttribute('data-leftbar-compact-mode');
|
||||
};
|
||||
}
|
||||
}
|
||||
document.body.removeAttribute('data-leftbar-compact-mode');
|
||||
|
||||
// MutationObserver untuk segera menghapus attribute data-leftbar-compact-mode jika diset ulang oleh skrip lain
|
||||
try {
|
||||
var compactObserver = new MutationObserver(function() {
|
||||
if (document.body.getAttribute('data-leftbar-compact-mode') === 'condensed') {
|
||||
document.body.removeAttribute('data-leftbar-compact-mode');
|
||||
}
|
||||
});
|
||||
compactObserver.observe(document.body, { attributes: true, attributeFilter: ['data-leftbar-compact-mode'] });
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!-- Setup CSRF Token for AJAX -->
|
||||
<script>
|
||||
@@ -1000,8 +1243,8 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Handle click button Ganti Team di topbar
|
||||
$('#btnChangeTeamTopbar').off('click').on('click', function(e) {
|
||||
// Handle click button Ganti Team (Topbar, Sidebar, Dropdown)
|
||||
$(document).on('click', '#btnChangeTeamTopbar, #btnChangeTeamSidebar, #btnChangeTeamDropdown, .btn-trigger-change-team', function(e) {
|
||||
e.preventDefault();
|
||||
$('#changeTeamModal').modal('show');
|
||||
});
|
||||
@@ -1079,6 +1322,161 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// Skrip Interaksi Sidebar (Desktop & Mobile) & Dropdown Profil
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const sidebar = document.getElementById('main-sidebar');
|
||||
const backdrop = document.getElementById('sidebar-backdrop');
|
||||
const toggleBtn = document.getElementById('sidebar-toggle-btn');
|
||||
const closeBtn = document.getElementById('sidebar-close-btn');
|
||||
|
||||
// Cek state collapsed yang tersimpan di localStorage (khusus desktop)
|
||||
if (window.innerWidth >= 1024) {
|
||||
const isCollapsed = localStorage.getItem('untan_sidebar_collapsed') === 'true';
|
||||
if (isCollapsed) {
|
||||
document.body.classList.add('sidebar-collapsed');
|
||||
}
|
||||
}
|
||||
|
||||
function toggleSidebar(e) {
|
||||
if (e) e.preventDefault();
|
||||
if (window.innerWidth >= 1024) {
|
||||
// Mode Desktop: toggle class sidebar-collapsed pada body
|
||||
document.body.classList.toggle('sidebar-collapsed');
|
||||
const isCollapsed = document.body.classList.contains('sidebar-collapsed');
|
||||
localStorage.setItem('untan_sidebar_collapsed', isCollapsed);
|
||||
} else {
|
||||
// Mode Mobile: toggle offcanvas drawer & backdrop dengan transisi mulus
|
||||
if (sidebar) {
|
||||
const isClosed = !sidebar.classList.contains('mobile-open') && sidebar.classList.contains('-translate-x-full');
|
||||
if (isClosed) {
|
||||
sidebar.classList.remove('-translate-x-full');
|
||||
sidebar.classList.add('mobile-open');
|
||||
if (backdrop) backdrop.classList.add('active');
|
||||
} else {
|
||||
closeMobileSidebar();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function closeMobileSidebar(e) {
|
||||
if (e) e.preventDefault();
|
||||
if (sidebar) {
|
||||
sidebar.classList.add('-translate-x-full');
|
||||
sidebar.classList.remove('mobile-open');
|
||||
}
|
||||
if (backdrop) {
|
||||
backdrop.classList.remove('active');
|
||||
}
|
||||
}
|
||||
|
||||
if (toggleBtn) toggleBtn.addEventListener('click', toggleSidebar);
|
||||
if (closeBtn) closeBtn.addEventListener('click', closeMobileSidebar);
|
||||
if (backdrop) backdrop.addEventListener('click', closeMobileSidebar);
|
||||
|
||||
// Tutup sidebar mobile dengan tombol Escape (ESC)
|
||||
document.addEventListener('keydown', function(e) {
|
||||
if (e.key === 'Escape' && window.innerWidth < 1024 && sidebar && sidebar.classList.contains('mobile-open')) {
|
||||
closeMobileSidebar();
|
||||
}
|
||||
});
|
||||
|
||||
// Responsive window resize transition
|
||||
window.addEventListener('resize', function() {
|
||||
if (document.body.hasAttribute('data-leftbar-compact-mode')) {
|
||||
document.body.removeAttribute('data-leftbar-compact-mode');
|
||||
}
|
||||
|
||||
if (window.innerWidth >= 1024) {
|
||||
if (backdrop) backdrop.classList.remove('active');
|
||||
if (sidebar) {
|
||||
sidebar.classList.remove('-translate-x-full');
|
||||
sidebar.classList.remove('mobile-open');
|
||||
}
|
||||
const isCollapsed = localStorage.getItem('untan_sidebar_collapsed') === 'true';
|
||||
if (isCollapsed) {
|
||||
document.body.classList.add('sidebar-collapsed');
|
||||
} else {
|
||||
document.body.classList.remove('sidebar-collapsed');
|
||||
}
|
||||
} else {
|
||||
if (backdrop && !backdrop.classList.contains('active') && sidebar) {
|
||||
sidebar.classList.add('-translate-x-full');
|
||||
sidebar.classList.remove('mobile-open');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Modal Backdrop Stacking Fix: Pindahkan modal ke body agar tidak tertutup backdrop
|
||||
if (window.jQuery) {
|
||||
$(document).on('show.bs.modal', '.modal', function() {
|
||||
if ($(this).parent().prop('tagName') !== 'BODY') {
|
||||
$(this).appendTo('body');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
document.addEventListener('show.bs.modal', function(e) {
|
||||
if (e.target && e.target.classList && e.target.classList.contains('modal')) {
|
||||
if (e.target.parentElement !== document.body) {
|
||||
document.body.appendChild(e.target);
|
||||
}
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
|
||||
// User dropdown toggle
|
||||
const userMenuBtn = document.getElementById('user-menu-btn');
|
||||
const userMenuDropdown = document.getElementById('user-menu-dropdown');
|
||||
|
||||
if (userMenuBtn && userMenuDropdown) {
|
||||
userMenuBtn.addEventListener('click', function(e) {
|
||||
e.stopPropagation();
|
||||
userMenuDropdown.classList.toggle('hidden');
|
||||
});
|
||||
|
||||
document.addEventListener('click', function(e) {
|
||||
if (!userMenuDropdown.contains(e.target) && !userMenuBtn.contains(e.target)) {
|
||||
userMenuDropdown.classList.add('hidden');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Animasi Halus Saat Berpindah Tab Navigasi (Global untuk Seluruh Menu)
|
||||
function triggerTabAnimation(targetPane) {
|
||||
if (!targetPane) return;
|
||||
targetPane.classList.remove('tab-animating');
|
||||
void targetPane.offsetWidth; // Force reflow agar animasi selalu re-run
|
||||
targetPane.classList.add('tab-animating');
|
||||
}
|
||||
|
||||
document.addEventListener('show.bs.tab', function(e) {
|
||||
if (e.target) {
|
||||
const targetSelector = e.target.getAttribute('data-bs-target') || e.target.getAttribute('href');
|
||||
if (targetSelector && targetSelector.startsWith('#') && targetSelector.length > 1) {
|
||||
const targetPane = document.querySelector(targetSelector);
|
||||
if (targetPane) triggerTabAnimation(targetPane);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('click', function(e) {
|
||||
const navLink = e.target.closest('.nav-link, [data-bs-toggle="tab"], [data-toggle="tab"]');
|
||||
if (navLink) {
|
||||
const targetSelector = navLink.getAttribute('data-bs-target') || navLink.getAttribute('data-target') || navLink.getAttribute('href');
|
||||
if (targetSelector && targetSelector.startsWith('#') && targetSelector.length > 1) {
|
||||
const targetPane = document.querySelector(targetSelector);
|
||||
if (targetPane) {
|
||||
requestAnimationFrame(function() {
|
||||
triggerTabAnimation(targetPane);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@yield('js')
|
||||
@yield('modal-alert-js')
|
||||
</body>
|
||||
|
||||
@@ -1,37 +1,24 @@
|
||||
<!-- LOGO -->
|
||||
<a href="{{ route('dashboard.index') }}" class="logo text-center logo-light">
|
||||
<span class="logo-lg">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="" height="36"
|
||||
style="margin-bottom: 5px"><span style="font-size: 20px; margin-left:8px; color:white">Verifikator</span>
|
||||
</span>
|
||||
<span class="logo-sm">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="" height="36">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<!-- LOGO -->
|
||||
<a href="{{ route('dashboard.index') }}" class="logo text-center logo-dark">
|
||||
<span class="logo-lg">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="" height="36"
|
||||
style="margin-bottom: 5px"><span style="font-size: 20px; margin-left:8px; color:black">Verifikator</span>
|
||||
</span>
|
||||
<span class="logo-sm">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="" height="36">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<div class="h-100" id="leftside-menu-container" data-simplebar>
|
||||
|
||||
<!--- Sidemenu -->
|
||||
<ul class="side-nav">
|
||||
|
||||
<li class="side-nav-title side-nav-item">
|
||||
<div class="team-name-container">
|
||||
<div class="team-name-text">
|
||||
{{ App\Models\Verifikator\Team::find(session('team_id'))->nama ?? 'General' }}
|
||||
</div>
|
||||
<aside id="main-sidebar" class="fixed inset-y-0 left-0 z-50 w-64 bg-white border-r border-slate-200 flex flex-col -translate-x-full lg:translate-x-0 shadow-lg lg:shadow-none">
|
||||
<!-- Brand Logo Header -->
|
||||
<div class="h-16 flex items-center justify-between px-4 border-b border-slate-200 bg-white shrink-0">
|
||||
<a href="{{ route('dashboard.index') }}" class="flex items-center gap-2.5 min-w-0">
|
||||
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="Logo UNTAN" class="h-9 w-9 object-contain shrink-0">
|
||||
<div class="flex flex-col min-w-0 justify-center">
|
||||
<span class="text-[15px] font-extrabold tracking-tight text-slate-900 leading-none mb-1">VERIFIKATOR</span>
|
||||
<span class="text-[11px] font-bold text-blue-600 tracking-tight leading-none whitespace-nowrap">Univ. Tanjungpura</span>
|
||||
</div>
|
||||
</li>
|
||||
</a>
|
||||
<button id="sidebar-close-btn" type="button" class="lg:hidden text-slate-400 hover:text-slate-600 p-1 rounded-lg hover:bg-slate-100 transition shrink-0">
|
||||
<i class="mdi mdi-close text-xl"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Scrollable Navigation Menu -->
|
||||
<div class="flex-1 overflow-y-auto px-3 py-2 space-y-1 custom-sidebar-scroll" id="leftside-menu-container">
|
||||
<ul class="side-nav space-y-1">
|
||||
|
||||
|
||||
<li class="side-nav-item">
|
||||
<a href="{{ route('dashboard.index') }}" class="side-nav-link">
|
||||
@@ -51,7 +38,7 @@
|
||||
'Baca SKP',
|
||||
'Baca BA',
|
||||
])
|
||||
<li class="side-nav-title side-nav-item">Verifikasi</li>
|
||||
<li class="side-nav-title side-nav-item text-[11px] font-bold uppercase tracking-wider text-slate-400 px-3.5 pt-4 pb-1">Verifikasi</li>
|
||||
@endcanany
|
||||
|
||||
@canany(['Baca SK', 'Verifikasi SK', 'Baca SK Klaim Ulang', 'Verifikasi SK Klaim Ulang'])
|
||||
@@ -434,7 +421,7 @@
|
||||
@endcanany
|
||||
|
||||
@canany(['Rasio Poin Penunjang', 'Rasio Pembayaran', 'Baca Pembayaran', 'Baca Pagu'])
|
||||
<li class="side-nav-title side-nav-item">Perhitungan</li>
|
||||
<li class="side-nav-title side-nav-item text-[11px] font-bold uppercase tracking-wider text-slate-400 px-3.5 pt-4 pb-1">Perhitungan</li>
|
||||
@endcanany
|
||||
|
||||
@canany(['Rasio Poin Penunjang', 'Rasio Pembayaran'])
|
||||
@@ -605,7 +592,7 @@
|
||||
@endcan
|
||||
|
||||
@canany(['Baca User', 'Baca Pegawai', 'Baca Rubrik', 'Baca Team', 'Baca Team Anggota', 'Baca Periode', 'Baca Permission', 'Baca Rubrik Kategori', 'Baca Rubrik Syarat', 'Baca Limit Mengajar', 'Baca Limit Penunjang'])
|
||||
<li class="side-nav-title side-nav-item">Manajemen</li>
|
||||
<li class="side-nav-title side-nav-item text-[11px] font-bold uppercase tracking-wider text-slate-400 px-3.5 pt-4 pb-1">Manajemen</li>
|
||||
@endcanany
|
||||
|
||||
@can('Baca User')
|
||||
@@ -731,10 +718,6 @@
|
||||
</a>
|
||||
</li>
|
||||
@endcanany
|
||||
</ul>
|
||||
|
||||
<!-- End Sidebar -->
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
@@ -1,74 +1,103 @@
|
||||
<div class="navbar-custom border">
|
||||
<ul class="list-unstyled topbar-menu float-end mb-0">
|
||||
<li class="dropdown notification-list">
|
||||
<a class="nav-link dropdown-toggle nav-user arrow-none me-0" data-bs-toggle="dropdown" href="#"
|
||||
role="button" aria-haspopup="false" aria-expanded="false">
|
||||
<span class="account-user-avatar">
|
||||
<img src="{{ asset('assets/images/users/avatar-1.png') }}" alt="user-image" class="rounded-circle">
|
||||
</span>
|
||||
<span>
|
||||
<span class="account-user-name">{{ Auth::user()->name }}</span>
|
||||
<span class="account-position">{{ Auth::user()->nip }}</span>
|
||||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-end dropdown-menu-animated topbar-dropdown-menu profile-dropdown">
|
||||
<!-- item-->
|
||||
<div class=" dropdown-header noti-title">
|
||||
<h6 class="text-overflow m-0">Welcome !</h6>
|
||||
<header id="main-topbar" class="sticky top-0 z-30 bg-white/95 backdrop-blur-md border-b border-slate-200 h-16 flex items-center justify-between px-3 sm:px-5 shadow-xs">
|
||||
<!-- Kiri: Tombol Toggle Menu Navigasi -->
|
||||
<div class="flex items-center gap-2">
|
||||
<button id="sidebar-toggle-btn" type="button" class="inline-flex items-center justify-center w-9.5 h-9.5 rounded-xl bg-slate-50 hover:bg-blue-600 text-slate-600 hover:text-white border border-slate-200 hover:border-blue-600 shadow-2xs hover:shadow-md hover:shadow-blue-600/20 transition-all duration-200 active:scale-95 focus:outline-none cursor-pointer group" title="Buka / Tutup Menu Navigasi" aria-label="Toggle navigation">
|
||||
<i class="mdi mdi-menu text-xl transition-transform group-hover:scale-110"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Tengah: Running Text Announcement (Responsif Mengisi Seluruh Ruang Layar) -->
|
||||
<div class="hidden md:flex flex-1 min-w-0 mx-3 sm:mx-6 bg-slate-50/90 border border-slate-200/90 rounded-full py-1.5 px-3.5 shadow-2xs items-center gap-2.5 overflow-hidden">
|
||||
<span class="inline-flex items-center gap-1.5 bg-blue-600 text-white text-[10px] font-extrabold px-2.5 py-0.5 rounded-full shrink-0 uppercase tracking-wider shadow-2xs">
|
||||
<i class="mdi mdi-bullhorn-outline text-xs animate-pulse"></i>
|
||||
<span>Pengumuman</span>
|
||||
</span>
|
||||
<div class="topbar-marquee-container flex-1 min-w-0">
|
||||
<div class="topbar-marquee-text text-xs font-semibold text-slate-700">
|
||||
Selamat Datang di Sistem Verifikasi Remunerasi Universitas Tanjungpura • Pastikan dokumen verifikasi diperiksa dengan cermat sesuai SK dan Rubrik Remunerasi • Kendala teknis dapat dilaporkan melalui Pusat Bantuan Helpdesk •
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Kanan: Tim Aktif & Profil Pengguna -->
|
||||
<div class="flex items-center gap-3 shrink-0">
|
||||
@php
|
||||
$activeTeam = App\Models\Verifikator\Team::find(session('team_id'));
|
||||
$userTeamsCount = Auth::user() ? Auth::user()->teams()->count() : 0;
|
||||
@endphp
|
||||
|
||||
<!-- 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">
|
||||
<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>
|
||||
</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">
|
||||
<i class="mdi mdi-shield-check text-blue-600 text-base"></i>
|
||||
<span class="max-w-[130px] truncate">{{ $activeTeam->nama }}</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Profil Pengguna Dropdown -->
|
||||
<div class="dropdown relative notification-list" id="user-menu-dropdown-wrapper">
|
||||
<button type="button" class="dropdown-toggle arrow-none flex items-center gap-2.5 py-1 px-2.5 sm:px-3 rounded-full bg-slate-50 hover:bg-blue-50/80 border border-slate-200 hover:border-blue-200/80 shadow-2xs hover:shadow-xs transition-all duration-200 focus:outline-hidden cursor-pointer h-9 shrink-0 group" data-bs-toggle="dropdown" aria-haspopup="false" aria-expanded="false" id="user-menu-btn">
|
||||
<div class="relative w-6.5 h-6.5 rounded-full overflow-hidden ring-2 ring-blue-500/20 group-hover:ring-blue-500/40 shrink-0 transition">
|
||||
<img src="{{ asset('assets/images/users/avatar-1.png') }}" alt="{{ Auth::user()->name ?? 'User' }}" class="w-full h-full object-cover">
|
||||
</div>
|
||||
<div class="hidden md:flex flex-col text-left justify-center min-w-0">
|
||||
<span class="text-xs font-bold text-slate-800 group-hover:text-blue-600 leading-none mb-0.5 truncate max-w-[120px] transition-colors">{{ Auth::user()->name ?? 'Pengguna' }}</span>
|
||||
<span class="text-[10px] font-semibold text-slate-400 leading-none truncate max-w-[120px]">{{ Auth::user()->nip ?? Auth::user()->username ?? 'User' }}</span>
|
||||
</div>
|
||||
<i class="mdi mdi-chevron-down text-slate-400 group-hover:text-blue-600 transition text-sm ms-0.5"></i>
|
||||
</button>
|
||||
|
||||
<!-- Dropdown Menu Card -->
|
||||
<div class="dropdown-menu dropdown-menu-end dropdown-menu-animated topbar-dropdown-menu profile-dropdown shadow-xl border border-slate-200 rounded-xl py-1.5 z-50 text-slate-700 text-sm" id="user-menu-dropdown">
|
||||
<!-- Header Info Pengguna -->
|
||||
<div class="px-4 py-2 border-b border-slate-100 bg-slate-50/50">
|
||||
<h6 class="text-overflow m-0 text-dark fw-bold text-sm">{{ Auth::user()->name ?? 'Pengguna' }}</h6>
|
||||
<small class="text-muted font-monospace text-xs">{{ Auth::user()->nip ?? '' }}</small>
|
||||
</div>
|
||||
|
||||
<!-- item-->
|
||||
<a href="{{ route('profil.index') }}" class="dropdown-item notify-item">
|
||||
<i class="mdi mdi-account-circle me-1"></i>
|
||||
<span>Profil</span>
|
||||
<!-- Item Profil -->
|
||||
<a href="{{ route('profil.index') }}" class="dropdown-item notify-item flex items-center gap-2.5 px-4 py-2 hover:bg-blue-50 hover:text-blue-600 transition font-medium">
|
||||
<i class="mdi mdi-account-circle-outline text-lg text-slate-400"></i>
|
||||
<span>Profil Saya</span>
|
||||
</a>
|
||||
|
||||
<!-- item-->
|
||||
<!-- Item Khusus Superuser -->
|
||||
@role('Superuser')
|
||||
<a href="{{ route('lainnya.index') }}" class="dropdown-item notify-item">
|
||||
<i class="mdi mdi-android-messages me-1"></i>
|
||||
<span>Lainnya</span>
|
||||
<a href="{{ route('lainnya.index') }}" class="dropdown-item notify-item flex items-center gap-2.5 px-4 py-2 hover:bg-blue-50 hover:text-blue-600 transition font-medium">
|
||||
<i class="mdi mdi-cog-outline text-lg text-slate-400"></i>
|
||||
<span>Menu Lainnya</span>
|
||||
</a>
|
||||
@endrole
|
||||
|
||||
<!-- item-->
|
||||
@php
|
||||
$userTeamsCount = Auth::user()->teams()->count();
|
||||
@endphp
|
||||
<!-- Tombol Ganti Team -->
|
||||
@if($userTeamsCount > 1)
|
||||
<a href="javascript:void(0);" class="dropdown-item notify-item" id="btnChangeTeamTopbar">
|
||||
<i class="mdi mdi-account-switch me-1"></i>
|
||||
<a href="javascript:void(0);" class="dropdown-item notify-item btn-trigger-change-team flex items-center gap-2.5 px-4 py-2 hover:bg-blue-50 text-blue-600 transition font-semibold" id="btnChangeTeamDropdown">
|
||||
<i class="mdi mdi-account-switch-outline text-lg text-blue-600"></i>
|
||||
<span>Ganti Team</span>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<!-- item-->
|
||||
<div class="dropdown-divider my-1 border-t border-slate-100"></div>
|
||||
|
||||
<!-- Item Logout -->
|
||||
@if(config('app.login_mode') === 2)
|
||||
<a href="{{ route('logout') }}" class="dropdown-item notify-item">
|
||||
<i class="mdi mdi-home-account me-1"></i>
|
||||
<span>Kembali ke Portal</span>
|
||||
</a>
|
||||
<a href="{{ route('logout') }}" class="dropdown-item notify-item text-danger flex items-center gap-2.5 px-4 py-2 text-red-600 hover:bg-red-50 transition font-semibold">
|
||||
<i class="mdi mdi-home-export-outline text-lg text-red-600"></i>
|
||||
<span>Kembali ke Portal</span>
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ route('logout') }}" class="dropdown-item notify-item">
|
||||
<i class="mdi mdi-logout me-1"></i>
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
<a href="{{ route('logout') }}" class="dropdown-item notify-item text-danger flex items-center gap-2.5 px-4 py-2 text-red-600 hover:bg-red-50 transition font-semibold">
|
||||
<i class="mdi mdi-logout-variant text-lg text-red-600"></i>
|
||||
<span>Keluar (Logout)</span>
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<button class="button-menu-mobile open-left">
|
||||
<i class="mdi mdi-menu"></i>
|
||||
</button>
|
||||
|
||||
<!-- Marquee Text -->
|
||||
<div class="topbar-marquee">
|
||||
<div class="marquee-content">
|
||||
{{-- <span style="text-transform:uppercase">Masa verifikasi Remunerasi sudah dibuka, pada proses verifikasi akan dilakukan secara bertahap, dan batas masa verifikasi sampai tanggal 23 Desember 2025 pukul 23:59:59 WIB.</span> --}}
|
||||
{{-- <span style="text-transform:uppercase">Sehubungan dengan pembaruan data mengajar terbaru dari Satu UNTAN per tanggal 20 Desember 2025 pukul 07.00 WIB, mohon agar rubrik mengajar dosen dapat diverifikasi kembali.</span> --}}
|
||||
<span style="text-transform:uppercase">Selamat datang di Sistem Informasi Remunerasi Universitas Tanjungpura.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#aturanTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#aturanTable tbody tr {
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
}
|
||||
|
||||
#limitsTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#limitsTable tbody tr:hover > * {
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
}
|
||||
|
||||
#limitsTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#limitsTable tbody tr:hover > * {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#table-penunjang thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#table-penunjang tbody tr:hover > * {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#pegawaiTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#pegawaiTable tbody tr {
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
#pegawaiDetailModal .table-bordered th {
|
||||
background-color: #eaf2fe;
|
||||
color: #0166d2;
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
#pegawaiDetailModal h6 {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#periodeTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#periodeTable tbody tr {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#permissionTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#permissionTable tbody tr {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@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; }
|
||||
#rubrikTable thead th { background: #2563eb !important; background-color: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
}
|
||||
|
||||
#kategoriTable thead th, #syaratTable thead th, #rubrikTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@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; }
|
||||
#syaratTable thead th { background: #2563eb !important; background-color: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#member-datatable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#member-datatable tbody tr:hover > * {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#team-datatable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#team-datatable tbody tr:hover > * {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#userTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#userTable tbody tr:hover > * {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@section('css')
|
||||
<style>
|
||||
#paguTable thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#paguTable tbody tr:hover > * {
|
||||
|
||||
@@ -12,11 +12,13 @@
|
||||
.pegawai-card { border-left:4px solid #1976d2; background:#f8faff; }
|
||||
|
||||
/* ── Month Accordion ── */
|
||||
.month-accordion .accordion-item { border:none; margin-bottom:10px; border-radius:8px!important; box-shadow:0 2px 8px rgba(0,0,0,.08); overflow:hidden; }
|
||||
.month-accordion .accordion-button { font-weight:600; font-size:15px; background:#1565c0; color:#fff; border-radius:8px!important; }
|
||||
.month-accordion .accordion-button.collapsed { background:#1976d2; color:#fff; }
|
||||
.month-accordion .accordion-item { border:1px solid #e2e8f0; margin-bottom:10px; border-radius:10px!important; box-shadow:0 1px 4px rgba(0,0,0,.06); background:#ffffff; }
|
||||
.month-accordion .accordion-button { font-weight:600; font-size:15px; background:#0263e0; color:#fff; border-radius:10px!important; padding:12px 18px; }
|
||||
.month-accordion .accordion-button.collapsed { background:#1565c0; color:#fff; border-radius:10px!important; }
|
||||
.month-accordion .accordion-button:not(.collapsed) { border-bottom-left-radius:0!important; border-bottom-right-radius:0!important; }
|
||||
.month-accordion .accordion-button::after { filter:invert(1); }
|
||||
.month-accordion .accordion-body { padding:0; }
|
||||
.month-accordion .accordion-collapse.collapse.show { display:block!important; visibility:visible!important; opacity:1!important; height:auto!important; }
|
||||
.month-accordion .accordion-body { padding:0; background:#ffffff; display:block!important; visibility:visible!important; }
|
||||
|
||||
/* ── Kegiatan Table ── */
|
||||
.tbl-kegiatan { font-size:13px; margin-bottom:0; }
|
||||
@@ -674,7 +676,22 @@
|
||||
@endif
|
||||
|
||||
$('[data-bs-toggle="tooltip"]').each(function () {
|
||||
new bootstrap.Tooltip(this);
|
||||
if (typeof bootstrap !== 'undefined' && bootstrap.Tooltip) {
|
||||
new bootstrap.Tooltip(this);
|
||||
}
|
||||
});
|
||||
|
||||
// Jaminan interaktivitas accordion bulan agar isi selalu terbuka dan terlihat jelas
|
||||
$(document).on('click', '.month-accordion .accordion-button', function () {
|
||||
var target = $(this).attr('data-bs-target');
|
||||
if (target) {
|
||||
var $target = $(target);
|
||||
setTimeout(function () {
|
||||
if (!$target.hasClass('show') && !$(this).hasClass('collapsed')) {
|
||||
$target.addClass('show').css('display', 'block');
|
||||
}
|
||||
}.bind(this), 50);
|
||||
}
|
||||
});
|
||||
|
||||
$('a.export-poin').on('click', function (e) {
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
}
|
||||
|
||||
#rasio-p2-table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#rasio-p2-table tbody tr {
|
||||
|
||||
@@ -3,6 +3,29 @@
|
||||
@section('css')
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/datatables.css') }}">
|
||||
<style>
|
||||
.accordion-item {
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
margin-bottom: 8px !important;
|
||||
border-radius: 8px !important;
|
||||
background: #ffffff !important;
|
||||
}
|
||||
.accordion-button {
|
||||
font-weight: 600 !important;
|
||||
font-size: 14px !important;
|
||||
padding: 10px 16px !important;
|
||||
}
|
||||
.accordion-collapse.collapse.show {
|
||||
display: block !important;
|
||||
visibility: visible !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
.accordion-body {
|
||||
display: block !important;
|
||||
visibility: visible !important;
|
||||
background: #ffffff !important;
|
||||
padding: 12px 16px !important;
|
||||
}
|
||||
|
||||
.accordion-button.hide-arrow::after {
|
||||
background-image: none !important;
|
||||
}
|
||||
@@ -70,31 +93,33 @@
|
||||
<div class="accordion" id="penggunaan-p2">
|
||||
@foreach ($p2 as $kategori => $penggunaan)
|
||||
@continue(collect($penggunaan)->flatten()->sum() === 0)
|
||||
@php $katSlug = \Illuminate\Support\Str::slug($kategori); @endphp
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button
|
||||
class="accordion-button collapsed {{ gettype($penggunaan) === 'array' ? '' : 'hide-arrow' }}"
|
||||
type="button" data-bs-toggle="collapse" data-bs-target="#{{ $kategori }}">
|
||||
type="button" data-bs-toggle="collapse" data-bs-target="#acc-kat-{{ $katSlug }}">
|
||||
{{ ucwords(str_replace('_', ' ', $kategori)) }}
|
||||
<i class='fa fa-arrow-right mx-2'></i>
|
||||
{{ number_format(collect($penggunaan)->flatten()->sum(), 2, ',', '.') }}
|
||||
</button>
|
||||
</h2>
|
||||
@if (gettype($penggunaan) === 'array' && str_contains($kategori, 'tri_dharma'))
|
||||
<div id="{{ $kategori }}" class="accordion-collapse collapse">
|
||||
<div id="acc-kat-{{ $katSlug }}" class="accordion-collapse collapse">
|
||||
<div class="accordion-body">
|
||||
<div class="d-flex justify-content-center">
|
||||
<div id="{{ $kategori }}-chart" class="overflow-auto"></div>
|
||||
</div>
|
||||
@foreach ($penggunaan as $subkategori => $detail)
|
||||
@continue(collect($detail)->flatten()->sum() === 0)
|
||||
<div class="accordion" id="subdetail">
|
||||
@php $subkatSlug = \Illuminate\Support\Str::slug($kategori . '-' . $subkategori . '-' . $loop->index); @endphp
|
||||
<div class="accordion" id="subdetail-{{ $subkatSlug }}">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button
|
||||
class="accordion-button collapsed {{ gettype($detail) === 'array' ? '' : 'hide-arrow' }}"
|
||||
type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#{{ $kategori }}-{{ $subkategori }}">
|
||||
data-bs-target="#acc-sub-{{ $subkatSlug }}">
|
||||
@if (str_contains($subkategori, 'Lainnya'))
|
||||
{{ ucwords(str_replace('_', ' ', implode(' ', explode('Lainnya', $subkategori)))) }}
|
||||
Lainnya
|
||||
@@ -106,7 +131,7 @@
|
||||
</button>
|
||||
</h2>
|
||||
@if (gettype($detail) === 'array')
|
||||
<div id="{{ $kategori }}-{{ $subkategori }}"
|
||||
<div id="acc-sub-{{ $subkatSlug }}"
|
||||
class="accordion-collapse collapse">
|
||||
<div class="accordion-body">
|
||||
<table class='table'>
|
||||
@@ -138,7 +163,7 @@
|
||||
</div>
|
||||
</div>
|
||||
@elseif(gettype($penggunaan) === 'array')
|
||||
<div id="{{ $kategori }}" class="accordion-collapse collapse">
|
||||
<div id="acc-kat-{{ $katSlug }}" class="accordion-collapse collapse">
|
||||
<div class="accordion-body">
|
||||
<div class="d-flex justify-content-center">
|
||||
<div id="{{ $kategori }}-chart" class="overflow-auto"></div>
|
||||
@@ -547,5 +572,18 @@
|
||||
Plotly.newPlot('{{ $kategori }}-chart', data, layout, config);
|
||||
});
|
||||
@endforeach
|
||||
|
||||
// Jaminan interaktivitas accordion agar isi selalu terbuka dan terlihat jelas
|
||||
$(document).on('click', '.accordion-button', function () {
|
||||
var target = $(this).attr('data-bs-target');
|
||||
if (target && target.startsWith('#')) {
|
||||
var $target = $(target);
|
||||
setTimeout(function () {
|
||||
if (!$target.hasClass('show') && !$(this).hasClass('collapsed')) {
|
||||
$target.addClass('show').css('display', 'block');
|
||||
}
|
||||
}.bind(this), 50);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
.penunjang-table tbody a.badge:hover,
|
||||
.penunjang-table tbody button:hover { filter: brightness(0.85); transform: scale(0.97); }
|
||||
.penunjang-table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
.penunjang-table thead th,
|
||||
.penunjang-table thead th.nominal-cell,
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
.penunjang-table tbody a.badge:hover,
|
||||
.penunjang-table tbody button:hover { filter: brightness(0.85); transform: scale(0.97); }
|
||||
.penunjang-table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
.penunjang-table thead th,
|
||||
.penunjang-table thead th.nominal-cell,
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
.penunjang-table tbody a.badge:hover,
|
||||
.penunjang-table tbody button:hover { filter: brightness(0.85); transform: scale(0.97); }
|
||||
.penunjang-table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
.penunjang-table thead th,
|
||||
.penunjang-table thead th.nominal-cell,
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
}
|
||||
|
||||
#table-detail thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
|
||||
#table-belum-selesai thead th,
|
||||
#table-selesai thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#table-belum-selesai tbody tr,
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
|
||||
#table-belum-selesai thead th,
|
||||
#table-selesai thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important;
|
||||
background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#table-belum-selesai tbody tr,
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
}
|
||||
|
||||
#table-detail thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
|
||||
#table-belum-selesai thead th,
|
||||
#table-selesai thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#table-belum-selesai tbody tr,
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
}
|
||||
|
||||
#belum-finalisasi thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
}
|
||||
|
||||
#belum-verifikasi thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,10 +58,24 @@
|
||||
border-color: #ced4da !important;
|
||||
}
|
||||
|
||||
table[id^="anggota-sk-"] tbody td.nama-col .text-truncate {
|
||||
max-width: 240px;
|
||||
}
|
||||
|
||||
table[id^="anggota-sk-"] tbody td.nama-col > div {
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
table[id^="anggota-sk-"] tbody td {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
table[id^="anggota-sk-"] thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -111,19 +125,19 @@
|
||||
<input type="hidden" id="berita_acara_uploaded" value="{{ $beritaAcaraUploaded ? '1' : '0' }}">
|
||||
<input type="hidden" id="berita_acara_message" value="{{ $beritaAcaraMessage ?? '' }}">
|
||||
|
||||
<div class="alert alert-info d-flex justify-content-between align-items-start" role="alert" id="tour-info-alert">
|
||||
<div class="alert alert-info d-flex justify-content-between align-items-center py-2 px-3 mb-2.5" role="alert" id="tour-info-alert">
|
||||
<div>
|
||||
<b><i class="dripicons-information me-2"></i>Info!</b>
|
||||
<ul class="mb-0 mt-1">
|
||||
<b><i class="dripicons-information me-1"></i>Info!</b>
|
||||
<ul class="mb-0 mt-0.5 ps-3" style="font-size: 13px;">
|
||||
<li><b>Jabatan Tugas Tambahan & TMT-nya, jika tidak boleh diklaim dalam remunerasi, maka ubah jumlah bulan yang dapat diklaim pada kolom Action.</b></li>
|
||||
<li><b>Untuk dapat mengubah jangka waktu, harap disimpan terlebih dahulu untuk memunculkan opsi jangka waktu.</b></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="dropdown ms-3 flex-shrink-0">
|
||||
<button class="btn btn-sm btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<button class="btn btn-sm btn-primary dropdown-toggle py-1 px-2.5" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="uil-question-circle me-1"></i> Panduan
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<ul class="dropdown-menu dropdown-menu-end shadow-sm">
|
||||
<li>
|
||||
<a class="dropdown-item" href="#" id="start-tour-btn">
|
||||
<i class="uil-clipboard-notes me-2"></i> Panduan Verifikasi SK
|
||||
@@ -148,13 +162,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card border">
|
||||
<div class="card-body">
|
||||
<div class="card border mb-3 shadow-2xs">
|
||||
<div class="card-body py-2.5 px-3">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm">
|
||||
<table class="table table-sm align-middle mb-0" style="font-size: 13.5px;">
|
||||
<!-- ID SK -->
|
||||
<tr>
|
||||
<th>ID SK</th>
|
||||
<th style="width: 160px;">ID SK</th>
|
||||
<td class="text-primary fw-bold">{{ $sk['id'] }}</td>
|
||||
</tr>
|
||||
|
||||
@@ -162,8 +176,7 @@
|
||||
<tr>
|
||||
<th>Tentang</th>
|
||||
<td>
|
||||
<textarea class="form-control" name="tentang" id="tentang" cols="30" rows="3" readonly>{{ $sk['tentang'] }}
|
||||
</textarea>
|
||||
<textarea class="form-control form-control-sm" name="tentang" id="tentang" rows="2" readonly style="font-size: 13px; resize: vertical;">{{ trim($sk['tentang']) }}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -225,7 +238,7 @@
|
||||
<tr>
|
||||
<th>Catatan</th>
|
||||
<td>
|
||||
<textarea class="form-control" name="catatan" id="catatanReadonly" cols="30" rows="3" readonly>{{ $note->note ?? 'Tidak ada catatan' }}</textarea>
|
||||
<textarea class="form-control form-control-sm" name="catatan" id="catatanReadonly" rows="2" readonly style="font-size: 13px; resize: vertical;">{{ $note->note ?? 'Tidak ada catatan' }}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@@ -363,18 +376,19 @@
|
||||
$kegiatan['selected'] ?? null,
|
||||
);
|
||||
@endphp
|
||||
<div class="card border">
|
||||
<div class="card-header bg-primary text-white" style="padding-bottom: 0px;">
|
||||
<h4 class="mb-3">Daftar Anggota - {{ ucfirst($key) }} | {{ $selectedKategori['uraian'] ?? 'Null' }}
|
||||
</h4>
|
||||
<div class="card border mb-3 shadow-2xs">
|
||||
<div class="card-header bg-primary text-white py-2 px-3 d-flex align-items-center">
|
||||
<h5 class="m-0 text-white fw-bold fs-6">
|
||||
<i class="uil-users-alt me-1.5"></i> Daftar Anggota - {{ ucfirst($key) }} | {{ $selectedKategori['uraian'] ?? 'Belum Dipilih' }}
|
||||
</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="card-body py-2.5 px-3">
|
||||
@can('Verifikasi SK')
|
||||
<div class="row">
|
||||
<!-- Kategori Anggota Pertama -->
|
||||
@if ($sk['visible'] ?? true)
|
||||
<div class="col-12 tour-kategori-container">
|
||||
<h5>Kategori Rubrik</h5>
|
||||
<div class="col-12 tour-kategori-container mb-2">
|
||||
<label class="form-label fw-bold mb-1" style="font-size: 13.5px; color: #1e293b;">Kategori Rubrik</label>
|
||||
<select name="kategori" id="kategori-{{ $loop->iteration }}"
|
||||
data-kategori="{{ str_replace('/', '-', str_replace(')', '', str_replace('(', '-', str_replace(' ', '-', $key)))) }}"
|
||||
class="form-select select2 kategori-select" data-toggle="select2"
|
||||
@@ -479,8 +493,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
<th>NIP</th>
|
||||
<th>Nama</th>
|
||||
<th>Pegawai</th>
|
||||
<th>Jabatan Tambahan</th>
|
||||
<th>Posisi</th>
|
||||
<th>Rubrik</th>
|
||||
@@ -498,38 +511,35 @@
|
||||
|
||||
<!-- Fixed Floating Action Bar -->
|
||||
@if ($sk['visible'] ?? true)
|
||||
<div id="floatingActionBarBackdrop"
|
||||
style="display:none; position:fixed; bottom:0; left:0; right:0; height:140px; z-index:1049;
|
||||
background:linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
|
||||
pointer-events:none;"></div>
|
||||
<div id="floatingActionBarBackdrop" style="display:none; pointer-events:none;"></div>
|
||||
|
||||
<div id="floatingActionBar"
|
||||
style="display:none; position:fixed; bottom:52px; left:50%; transform:translateX(-50%); z-index:1050;
|
||||
background:#ffffff; border:1px solid #dee2e6; border-radius:8px;
|
||||
padding:10px 20px; box-shadow:0 8px 32px rgba(0,0,0,0.15);
|
||||
white-space:nowrap;">
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<span class="text-dark fw-semibold me-2">
|
||||
<i class="uil-check-circle text-primary"></i>
|
||||
<span id="floatingSelectedCount">0</span> anggota dipilih
|
||||
style="display:none; position:fixed; bottom:28px; left:50%; transform:translateX(-50%); z-index:1050;
|
||||
background:#ffffff; border:1px solid #cbd5e1; border-radius:50px;
|
||||
padding:8px 20px; box-shadow:0 12px 32px -4px rgba(15,23,42,0.28), 0 4px 12px rgba(15,23,42,0.12);
|
||||
white-space:nowrap; max-width:calc(100vw - 32px); overflow-x:auto;">
|
||||
<div class="d-flex align-items-center gap-2 flex-nowrap">
|
||||
<span class="text-dark fw-semibold me-2 d-inline-flex align-items-center gap-1.5">
|
||||
<i class="uil-check-circle text-primary fs-5"></i>
|
||||
<span><span id="floatingSelectedCount" class="fw-bold">0</span> anggota dipilih</span>
|
||||
</span>
|
||||
@if (!$sk['finalisasi'] && !$sk['status_verifikator'])
|
||||
<button type="button" class="btn btn-sm {{ $beritaAcaraUploaded ? 'btn-outline-secondary' : 'btn-outline-purple' }} posisi-multiple-btn">
|
||||
<button type="button" class="btn btn-sm {{ $beritaAcaraUploaded ? 'btn-outline-secondary' : 'btn-outline-purple' }} posisi-multiple-btn rounded-pill px-3">
|
||||
<i class="uil-exchange"></i> Ubah Posisi
|
||||
</button>
|
||||
@endif
|
||||
@if ($sk['status_verifikator'])
|
||||
<button type="button" class="btn btn-sm {{ $beritaAcaraUploaded ? 'btn-outline-secondary' : 'btn-outline-success' }} jangka-waktu-multiple-btn">
|
||||
<button type="button" class="btn btn-sm {{ $beritaAcaraUploaded ? 'btn-outline-secondary' : 'btn-outline-success' }} jangka-waktu-multiple-btn rounded-pill px-3">
|
||||
<i class="uil-edit"></i> Ubah Jangka Waktu
|
||||
</button>
|
||||
@endif
|
||||
@can('Hapus Anggota SK')
|
||||
<button type="button" class="btn btn-sm {{ $beritaAcaraUploaded ? 'btn-outline-secondary' : 'btn-outline-danger' }} hapus-multiple-btn">
|
||||
<button type="button" class="btn btn-sm {{ $beritaAcaraUploaded ? 'btn-outline-secondary' : 'btn-outline-danger' }} hapus-multiple-btn rounded-pill px-3">
|
||||
<i class="uil-trash-alt"></i> Hapus Anggota
|
||||
</button>
|
||||
@endcan
|
||||
<span style="width:1px; height:20px; background:#dee2e6; display:inline-block;"></span>
|
||||
<button type="button" class="btn btn-sm btn-link text-muted deselect-all-btn px-0">
|
||||
<span style="width:1px; height:20px; background:#cbd5e1; display:inline-block; margin:0 4px;"></span>
|
||||
<button type="button" class="btn btn-sm btn-link text-muted deselect-all-btn px-1 text-decoration-none hover:text-danger">
|
||||
<i class="uil-times-circle"></i> Batal Pilih
|
||||
</button>
|
||||
</div>
|
||||
@@ -1194,6 +1204,7 @@
|
||||
$('.ni-sk').addClass('badge-primary-lighten');
|
||||
$('.li-sk').addClass('show');
|
||||
$('.{{ $sidebarClass }}').addClass('active badge-primary-lighten');
|
||||
$('.{{ $sidebarClass }} > a').addClass('active');
|
||||
</script>
|
||||
|
||||
<script>
|
||||
@@ -1211,6 +1222,22 @@
|
||||
var unitId = new URLSearchParams(window.location.search).get('unit_id') || '';
|
||||
console.log('Unit ID dari URL:', unitId);
|
||||
|
||||
function renderJenisPegawaiTag(jenis) {
|
||||
var config = {
|
||||
'dosen': { color: 'var(--ct-primary, #2563eb)', rgb: '37, 99, 235', icon: 'uil-user-graduate' },
|
||||
'tendik': { color: '#fd7e14', rgb: '253, 126, 20', icon: 'uil-briefcase-alt' }
|
||||
};
|
||||
var normalizedJenis = (jenis || '').toString().toLowerCase().trim();
|
||||
var c = config[normalizedJenis];
|
||||
if (!c) {
|
||||
return '';
|
||||
}
|
||||
return '<small class="d-inline-block fw-bold" style="padding: 1px 18px 1px 6px; color: ' +
|
||||
c.color + '; background: linear-gradient(to right, rgba(' + c.rgb + ', 0.25), rgba(' + c.rgb +
|
||||
', 0)); clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); font-size: 11px;"><i class="' + c.icon +
|
||||
'"></i> ' + normalizedJenis.toUpperCase() + '</small>';
|
||||
}
|
||||
|
||||
var kegiatanKeys = @json(array_keys($kegiatans));
|
||||
|
||||
kegiatanKeys.forEach(function(key, index) {
|
||||
@@ -1230,38 +1257,49 @@
|
||||
columns: [{
|
||||
data: 'checkbox',
|
||||
name: 'checkbox',
|
||||
className: 'text-center',
|
||||
className: 'text-center align-middle',
|
||||
orderable: false,
|
||||
searchable: false
|
||||
},
|
||||
{
|
||||
data: 'nip',
|
||||
name: 'nip',
|
||||
className: 'text-center'
|
||||
searchable: false,
|
||||
width: '40px'
|
||||
},
|
||||
{
|
||||
data: 'nama',
|
||||
name: 'nama',
|
||||
className: 'nama-col align-middle',
|
||||
orderable: true,
|
||||
searchable: true
|
||||
searchable: true,
|
||||
render: function(data, type, row) {
|
||||
if (type !== 'display') { return data; }
|
||||
var nama = data || '-';
|
||||
var nip = row.nip || '-';
|
||||
var tag = renderJenisPegawaiTag(row.jenis_pegawai);
|
||||
return '<div>' +
|
||||
'<div class="fw-semibold text-truncate" title="' + nama + '">' + nama + '</div>' +
|
||||
'<div class="text-muted small font-monospace">' + nip + '</div>' +
|
||||
(tag ? '<div class="mt-1">' + tag + '</div>' : '') +
|
||||
'</div>';
|
||||
}
|
||||
},
|
||||
{
|
||||
data: 'jtt',
|
||||
name: 'jtt',
|
||||
width: '100px'
|
||||
className: 'align-middle',
|
||||
width: '120px'
|
||||
},
|
||||
{
|
||||
data: 'posisi',
|
||||
name: 'posisi'
|
||||
name: 'posisi',
|
||||
className: 'align-middle'
|
||||
},
|
||||
{
|
||||
data: 'rubrik_id',
|
||||
name: 'rubrik_id'
|
||||
name: 'rubrik_id',
|
||||
className: 'align-middle'
|
||||
},
|
||||
{
|
||||
data: 'jangka_waktu',
|
||||
name: 'jangka_waktu',
|
||||
className: 'text-center'
|
||||
className: 'text-center align-middle'
|
||||
},
|
||||
],
|
||||
language: {
|
||||
@@ -2688,17 +2726,25 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
return $('table[id^="anggota-sk-"] td input[type=checkbox]:checked').not('.select-all');
|
||||
}
|
||||
|
||||
function isTopBtnsInView() {
|
||||
var sentinel = document.getElementById('top-action-btns');
|
||||
if (!sentinel) return false;
|
||||
var rect = sentinel.getBoundingClientRect();
|
||||
var topbar = document.getElementById('main-topbar');
|
||||
var topbarBottom = topbar ? topbar.getBoundingClientRect().bottom : 64;
|
||||
return rect.bottom > topbarBottom && rect.top < (window.innerHeight || document.documentElement.clientHeight);
|
||||
}
|
||||
|
||||
var topBtnsVisible = true;
|
||||
|
||||
function updateFloatingBarVisibility() {
|
||||
var count = getSelectedCheckboxes().length;
|
||||
$('#floatingSelectedCount').text(count);
|
||||
topBtnsVisible = isTopBtnsInView();
|
||||
if (count > 0 && !topBtnsVisible) {
|
||||
$('#floatingActionBarBackdrop').fadeIn(200);
|
||||
$('#floatingActionBar').fadeIn(200);
|
||||
$('#floatingActionBar, #floatingActionBarBackdrop').stop(true, true).fadeIn(150);
|
||||
} else {
|
||||
$('#floatingActionBar').fadeOut(200);
|
||||
$('#floatingActionBarBackdrop').fadeOut(200);
|
||||
$('#floatingActionBar, #floatingActionBarBackdrop').stop(true, true).fadeOut(150);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2708,14 +2754,25 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
updateFloatingBarVisibility();
|
||||
}
|
||||
|
||||
// IntersectionObserver: show floating bar when top action buttons scroll out of view
|
||||
$(document).ready(function() {
|
||||
$('#floatingActionBar, #floatingActionBarBackdrop').appendTo('body');
|
||||
updateButtonCount();
|
||||
});
|
||||
|
||||
// Listener scroll global (useCapture: true menangkap scroll di container mana pun, termasuk SimpleBar & window)
|
||||
window.addEventListener('scroll', updateFloatingBarVisibility, true);
|
||||
document.addEventListener('scroll', updateFloatingBarVisibility, true);
|
||||
|
||||
// IntersectionObserver tambahan dengan offset topbar 64px
|
||||
(function () {
|
||||
var sentinel = document.getElementById('top-action-btns');
|
||||
if (!sentinel) { topBtnsVisible = false; return; }
|
||||
if (!sentinel) return;
|
||||
var observer = new IntersectionObserver(function (entries) {
|
||||
topBtnsVisible = entries[0].isIntersecting;
|
||||
updateFloatingBarVisibility();
|
||||
}, { threshold: 0 });
|
||||
}, {
|
||||
rootMargin: '-64px 0px 0px 0px',
|
||||
threshold: [0, 0.1, 0.5, 1]
|
||||
});
|
||||
observer.observe(sentinel);
|
||||
})();
|
||||
|
||||
@@ -2985,15 +3042,18 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
}
|
||||
#tour-popover {
|
||||
position: fixed; background: #fff; border-radius: 12px;
|
||||
padding: 20px; width: 340px;
|
||||
padding: 18px 20px; width: 350px; max-width: calc(100vw - 28px);
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.25);
|
||||
z-index: 9992; font-family: inherit;
|
||||
transition: top 0.15s ease-out, left 0.15s ease-out;
|
||||
}
|
||||
.tour-step-info { font-size: 12px; color: #6c757d; margin-bottom: 6px; font-weight: 500; }
|
||||
.tour-title { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
|
||||
.tour-text { font-size: 13px; color: #555; line-height: 1.55; margin-bottom: 16px; }
|
||||
.tour-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
|
||||
.tour-nav .btn { white-space: nowrap; }
|
||||
.tour-text { font-size: 13px; color: #555; line-height: 1.55; margin-bottom: 16px; word-break: break-word; }
|
||||
.tour-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||||
.tour-nav-buttons { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
|
||||
.tour-nav .btn { white-space: nowrap; font-size: 13px; padding: 5px 12px; }
|
||||
.tour-close-btn {
|
||||
position: absolute; top: 12px; right: 14px;
|
||||
background: none; border: none; font-size: 20px;
|
||||
@@ -3041,6 +3101,13 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
#tour-overlay { animation: tour-overlay-in 0.25s ease forwards; }
|
||||
#tour-popover { animation: tour-pop-in 0.22s ease forwards; }
|
||||
#tour-highlight.first-show { animation: tour-highlight-in 0.25s ease forwards; }
|
||||
.btn-pulse {
|
||||
animation: tour-btn-glow 1s ease-in-out infinite alternate;
|
||||
}
|
||||
@keyframes tour-btn-glow {
|
||||
from { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); transform: scale(1); }
|
||||
to { box-shadow: 0 0 0 6px rgba(13, 110, 253, 0); transform: scale(1.04); }
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(styleEl);
|
||||
}
|
||||
@@ -3268,6 +3335,60 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
});
|
||||
}
|
||||
|
||||
function getTargetRect(step) {
|
||||
if (!step || !step.element) return null;
|
||||
var $el = $(step.element);
|
||||
if (!$el.length) return null;
|
||||
|
||||
if (step.colHighlight) {
|
||||
var $firstTable = $el.first().closest('table');
|
||||
var $cells = $el.filter(function () {
|
||||
return $(this).closest('table').is($firstTable);
|
||||
});
|
||||
var top = Infinity, left = Infinity, right = -Infinity, bottom = -Infinity;
|
||||
var found = false;
|
||||
$cells.each(function () {
|
||||
var b = this.getBoundingClientRect();
|
||||
if (b.width === 0 && b.height === 0) return;
|
||||
found = true;
|
||||
top = Math.min(top, b.top);
|
||||
left = Math.min(left, b.left);
|
||||
right = Math.max(right, b.right);
|
||||
bottom = Math.max(bottom, b.bottom);
|
||||
});
|
||||
if (found) {
|
||||
return { top: top, left: left, width: right - left, height: bottom - top, bottom: bottom, right: right };
|
||||
}
|
||||
}
|
||||
|
||||
var b = $el[0].getBoundingClientRect();
|
||||
if (b.width === 0 && b.height === 0) return null;
|
||||
return { top: b.top, left: b.left, width: b.width, height: b.height, bottom: b.bottom, right: b.right };
|
||||
}
|
||||
|
||||
function updateTourPosition() {
|
||||
if (!$popover || !$popover.is(':visible') || !activeSteps.length) return;
|
||||
var step = activeSteps[currentStep];
|
||||
if (!step) return;
|
||||
|
||||
var rect = getTargetRect(step);
|
||||
if (rect) {
|
||||
var pad = 6;
|
||||
$highlight.removeClass('no-target').css({
|
||||
display : 'block',
|
||||
top : (rect.top - pad) + 'px',
|
||||
left : (rect.left - pad) + 'px',
|
||||
width : (rect.width + pad * 2) + 'px',
|
||||
height : (rect.height + pad * 2) + 'px'
|
||||
});
|
||||
} else {
|
||||
$highlight.removeClass('pulse').addClass('no-target').css({
|
||||
display: 'block', width: 0, height: 0, top: '50%', left: '50%'
|
||||
});
|
||||
}
|
||||
positionPopover(rect);
|
||||
}
|
||||
|
||||
function createElements() {
|
||||
$('body').append(
|
||||
'<div id="tour-overlay"></div>' +
|
||||
@@ -3278,9 +3399,14 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
$highlight = $('#tour-highlight');
|
||||
$popover = $('#tour-popover');
|
||||
$overlay.on('click', end);
|
||||
|
||||
$(window).on('resize.sktour scroll.sktour', function () {
|
||||
updateTourPosition();
|
||||
});
|
||||
}
|
||||
|
||||
function destroyElements() {
|
||||
$(window).off('resize.sktour scroll.sktour');
|
||||
if (checkInterval) { clearInterval(checkInterval); checkInterval = null; }
|
||||
if ($highlight) { $highlight.css('transition', ''); }
|
||||
updateFloatingBarVisibility();
|
||||
@@ -3334,7 +3460,7 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
}
|
||||
|
||||
function doRender(retries) {
|
||||
var rect = $el.length ? $el[0].getBoundingClientRect() : null;
|
||||
var rect = getTargetRect(step);
|
||||
if ((!rect || rect.width === 0) && retries > 0) {
|
||||
setTimeout(function () { doRender(retries - 1); }, 150);
|
||||
return;
|
||||
@@ -3343,27 +3469,10 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
$el[0].scrollIntoView({ behavior: 'instant', block: 'center' });
|
||||
}
|
||||
setTimeout(function () {
|
||||
var r;
|
||||
if (step.colHighlight && $el.length > 0) {
|
||||
// Hanya ambil elemen dari tabel PERTAMA yang ditemukan
|
||||
var $firstTable = $el.first().closest('table');
|
||||
var $cells = $el.filter(function () {
|
||||
return $(this).closest('table').is($firstTable);
|
||||
});
|
||||
var top = Infinity, left = Infinity, right = -Infinity, bottom = -Infinity;
|
||||
$cells.each(function () {
|
||||
var b = this.getBoundingClientRect();
|
||||
if (b.width === 0) { return; }
|
||||
top = Math.min(top, b.top);
|
||||
left = Math.min(left, b.left);
|
||||
right = Math.max(right, b.right);
|
||||
bottom = Math.max(bottom, b.bottom);
|
||||
});
|
||||
r = { top: top, left: left, width: right - left, height: bottom - top, bottom: bottom };
|
||||
} else {
|
||||
r = $el.length ? $el[0].getBoundingClientRect() : null;
|
||||
var r = getTargetRect(step);
|
||||
if (!r || r.width === 0) {
|
||||
r = { top: window.innerHeight/2-50, left: window.innerWidth/2-170, width: 340, height: 100, bottom: window.innerHeight/2+50 };
|
||||
}
|
||||
if (!r || r.width === 0) { r = { top: window.innerHeight/2-50, left: window.innerWidth/2-170, width: 340, height: 100, bottom: window.innerHeight/2+50 }; }
|
||||
var pad = 6;
|
||||
var wasHidden = $highlight.css('display') === 'none';
|
||||
$highlight.removeClass('no-target pulse').css({
|
||||
@@ -3411,8 +3520,6 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
function renderPopover(step, rect) {
|
||||
var isFirst = currentStep === 0;
|
||||
var isLast = currentStep === activeSteps.length - 1;
|
||||
var elExists = step.element ? $(step.element).length > 0 : false;
|
||||
var isBlocked = (step.requireCheck || step.waitForClick || step.requireSelect) && elExists;
|
||||
|
||||
var dots = activeSteps.map(function (_, i) {
|
||||
return '<div class="dot' + (i === currentStep ? ' active' : '') + '"></div>';
|
||||
@@ -3420,7 +3527,7 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
|
||||
var nextBtn = isLast
|
||||
? '<button class="btn btn-sm btn-success" id="tour-finish-btn"><i class="uil-check"></i> Selesai</button>'
|
||||
: '<button class="btn btn-sm btn-primary" id="tour-next-btn" ' + (isBlocked ? 'disabled' : '') + '>Berikutnya <i class="uil-arrow-right"></i></button>';
|
||||
: '<button class="btn btn-sm btn-primary" id="tour-next-btn">Berikutnya <i class="uil-arrow-right"></i></button>';
|
||||
|
||||
$popover.html(
|
||||
'<button class="tour-close-btn" id="tour-close-btn">×</button>' +
|
||||
@@ -3430,7 +3537,7 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
'<div class="tour-text">' + step.text + '</div>' +
|
||||
'<div class="tour-nav">' +
|
||||
'<button class="btn btn-sm btn-outline-secondary" id="tour-skip-btn">Lewati</button>' +
|
||||
'<div class="d-flex gap-2">' +
|
||||
'<div class="tour-nav-buttons">' +
|
||||
(!isFirst ? '<button class="btn btn-sm btn-outline-primary" id="tour-prev-btn"><i class="uil-arrow-left"></i> Kembali</button>' : '') +
|
||||
nextBtn +
|
||||
'</div>' +
|
||||
@@ -3455,7 +3562,8 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
checkInterval = setInterval(function () {
|
||||
if (!$('#tour-overlay').length) { clearInterval(checkInterval); return; }
|
||||
if ($('table[id^="anggota-sk-"] td input[type=checkbox]:checked').length > 0) {
|
||||
$('#tour-next-btn').prop('disabled', false);
|
||||
// Indikasi visual bahwa anggota sudah dipilih
|
||||
$('#tour-next-btn').addClass('btn-pulse');
|
||||
clearInterval(checkInterval);
|
||||
checkInterval = null;
|
||||
}
|
||||
@@ -3464,7 +3572,6 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
|
||||
if (step.requireSelect) {
|
||||
if (checkInterval) { clearInterval(checkInterval); }
|
||||
// Nonaktifkan transisi highlight agar perluasan terasa real-time
|
||||
$highlight.css('transition', 'none');
|
||||
checkInterval = setInterval(function () {
|
||||
if (!$('#tour-overlay').length) { clearInterval(checkInterval); return; }
|
||||
@@ -3486,39 +3593,39 @@ $('#btnKonfirmasiBatalkan').on('click', function() {
|
||||
$highlight.css({ top: (cR.top - pad) + 'px', left: (cR.left - pad) + 'px', width: (cR.width + pad * 2) + 'px', height: (cR.height + pad * 2) + 'px' });
|
||||
}
|
||||
}
|
||||
|
||||
// Cek apakah kategori sudah dipilih
|
||||
var selected = $('.kategori-select').filter(function () {
|
||||
var v = $(this).val();
|
||||
return v !== null && v !== '' && v !== undefined;
|
||||
}).length > 0;
|
||||
if (selected) {
|
||||
$('#tour-next-btn').prop('disabled', false);
|
||||
} else {
|
||||
$('#tour-next-btn').prop('disabled', true);
|
||||
}
|
||||
}, 80);
|
||||
}
|
||||
}
|
||||
|
||||
function positionPopover(rect) {
|
||||
var pw = 340, ph = $popover.outerHeight() || 200;
|
||||
if (!$popover || !$popover.length) { return; }
|
||||
var pw = $popover.outerWidth() || 350;
|
||||
var ph = $popover.outerHeight() || 200;
|
||||
var vw = window.innerWidth, vh = window.innerHeight, pad = 14;
|
||||
var top, left;
|
||||
|
||||
if (!rect) {
|
||||
top = (vh - ph) / 2;
|
||||
left = (vw - pw) / 2;
|
||||
} else {
|
||||
if (rect.bottom + pad + ph < vh) {
|
||||
// Posisi vertikal: preferensi di bawah elemen, lalu di atas elemen, jika tidak muat di tengah
|
||||
if (rect.bottom + pad + ph <= vh) {
|
||||
top = rect.bottom + pad;
|
||||
} else if (rect.top - pad - ph > 0) {
|
||||
} else if (rect.top - pad - ph >= 0) {
|
||||
top = rect.top - pad - ph;
|
||||
} else {
|
||||
top = Math.max(pad, (vh - ph) / 2);
|
||||
top = (vh - ph) / 2;
|
||||
}
|
||||
|
||||
left = rect.left + (rect.width / 2) - (pw / 2);
|
||||
left = Math.max(pad, Math.min(left, vw - pw - pad));
|
||||
}
|
||||
|
||||
// Strict clamping ke viewport browser agar popover tidak pernah terpotong atau hilang
|
||||
var maxLeft = Math.max(pad, vw - pw - pad);
|
||||
var maxTop = Math.max(pad, vh - ph - pad);
|
||||
left = Math.max(pad, Math.min(left, maxLeft));
|
||||
top = Math.max(pad, Math.min(top, maxTop));
|
||||
|
||||
$popover.css({ top: top + 'px', left: left + 'px' });
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
}
|
||||
|
||||
#diterima thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
}
|
||||
|
||||
#ditolak thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
|
||||
#table-belum-diklaim thead th,
|
||||
#table-sudah-diklaim thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
}
|
||||
|
||||
#perlu-perbaikan thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
}
|
||||
|
||||
#sudah-diperbaiki thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
}
|
||||
|
||||
#pegawais thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
|
||||
<div class="modal-dialog modal-lg modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header border-0" style="background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%);">
|
||||
<div class="modal-header border-0" style="background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);">
|
||||
<h5 class="modal-title text-white" id="modalTambahMatkulLabel">
|
||||
<i class="uil-plus me-1"></i> Tambah Mata Kuliah
|
||||
</h5>
|
||||
@@ -292,32 +292,30 @@
|
||||
</div>
|
||||
|
||||
<!-- Floating Action Bar Backdrop -->
|
||||
<div id="floatingActionBarBackdrop"
|
||||
style="display:none; position:fixed; bottom:0; left:0; right:0; height:140px; z-index:1049;
|
||||
background:linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
|
||||
pointer-events:none;"></div>
|
||||
<div id="floatingActionBarBackdrop" style="display:none; pointer-events:none;"></div>
|
||||
|
||||
<!-- Floating Action Bar -->
|
||||
<div id="floatingActionBar"
|
||||
style="display:none; position:fixed; bottom:52px; left:50%; transform:translateX(-50%); z-index:1050;
|
||||
background:#ffffff; border:1px solid #dee2e6; border-radius:8px;
|
||||
padding:10px 20px; box-shadow:0 8px 32px rgba(0,0,0,0.15); white-space:nowrap;">
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<span class="text-dark fw-semibold me-2">
|
||||
<i class="uil-check-circle text-primary"></i>
|
||||
<span id="floatingSelectedCount">0</span> mata kuliah dipilih
|
||||
style="display:none; position:fixed; bottom:28px; left:50%; transform:translateX(-50%); z-index:1050;
|
||||
background:#ffffff; border:1px solid #cbd5e1; border-radius:50px;
|
||||
padding:8px 20px; box-shadow:0 12px 32px -4px rgba(15,23,42,0.28), 0 4px 12px rgba(15,23,42,0.12);
|
||||
white-space:nowrap; max-width:calc(100vw - 32px); overflow-x:auto;">
|
||||
<div class="d-flex align-items-center gap-2 flex-nowrap">
|
||||
<span class="text-dark fw-semibold me-2 d-inline-flex align-items-center gap-1.5">
|
||||
<i class="uil-check-circle text-primary fs-5"></i>
|
||||
<span><span id="floatingSelectedCount" class="fw-bold">0</span> mata kuliah dipilih</span>
|
||||
</span>
|
||||
<button type="button" class="btn btn-sm btn-outline-primary" id="btnDetailSelected">
|
||||
<button type="button" class="btn btn-sm btn-outline-primary rounded-pill px-3" id="btnDetailSelected">
|
||||
<i class="uil-eye"></i> Detail
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-warning" id="btnEditSelected">
|
||||
<button type="button" class="btn btn-sm btn-outline-warning rounded-pill px-3" id="btnEditSelected">
|
||||
<i class="uil-edit"></i> Edit
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-danger" id="btnHapusSelected">
|
||||
<button type="button" class="btn btn-sm btn-outline-danger rounded-pill px-3" id="btnHapusSelected">
|
||||
<i class="uil-trash-alt"></i> Hapus
|
||||
</button>
|
||||
<span style="width:1px; height:20px; background:#dee2e6; display:inline-block;"></span>
|
||||
<button type="button" class="btn btn-sm btn-link text-muted px-0" id="btnBatalPilih">
|
||||
<span style="width:1px; height:20px; background:#cbd5e1; display:inline-block; margin:0 4px;"></span>
|
||||
<button type="button" class="btn btn-sm btn-link text-muted px-1 text-decoration-none hover:text-danger" id="btnBatalPilih">
|
||||
<i class="uil-times-circle"></i> Batal Pilih
|
||||
</button>
|
||||
</div>
|
||||
@@ -485,7 +483,7 @@
|
||||
<div class="modal-dialog modal-lg modal-dialog-scrollable">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header border-0 pb-3"
|
||||
style="background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%);">
|
||||
style="background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);">
|
||||
<div>
|
||||
<h5 class="modal-title text-white mb-1" id="modalDetailMatkulLabel">
|
||||
<i class="uil-book-open me-1"></i> Detail Mata Kuliah
|
||||
@@ -653,6 +651,7 @@
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#floatingActionBar, #floatingActionBarBackdrop').appendTo('body');
|
||||
// Load fakultas untuk filter tabel + modal tambah
|
||||
$.ajax({
|
||||
url: "{{ route('tri-dharma.mata-kuliah.get-fakultas') }}",
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
|
||||
<div class="modal-dialog modal-lg modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header border-0" style="background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%);">
|
||||
<div class="modal-header border-0" style="background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);">
|
||||
<h5 class="modal-title text-white" id="modalTambahMatkulLabel">
|
||||
<i class="uil-plus me-1"></i> Tambah Mata Kuliah
|
||||
</h5>
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
}
|
||||
|
||||
.tab-content .table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
}
|
||||
|
||||
#pegawai-table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#pegawai-table tbody tr:hover > * {
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
}
|
||||
|
||||
.tab-content .table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
}
|
||||
|
||||
#pegawai-table thead th {
|
||||
background: linear-gradient(135deg, #2080f5 0%, #0166d2 100%) !important;
|
||||
background: #2563eb !important; background-color: #2563eb !important;
|
||||
color: #fff !important;
|
||||
border-color: #0166d2 !important;
|
||||
border-color: #2563eb !important;
|
||||
}
|
||||
|
||||
#pegawai-table tbody tr:hover > * {
|
||||
|
||||
Reference in New Issue
Block a user