main
Ilham Wara Nugroho 2026-02-23 11:36:11 +07:00
parent d10cc7ca74
commit fc8e7d8b49
30 changed files with 153 additions and 131 deletions

View File

@ -240,7 +240,7 @@ if (!function_exists('renderMenu')) {
$html = '';
foreach ($parent as $p1) {
// echo $p1->MsMenuId.'<br>';
$child2 = Menu::where('status',true)->where('menu_type','sidebar')->where('parent_id',$p1->MsMenuId)->get();
$child2 = Menu::where('status',true)->where('menu_type','sidebar')->where('parent_id',$p1->MsMenuId)->orderBy('ordering','ASC')->get();
$access1 = permission('is_read', $p1->MsMenuId, 'menu', true);
$ch1 = count($child2) > 0 ? '' : '';

View File

@ -23,7 +23,7 @@ use App\Imports\Import;
class DatasetController extends Controller
{
protected $title = 'Dataset';
protected $title = 'Dataset Utama';
protected $template = 'modules.opendata.dataset';
protected $route = 'modules.opendata.dataset';
private $datasetRepository;
@ -38,7 +38,7 @@ class DatasetController extends Controller
$data['breadcrumbs'] = [
['name' => 'Dashboard','url' => url('dashboard')],
['name' => 'Open Data'],
['name' => 'Dataset Utama'],
['name' => 'Dataset','active' => true],
];
$data['title'] = $this->title;
@ -138,7 +138,7 @@ class DatasetController extends Controller
'publik' => @$row->publik,
'tahun' => @$row->tahun,
'template' => @$row->tabelData->name,
'created_at' => date('d-m-Y H:i:s',strtotime(@$row->created_at)),
'created_at' => date('d-m-Y',strtotime(@$row->created_at)),
'instansi' => @$row->instansi->name,
'action' => @$action,
'status' => @$status,
@ -262,7 +262,7 @@ class DatasetController extends Controller
{
$data['breadcrumbs'] = [
['name' => 'Dashboard','url' => url('dashboard')],
['name' => 'Open Data'],
['name' => 'Dataset Utama'],
['name' => 'Dataset','active' => true],
];
$keyId = decode_id($id);
@ -286,7 +286,7 @@ class DatasetController extends Controller
{
$data['breadcrumbs'] = [
['name' => 'Dashboard','url' => url('dashboard')],
['name' => 'Open Data'],
['name' => 'Dataset Utama'],
['name' => 'Dataset','active' => true],
];
$keyId = decode_id($id);

View File

@ -29,7 +29,7 @@ class DatasetTambahanController extends Controller
$data['breadcrumbs'] = [
['name' => 'Dashboard','url' => url('dashboard')],
['name' => 'Open Data'],
['name' => 'Dataset SLHD'],
['name' => 'Dataset Tambahan','active' => true],
];
$data['title'] = $this->title;
@ -100,7 +100,7 @@ class DatasetTambahanController extends Controller
'name' => @$row->name,
'publik' => @$row->publik,
'tahun' => @$row->tahun,
'created_at' => date('d-m-Y H:i:s',strtotime(@$row->created_at)),
'created_at' => date('d-m-Y',strtotime(@$row->created_at)),
'instansi' => @$row->instansi->name,
'action' => @$action,
'status' => @$status,
@ -275,7 +275,7 @@ class DatasetTambahanController extends Controller
{
$data['breadcrumbs'] = [
['name' => 'Dashboard','url' => url('dashboard')],
['name' => 'Open Data'],
['name' => 'Dataset SLHD'],
['name' => 'Dataset Tambahan','active' => true],
];
$keyId = decode_id($id);
@ -298,7 +298,7 @@ class DatasetTambahanController extends Controller
{
$data['breadcrumbs'] = [
['name' => 'Dashboard','url' => url('dashboard')],
['name' => 'Open Data'],
['name' => 'Dataset SLHD'],
['name' => 'Dataset Tambahan','active' => true],
];
$keyId = decode_id($id);

View File

@ -4799,10 +4799,10 @@
return "Loading, please wait"
},
formatRecordsPerPage: function(t) {
return "".concat(t, " rows per page")
return "".concat(t, " baris per halaman")
},
formatShowingRows: function(t, e, n, i) {
return void 0 !== i && i > 0 && i > n ? "Showing ".concat(t, " to ").concat(e, " of ").concat(n, " rows (filtered from ").concat(i, " total rows)") : "Showing ".concat(t, " to ").concat(e, " of ").concat(n, " rows")
return void 0 !== i && i > 0 && i > n ? "Menampilkan ".concat(t, " sampai ").concat(e, " dari ").concat(n, " rows (filtered from ").concat(i, " total rows)") : "Menampilkan ".concat(t, " sampai ").concat(e, " dari ").concat(n, " baris")
},
formatSRPaginationPreText: function() {
return "previous page"
@ -4814,7 +4814,7 @@
return "next page"
},
formatDetailPagination: function(t) {
return "Showing ".concat(t, " rows")
return "Menampilkan ".concat(t, " rows")
},
formatSearch: function() {
return "Search"

View File

@ -259,11 +259,11 @@
<table class="w-full text-left border-collapse">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Judul Dataset</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Kategori</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Terakhir Update</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Status</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-right">Aksi</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Judul Dataset</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Kategori</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Terakhir Update</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Status</th>
<th class="text-[10px] border font-bold text-slate-900 text-center text-right">Aksi</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-100">

View File

@ -38,9 +38,9 @@
</select>
</div>
<div class="w-full">
<h1 class="mb-3 font-bold text-left">Resource Data</h1>
<h1 class="mb-3 font-bold text-left">Sumber Data</h1>
<select class="p-3 bg-white border text-sm select2 rounded-xl w-full" name="resource_id" id="">
<option value="">-- Pilih Resource Data --</option>
<option value="">-- Pilih Sumber Data --</option>
@foreach ($template as $dataTemp)
<option {{ decode_id(@request()->resource_id) == $dataTemp->MsTemplateId ? 'selected' : '' }} value="{{encode_id($dataTemp->MsTemplateId)}}">{{$dataTemp->name}}</option>
@endforeach

View File

@ -38,9 +38,9 @@
</select>
</div>
<div class="w-full">
<h1 class="mb-3 font-bold text-left">Resource Data</h1>
<h1 class="mb-3 font-bold text-left">Sumber Data</h1>
<select class="p-3 bg-white border text-sm select2 rounded-xl w-full" name="resource_id" id="">
<option value="">-- Pilih Resource Data --</option>
<option value="">-- Pilih Sumber Data --</option>
@foreach ($template as $dataTemp)
<option {{ decode_id(@request()->resource_id) == $dataTemp->MsTemplateId ? 'selected' : '' }} value="{{encode_id($dataTemp->MsTemplateId)}}">{{$dataTemp->name}}</option>
@endforeach

View File

@ -43,9 +43,9 @@
</select>
</div>
<div class="w-full">
<h1 class="mb-3 text-left">Resource Data</h1>
<h1 class="mb-3 text-left">Sumber Data</h1>
<select class="form-input select2 rounded-[20px] w-full" name="resource_id" id="">
<option value="">-- Pilih Resource Data --</option>
<option value="">-- Pilih Sumber Data --</option>
@foreach ($template as $dataTemp)
<option {{ decode_id(@request()->resource_id) == $dataTemp->MsTemplateId ? 'selected' : '' }} value="{{encode_id($dataTemp->MsTemplateId)}}">{{$dataTemp->name}}</option>
@endforeach

View File

@ -68,7 +68,19 @@
<i data-lucide="grid"></i>
</div>
<div>
<p class="text-xs text-slate-500 font-medium">Tabel Utama</p>
<p class="text-xs text-slate-500 font-medium">Dataset Utama</p>
<p class="font-bold text-xl">{{ $count['resource'] }}</p>
</div>
</div>
{{-- <span class="text-[10px] font-bold px-2 py-1 rounded-md bg-blue-100 text-blue-700">Cukup</span> --}}
</div>
<div class="flex items-center justify-between p-4 bg-slate-50 rounded-2xl border border-slate-100">
<div class="flex items-center space-x-4">
<div class="p-3 bg-white rounded-xl shadow-sm text-cyan-500">
<i data-lucide="grid"></i>
</div>
<div>
<p class="text-xs text-slate-500 font-medium">Dataset Tambahan</p>
<p class="font-bold text-xl">{{ $count['resource'] }}</p>
</div>
</div>
@ -87,7 +99,7 @@
<!-- DPSIR Framework -->
<section class="py-20 bg-blue-900 text-white overflow-hidden relative">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h3 class="text-center text-3xl font-bold mb-4">8 Matra DPSIR</h3>
<h3 class="text-center text-3xl font-bold mb-4">Hasil Analisis DPSIR untuk 8 Matra Lingkungan</h3>
<p class="text-center text-blue-200 max-w-2xl mx-auto mb-16">
Analisis hubungan kausalitas antara aktivitas manusia dan perubahan lingkungan untuk merumuskan respon kebijakan yang tepat.
</p>

View File

@ -70,7 +70,7 @@
<div class="relative z-10 flex flex-col gap-6 justify-between h-full">
<div class="flex justify-between items-start">
<div>
<h3 class="text-lg md:text-xl leading-tight text-white">Jumlah Total Keseluruhan Resource Data</h3>
<h3 class="text-lg md:text-xl leading-tight text-white">Jumlah Total Keseluruhan Sumber Data</h3>
</div>
<div class="icon-container relative" style="translate: none; rotate: none; scale: none; transform: translate(5px, -5px) scale(1.2);">
<svg width="45" height="45" viewBox="0 0 49 49" fill="none" xmlns="http://www.w3.org/2000/svg">
@ -120,8 +120,8 @@
<img src="{{ asset('assets/character 2.png') }}" class="left-0">
</div>
<div class="p-5 flex flex-col gap-3">
<h3 class="text-3xl poppins-bold active">Resource Data Terbaru</h3>
<p class="lg:w-150">Temukan informasi terbaru dan terpercaya dari koleksi 60 resource data kami. Berikut beberapa data pilihan yang dapat Anda akses langsung. Untuk melihat semua data, silakan kunjungi halaman penuh</p>
<h3 class="text-3xl poppins-bold active">Sumber Data Terbaru</h3>
<p class="lg:w-150">Temukan informasi terbaru dan terpercaya dari koleksi 60 Sumber Data kami. Berikut beberapa data pilihan yang dapat Anda akses langsung. Untuk melihat semua data, silakan kunjungi halaman penuh</p>
<div class="flex flex-col mt-10 gap-5">
@foreach($template as $dataTemp)
<div class="flex">

View File

@ -157,7 +157,7 @@
<!-- Menu Desktop -->
<nav class="hidden lg:flex gap-8">
<a href="{{ url('/') }}" class="{{ Request::is('/*') ? 'active font-bold' : 'text-white'}} ">Home</a>
<a href="{{ url('resource-data') }}" class="{{ Request::is('resource-data*') ? 'active font-bold' : 'text-white'}} hover:text-accent">Resource Data</a>
<a href="{{ url('resource-data') }}" class="{{ Request::is('resource-data*') ? 'active font-bold' : 'text-white'}} hover:text-accent">Sumber Data</a>
<a href="{{ url('dataset') }}" class="{{ Request::is('dataset') ? 'active font-bold' : 'text-white'}} hover:text-accent">Dataset</a>
<a href="{{ url('dataset-tambahan') }}" class="{{ Request::is('dataset-tambahan*') ? 'active font-bold' : 'text-white'}} hover:text-accent">Dataset Tambahan</a>
<a href="{{ url('login') }}" class="{{ Request::is('login*') ? 'active font-bold' : 'text-white'}} hover:text-accent">Login</a>
@ -176,7 +176,7 @@
<!-- Menu Mobile -->
<div id="mobile-menu" class="hidden flex flex-col bg-white px-6 py-4 md:hidden">
<a href="{{ url('/') }}" class="py-2 text-[#103760] hover:text-[#E9811A]">Home</a>
<a href="{{ url('resource-data') }}" class="py-2 text-[#103760] hover:text-[#E9811A]">Resource Data</a>
<a href="{{ url('resource-data') }}" class="py-2 text-[#103760] hover:text-[#E9811A]">Sumber Data</a>
<a href="{{ url('/dataset') }}" class="py-2 text-[#103760] hover:text-[#E9811A]">Dataset</a>
<a href="{{ url('/dataset-tambahan') }}" class="py-2 text-[#103760] hover:text-[#E9811A]">Dataset Tambahan</a>
<a href="{{ url('/help') }}" class="py-2 text-[#103760] hover:text-[#E9811A]">Bantuan</a>

View File

@ -21,6 +21,16 @@
<link href="{{asset('assets/css/icons.min.css')}}" rel="stylesheet" type="text/css">
@yield('css')
<style>
.bootstrap-table .fixed-table-container .table td, .bootstrap-table .fixed-table-container .table th{
vertical-align: top!important;
font-size: 12px!important;
}
.bootstrap-table .fixed-table-container .table td{
text-align: left!important;
padding:10px;
font-weight: 500!important;
}
body { font-family: 'Plus Jakarta Sans', sans-serif; }
/* Sidebar Transitions */

View File

@ -3,7 +3,7 @@
<div class="flex-1 overflow-y-auto p-8 custom-scrollbar">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-3 gap-6 mb-8">
<!-- Card 1 -->
<div class="bg-white p-6 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-shadow">
<div class="flex justify-between items-start mb-4">
@ -11,7 +11,7 @@
<i data-lucide="database" class="w-5 h-5"></i>
</div>
</div>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-wider">Total Dataset</p>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-wider">Dataset Utama Terinput</p>
<h4 class="text-2xl font-black text-slate-900 mt-1">{{ $dataset }}</h4>
</div>
<!-- Card 2 -->
@ -21,7 +21,7 @@
<i data-lucide="database" class="w-5 h-5"></i>
</div>
</div>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-wider">Total Dataset Tambahan</p>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-wider">Dataset Tambahan Terinput</p>
<h4 class="text-2xl font-black text-slate-900 mt-1">{{$datasetTambahan}}</h4>
</div>
<!-- Card 3 -->
@ -31,27 +31,27 @@
<i data-lucide="users" class="w-5 h-5"></i>
</div>
</div>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-wider">Organisasi Terdaftar</p>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-wider">Instansi Terdaftar</p>
<h4 class="text-2xl font-black text-slate-900 mt-1">{{$instansi}}</h4>
</div>
<!-- Card 4 -->
<div class="bg-white p-6 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-shadow">
{{-- <div class="bg-white p-6 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-shadow">
<div class="flex justify-between items-start mb-4">
<div class="p-2 bg-purple-50 rounded-lg text-purple-600">
<i data-lucide="table" class="w-5 h-5"></i>
</div>
{{-- <span class="text-xs font-bold text-red-500 bg-red-50 px-2 py-1 rounded">-2%</span> --}}
<span class="text-xs font-bold text-red-500 bg-red-50 px-2 py-1 rounded">-2%</span>
</div>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-wider">Tabel Kinerja DPSIR</p>
<h4 class="text-2xl font-black text-slate-900 mt-1">{{ $tabelData }}</h4>
</div>
</div> --}}
</div>
<!-- Datatable Section -->
<div class="bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden">
<div class="p-6 border-b border-slate-100 flex flex-col md:flex-row md:items-center justify-between gap-4">
<div>
<h3 class="text-lg font-bold text-slate-900">Mapping Organisasi Dataset Lingkungan - Tahun {{date('Y')}}</h3>
<h3 class="text-lg font-bold text-slate-900">Mapping Dataset SLHD - Tahun {{date('Y')}}</h3>
{{-- <p class="text-xs text-slate-500 font-medium">Pengelolaan data masuk dari berbagai stasiun pemantauan.</p> --}}
</div>
{{-- <div class="flex items-center space-x-2">
@ -77,12 +77,12 @@
data-page-size="10"
data-id-field="id"
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<thead class="bg-slate-100 border-b border-slate-100">
<tr>
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Instansi</th>
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-width="20" data-field="dataset">Dataset</th>
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-width="20" data-field="persentase">Persentase</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Instansi</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="20" data-field="dataset">Dataset</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="20" data-field="persentase">Persentase</th>
</tr>
</thead>
<tbody></tbody>
@ -90,11 +90,11 @@
<table class="w-full text-left border-collapse hidden">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Judul Dataset</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Kategori</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Terakhir Update</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">Status</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-right">Aksi</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Judul Dataset</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Kategori</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Terakhir Update</th>
<th class="text-[10px] border font-bold text-slate-900 text-center">Status</th>
<th class="text-[10px] border font-bold text-slate-900 text-center text-right">Aksi</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-100">

View File

@ -13,26 +13,26 @@
data-page-size="700">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" width="20">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" >Menu</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" width="100"><label><input type="checkbox" class="checkread"> Read</label></th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" width="100"><label><input type="checkbox" class="checkadd"> Create</label></th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" width="100"><label><input type="checkbox" class="checkedit"> Update</label></th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" width="100"><label><input type="checkbox" class="checkdel"> Delete</label></th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" width="100"><label><input type="checkbox" class="checkdownload"> Download</label></th>
<th class="text-[10px] border font-bold text-slate-900 text-center" width="20">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" >Menu</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" width="100"><label><input type="checkbox" class="checkread"> Read</label></th>
<th class="text-[10px] border font-bold text-slate-900 text-center" width="100"><label><input type="checkbox" class="checkadd"> Create</label></th>
<th class="text-[10px] border font-bold text-slate-900 text-center" width="100"><label><input type="checkbox" class="checkedit"> Update</label></th>
<th class="text-[10px] border font-bold text-slate-900 text-center" width="100"><label><input type="checkbox" class="checkdel"> Delete</label></th>
<th class="text-[10px] border font-bold text-slate-900 text-center" width="100"><label><input type="checkbox" class="checkdownload"> Download</label></th>
</tr>
</thead>
<tbody>
@foreach($menu as $key1 => $parent)
<tr>
<td class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">
<td class="text-[10px] border font-bold text-slate-900 text-center">
@if(count($parent['level1']) > 0)
<a href="javascript:;" class="show_detail" data-id="{{$parent['id']}}" data-status="1">
<i id="parent{{$parent['id']}}" class="ri-subtract-line"></i>
</a>
@endif
</td>
<td class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">{{$parent['title']}}</td>
<td class="text-[10px] border font-bold text-slate-900 text-center">{{$parent['title']}}</td>
<td class="gridjs-td gridjs-th text-sm text-gray-500 text-center">
<input type="checkbox" name="is_read[]"
value="is_read+{{$parent['id']}}" @if($parent['checked']['is_read'] == 1) {{'checked'}} @endif>
@ -58,7 +58,7 @@
@if($parent['level1'])
@foreach($parent['level1'] as $key2 => $level1)
<tr class="parent_{{$parent['id']}} hide_child">
<td class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">
<td class="text-[10px] border font-bold text-slate-900 text-center">
@if(count($level1['level2']) > 0)<a href="javascript:;"
class="show_detail"
data-id="{{$level1['id']}}"
@ -66,7 +66,7 @@
id="parent{{$level1['id']}}"
class="ri-subtract-line"></i></a>@endif
</td>
<td class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" style="text-indent:30px;">--- {{$level1['title']}}</td>
<td class="text-[10px] border font-bold text-slate-900 text-center" style="text-indent:30px;">--- {{$level1['title']}}</td>
<td class="gridjs-td gridjs-th text-sm text-gray-500 text-center">
<input type="checkbox" name="is_read[]" value="is_read+{{$level1['id']}}" @if($level1['checked']['is_read'] == 1) {{'checked'}} @endif>
</td>
@ -88,7 +88,7 @@
@if($level1['level2'])
@foreach($level1['level2'] as $key3 => $level2)
<tr class="parent_{{$level1['id']}} hide_child">
<td class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">
<td class="text-[10px] border font-bold text-slate-900 text-center">
@if(count($level2['level3']) > 0)<a href="javascript:;"
class="show_detail"
data-id="{{$level2['id']}}"
@ -116,7 +116,7 @@
@if($level2['level3'])
@foreach($level2['level3'] as $key4 => $level3)
<tr class="parent_{{$level2['id']}} hide_child">
<td class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">
<td class="text-[10px] border font-bold text-slate-900 text-center">
@if(count($level3['level4']) > 0)<a href="javascript:;"
class="show_detail"
data-id="{{$level3['id']}}"
@ -144,7 +144,7 @@
@if($level3['level4'])
@foreach($level3['level4'] as $key5 => $level4)
<tr class="parent_{{$level3['id']}} hide_child">
<td class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest">
<td class="text-[10px] border font-bold text-slate-900 text-center">
<span style="color: #7F8FA4">{{$level4['id']}}</span>
</td>
<td style="text-indent: 130px">------------ {{$level4['title']}}</td>

View File

@ -27,9 +27,9 @@
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Name</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Name</th>
</tr>
</thead>
<tbody class="gridjs-tbody"></tbody>

View File

@ -27,10 +27,10 @@
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Name</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="role">Role</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Name</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="role">Role</th>
</tr>
</thead>
</table>

View File

@ -58,7 +58,7 @@
@enderror
</div>
<div class="flex gap-4">
<label class="mb-3 w-1/2 font-semibold required">Resource Data</label>
<label class="mb-3 w-1/2 font-semibold required">Sumber Data</label>
<select name="resource_data[]" required class="p-2 w-full border resource_data select2 @error('resource_data') is-invalid @enderror" id="" multiple>
<option value="">-</option>
@foreach($template as $dataTemplate)

View File

@ -27,11 +27,11 @@
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
{{-- <th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-field="logo">Logo</th> --}}
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Name</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="parent">Jenis Instansi</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
{{-- <th class="text-[10px] border font-bold text-slate-900 text-center text-center" data-field="logo">Logo</th> --}}
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Name</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="parent">Jenis Instansi</th>
</tr>
</thead>
<tbody class=""></tbody>

View File

@ -13,7 +13,7 @@
<div class="p-6">
<div class="grid lg:grid-cols-2 gap-3">
<div class="mb-3">
<label class="mb-3">Nama Resource Data</label>
<label class="mb-3">Nama Sumber Data</label>
<input type="text" value="{{@$item->name ? @$item->name : old('name')}}" name="name" class="form-input @error('name') is-invalid @enderror" placeholder="Masukan Nama" required>
@error('name')
<span class="invalid-feedback" style="display: block!important;"><strong>{{$message}}</strong></span>

View File

@ -27,12 +27,12 @@
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="tahun">Tahun</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-field="name">Name</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="nomor_tabel">Nomor Tabel</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-field="jml_kolom">Jumlah Kolom</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="tahun">Tahun</th>
<th class="text-[10px] border font-bold text-slate-900 text-center text-center" data-field="name">Name</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="nomor_tabel">Nomor Tabel</th>
<th class="text-[10px] border font-bold text-slate-900 text-center text-center" data-field="jml_kolom">Jumlah Kolom</th>
</tr>
</thead>
<tbody class="gridjs-tbody"></tbody>

View File

@ -24,11 +24,11 @@
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Name</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-field="order">Order</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-field="key">Key</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Name</th>
<th class="text-[10px] border font-bold text-slate-900 text-center text-center" data-field="order">Order</th>
<th class="text-[10px] border font-bold text-slate-900 text-center text-center" data-field="key">Key</th>
</tr>
</thead>
<tbody></tbody>

View File

@ -27,9 +27,9 @@
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<tr>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Name</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Name</th>
</tr>
</thead>
<tbody></tbody>

View File

@ -6,7 +6,7 @@
{{csrf_field()}}
<input type="hidden" name="secure_id" value="{{@$keyId}}">
<div class="flex flex-col p-3 gap-3">
<h5 class="text-lg text-slate-700 font-bold">Informasi Instansi Dataset</h5>
<h5 class="text-lg text-slate-700 font-bold">Informasi Instansi</h5>
<hr>
<div class="flex gap-4 mt-5">
<label class="mb-3 w-1/2 font-semibold required">Instansi</label>
@ -21,7 +21,7 @@
@enderror
</div>
<div class="flex gap-4">
<label class="mb-3 w-1/2 font-semibold required">Resource Data Related</label>
<label class="mb-3 w-1/2 font-semibold required">Sumber Data Terkait</label>
<select name="template_id" required class="p-2 border rounded w-full template_id select2 @error('template_id') is-invalid @enderror" id="">
<option value="">-</option>
@foreach($template as $dataTemplate)
@ -43,10 +43,10 @@
</div>
<div class="flex gap-4">
<label class="mb-3 w-1/2 font-semibold required">Upload File</label>
<label class="mb-3 w-1/2 font-semibold required">Unggah Berkas</label>
<div class="flex flex-col w-full justify-center items-start gap-2">
<input type="file" accept=".xls,.xlsx" value="{{@$item->file ? @$item->file : old('file')}}" name="file" class="p-2 border rounded w-full @error('file') is-invalid @enderror" placeholder="Masukan File Dataset" {{@$item->file ? '' : 'required'}}>
<small><i>Masukan Ekstensi File : .xls,.xlsx</i></small>
<small><i>Masukan Ekstensi File : .pdf,.xls,.xlsx</i></small>
@if(@$item->file)
<a href="{{asset('uploads/'.$item->file)}}" class="btn bg-success text-white mt-3"><i class="ri-download-line"></i>&nbsp;Download File</a>
@endif
@ -65,10 +65,11 @@
</div>
<div class="flex gap-4">
<label class="mb-3 w-1/2 font-semibold">Tahun Sistem SLHD</label>
<select name="tahun" class="p-2 bg-white rounded border w-full" id="">
@for($i = (date('Y')-5); date('Y') >= $i ; $i++)
<select name="tahun" class="p-2 bg-gray-200 rounded border w-full" id="">
<option value="{{@$item->tahun ? @$item->tahun : date('Y')}}">{{@$item->tahun ? @$item->tahun : date('Y')}}</option>
{{-- @for($i = (date('Y')-5); date('Y') >= $i ; $i++)
<option {{ (@$item ? (@$item->tahun == $i ? 'selected' : '') : ($i == date('Y') ? 'selected' : '') )}} value="{{$i}}">{{$i}}</option>
@endfor
@endfor --}}
</select>
</div>
<div class="flex gap-4">

View File

@ -35,16 +35,15 @@
data-page-size="10"
data-id-field="id"
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<thead class="bg-slate-100 border-b border-slate-100">
<tr class="">
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="instansi">Nama Instansi</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Nama Dataset</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="template">Resource Data</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="tahun">Tahun</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="status">Status</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="created_at">Tanggal Dibuat</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="instansi">Nama Instansi</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Nama Dataset</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="template">Sumber Data Terkait</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="tahun">Tahun Sistem</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="created_at">Tanggal Input</th>
</tr>
</thead>
<tbody class=""></tbody>

View File

@ -25,7 +25,7 @@
<i class="ri-database-2-line text-primary text-xl"></i>
</div>
<div class="flex flex-col">
<div class="text-sm"><b>Resource Data</b></div>
<div class="text-sm"><b>Sumber Data</b></div>
<div class="text-xs">{{$item->template->name}}</div>
</div>
</div>

View File

@ -6,7 +6,7 @@
{{csrf_field()}}
<input type="hidden" name="secure_id" value="{{@$keyId}}">
<div class="flex flex-col p-3 gap-3">
<h5 class="text-lg text-slate-700 font-bold">Informasi Instansi Dataset</h5>
<h5 class="text-lg text-slate-700 font-bold">Informasi Instansi</h5>
<hr>
<div class="flex gap-4 mt-5">
<label class="mb-3 w-1/2 font-semibold required">Instansi</label>
@ -21,13 +21,13 @@
@enderror
</div>
<div class="flex gap-4">
<label class="mb-3 w-1/2 font-semibold required">Resource Data</label>
<label class="mb-3 w-1/2 font-semibold required">Sumber Data</label>
<div class="flex flex-col w-full justify-center items-start gap-2">
<select name="template_id" {{ @$item ? 'disabled' : 'required' }} class="p-2 bg-white rounded border template_id select2 @error('template_id') is-invalid @enderror" id="template_id">
@if(@$item)
<option value="">Tabel {{@$item->tabelData->nomor_tabel}} - {{@$item->tabelData->name}}</option>
@else
<option value="">-- Pilih Resource Data --</option>
<option value="">-- Pilih Sumber Data --</option>
@endif
</select>
@ -50,7 +50,7 @@
@enderror
</div>
<div class="flex gap-4">
<label class="mb-3 w-1/2 font-semibold {{ @$item ? '' : 'required' }} ">Upload File</label>
<label class="mb-3 w-1/2 font-semibold {{ @$item ? '' : 'required' }} ">Unggah Berkas</label>
<div class="flex flex-col w-full justify-center items-start gap-2">
<input type="file" accept=".xls,.xlsx" value="{{@$item->file ? @$item->file : old('file')}}" name="file" class="p-2 w-full bg-white rounded border @error('file') is-invalid @enderror" placeholder="Masukan File Dataset" {{ @$item ? 'disabled' : 'required' }} >
<small><i>Masukan Ekstensi File : .xls,.xlsx</i></small>
@ -72,10 +72,11 @@
</div>
<div class="flex gap-4">
<label class="mb-3 w-1/2 font-semibold">Tahun Sistem SLHD</label>
<select name="tahun" class="p-2 bg-white rounded border w-full" id="">
@for($i = (date('Y')-5); date('Y') >= $i ; $i++)
<select name="tahun" class="p-2 bg-gray-200 read-only rounded border w-full" id="">
<option value="{{@$item->tahun ? @$item->tahun : date('Y')}}">{{@$item->tahun ? @$item->tahun : date('Y')}}</option>
{{-- @for($i = (date('Y')-5); date('Y') >= $i ; $i++)
<option {{ (@$item ? (@$item->tahun == $i ? 'selected' : '') : ($i == date('Y') ? 'selected' : '') )}} value="{{$i}}">{{$i}}</option>
@endfor
@endfor --}}
</select>
</div>
<div class="flex gap-4">
@ -140,7 +141,7 @@
$(destino).empty();
if(selectTo=='template_id'){
$(destino).append('<option value="">-PILIH RESOURCE DATA-</option>').select2("val", "0");
$(destino).append('<option value="">-PILIH Sumber Data-</option>').select2("val", "0");
$.each(obj, function(index) {
value = obj[index].id;
@ -159,7 +160,7 @@
} else {
if(selectTo=='template_id'){
$(destino).empty().append('<option value="0">-PILIH RESOURCE DATA-</option>').select2("val", "0");
$(destino).empty().append('<option value="0">-PILIH Sumber Data-</option>').select2("val", "0");
}
}
$('#loading-spinner').hide();

View File

@ -21,7 +21,6 @@
</button>
</div>
</div>
<div class="overflow-x-auto">
<table class="w-full text-left border-collapse"
data-search="false"
@ -35,16 +34,16 @@
data-page-size="10"
data-id-field="id"
id="grid-data">
<thead class="bg-slate-50/50 border-b border-slate-100">
<thead class="bg-slate-100 border-b border-slate-100">
<tr class="">
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="action">#</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="instansi">Nama Instansi</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Nama Dataset</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="template">Resource Data</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="tahun">Tahun</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="status">Status</th>
<th class="px-6 py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="created_at">Tanggal Dibuat</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="action">#</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="instansi">Nama Instansi</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="name">Nama Dataset</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="template">Sumber Data</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="tahun">Tahun Sistem</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="status">Status</th>
<th class="text-[10px] border font-bold text-slate-900 text-center" data-field="created_at">Tanggal Input</th>
</tr>
</thead>
<tbody class=""></tbody>

View File

@ -24,7 +24,7 @@
<i data-lucide="database" class="w-4 h-4 mr-2"></i>
</div>
<div class="flex flex-col">
<div class="text-sm"><b>Resource Data</b></div>
<div class="text-sm"><b>Sumber Data</b></div>
<div class="text-xs">{{$item->tabelData->name}}</div>
</div>
</div>

View File

@ -14,7 +14,7 @@
<h2 class="text-3xl md:text-4xl active font-bold text-white mb-4">Pusat Data & Informasi</h2>
<h3 class="text-3xl md:text-4xl font-bold text-white mb-6">Semua Informasi dalam Satu Tempat</h3>
<p class="text-white float-right md:w-130">
Jelajahi kumpulan 60 resource data kami. Berikut beberapa pilihan yang kami tampilkan untuk mempermudah akses Anda
Jelajahi kumpulan 60 Sumber Data kami. Berikut beberapa pilihan yang kami tampilkan untuk mempermudah akses Anda
</p>
</div>
</section>
@ -22,7 +22,7 @@
<section class="container relative pt-0 pb-10 px-5 flex flex-col gap-5">
<div class="relative flex justify-between items-center content-center mb-10">
<div>
<h1 class="font-bold poppins-bold text-xl">Resource Data</h1>
<h1 class="font-bold poppins-bold text-xl">Sumber Data</h1>
</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3">

View File

@ -29,7 +29,7 @@
<hr>
<div><input {{request()->page == 'opd' ? 'checked' : ''}} class="form-checkbox" type="checkbox">&nbsp;OPD</div>
<div><input {{request()->page == 'dataset' ? 'checked' : ''}} class="form-checkbox" type="checkbox">&nbsp;Dataset</div> -->
<div class="mt-3"><h5 class="font-bold text-md">Resource Data</h5></div>
<div class="mt-3"><h5 class="font-bold text-md">Sumber Data</h5></div>
<hr>
<div>