modify dashboard and services fetch source data

This commit is contained in:
pcalengratha
2026-04-08 14:48:42 +07:00
parent f0a5079b15
commit 4534f502e2
9 changed files with 1322 additions and 241 deletions

View File

@@ -92,7 +92,8 @@
.content-area {
padding: 20px;
background: #f8f9fa;
min-height: calc(100vh - 60px);
/*min-height: calc(100vh - 60px);*/
min-height: calc(100vh - 110px);
}
.brand-logo {
@@ -107,9 +108,65 @@
border: 1px solid #E5E7EB;
}
.form-select{
border-radius: 0px !important;
}
.shadow-sm{
box-shadow: none !important;
}
.card h3 {
color: #0B8F3C;
}
.slide-wrapper {
position: relative;
overflow: hidden;
height: 100%;
min-height: 400px;
}
.slide {
position: absolute;
width: 100%;
top: 0;
left: 100%;
opacity: 0;
transition: all 0.5s ease-in-out;
}
.slide.active {
left: 0;
opacity: 1;
z-index: 2;
}
.slide.prev {
left: -100%;
opacity: 0;
}
/* Buttons */
.slide-btn {
position: absolute;
top: 10%;
transform: translateY(-50%);
background: rgba(0, 128, 0, 0.43);
color: white;
border: none;
padding: 8px 15px;
cursor: pointer;
z-index: 10;
}
.prev-btn { right: 75px; }
.next-btn { right: 25px; }
.slide-btn:hover {
background: rgba(7, 120, 24, 0.8);
}
</style>
</head>
@@ -135,31 +192,31 @@
Overview
</a>
<!-- @foreach($programs as $program)
<a href="/dashboard/{{ strtolower($program->code) }}"
@foreach($programs as $program)
<a href="/dashboard/{{ strtolower($program->code) }}" title="{{$program->name_en}}"
class="nav-item {{ request()->is('dashboard/' . strtolower($program->code)) ? 'active-tab' : '' }}">
{{ $program->code }}
</a>
@endforeach -->
@foreach($programs->where('code', '!=', 'NDS') as $program)
@if($program->code === 'SEQ')
<a href="/dashboard/seq"
class="nav-item {{ request()->is('dashboard/seq') ? 'active-tab' : '' }}">
SEQ
</a>
@else
<a href="/dashboard/{{ strtolower($program->code) }}"
class="nav-item {{ request()->is('dashboard/' . strtolower($program->code)) ? 'active-tab' : '' }}">
{{ $program->code }}
</a>
@endif
@endforeach
{{-- @foreach($programs->where('code', '!=', 'NDS') as $program)--}}
{{-- @if($program->code === 'SEQ')--}}
{{-- <a href="/dashboard/seq"--}}
{{-- class="nav-item {{ request()->is('dashboard/seq') ? 'active-tab' : '' }}">--}}
{{-- SEQ--}}
{{-- </a>--}}
{{-- @else--}}
{{-- <a href="/dashboard/{{ strtolower($program->code) }}"--}}
{{-- class="nav-item {{ request()->is('dashboard/' . strtolower($program->code)) ? 'active-tab' : '' }}">--}}
{{-- {{ $program->code }}--}}
{{-- </a>--}}
{{-- @endif--}}
{{-- @endforeach--}}
<div class="ms-auto d-flex align-items-center gap-4 pe-3">
<button type="button" onclick="reloadDataSource()" class="btn btn-sm btn-theme-outline">
<button type="button" onclick="reloadDataSource()" class="btn btn-sm btn-theme-outline" style="border-radius: 0px !important;">
Refresh Data
</button>
</div>
@@ -190,4 +247,4 @@
</body>
</html>
</html>