feat: add initial views and controllers for verification and management modules
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user