From 35d514749e4b806bce879d3154be21120d98638d Mon Sep 17 00:00:00 2001 From: ariefabbauftech-ai Date: Thu, 18 Sep 2025 09:00:15 +0700 Subject: [PATCH] [Update sidebar & kategori_fitur] --- .../views/admin/fitur/index.blade.php | 2 +- .../admin/kategori_fitur/create.blade.php | 4 +- .../views/admin/kategori_fitur/edit.blade.php | 4 +- .../admin/kategori_fitur/index.blade.php | 261 ++++++++++++++++-- backend/resources/views/layouts/app.blade.php | 47 +++- 5 files changed, 273 insertions(+), 45 deletions(-) diff --git a/backend/resources/views/admin/fitur/index.blade.php b/backend/resources/views/admin/fitur/index.blade.php index b58f8cd..10a6180 100644 --- a/backend/resources/views/admin/fitur/index.blade.php +++ b/backend/resources/views/admin/fitur/index.blade.php @@ -6,7 +6,7 @@
-

Manajemen Fitur

+

Daftar Fitur

diff --git a/backend/resources/views/admin/kategori_fitur/create.blade.php b/backend/resources/views/admin/kategori_fitur/create.blade.php index e0ce78a..a2bbb3a 100644 --- a/backend/resources/views/admin/kategori_fitur/create.blade.php +++ b/backend/resources/views/admin/kategori_fitur/create.blade.php @@ -1,4 +1,4 @@ -@extends('layouts.app') +{{-- @extends('layouts.app') @section('title', 'Tambah Kategori Fitur') @@ -15,4 +15,4 @@ Batal
-@endsection +@endsection --}} diff --git a/backend/resources/views/admin/kategori_fitur/edit.blade.php b/backend/resources/views/admin/kategori_fitur/edit.blade.php index a241ae9..22b9884 100644 --- a/backend/resources/views/admin/kategori_fitur/edit.blade.php +++ b/backend/resources/views/admin/kategori_fitur/edit.blade.php @@ -1,4 +1,4 @@ -@extends('layouts.app') +{{-- @extends('layouts.app') @section('title', 'Edit Kategori Fitur') @@ -16,4 +16,4 @@ Batal
-@endsection +@endsection --}} diff --git a/backend/resources/views/admin/kategori_fitur/index.blade.php b/backend/resources/views/admin/kategori_fitur/index.blade.php index 7f78a1b..c64a643 100644 --- a/backend/resources/views/admin/kategori_fitur/index.blade.php +++ b/backend/resources/views/admin/kategori_fitur/index.blade.php @@ -1,40 +1,241 @@ @extends('layouts.app') -@section('title', 'Kategori Fitur') +@section('title', 'Manajemen Kategori Fitur') @section('content')
-

Daftar Kategori Fitur

- + Tambah + +
+

Daftar Kategori Fitur

+ +
- - - - - - - - - - @foreach($kategoriFitur as $item) - - - - - - @endforeach - -
IDDeskripsiAksi
{{ $item->id }}{{ $item->deskripsi }} - Edit -
- @csrf - @method('DELETE') - -
-
+ + @if (session('success')) +
+ {{ session('success') }} +
+ + @endif -
- {{ $kategoriFitur->links() }} + @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ + @endif + + +
+
+ + + + + + + + + + @forelse ($kategoriFitur as $item) + + + + + + @empty + + + + @endforelse + +
IDDeskripsiAksi
+ {{ $item->id }} + + {{ $item->deskripsi }} + +
+ + +
+
Belum ada kategori fitur
+
+ + +
+ {{ $kategoriFitur->links() }} +
+ + + + + +@foreach ($kategoriFitur as $item) + +@endforeach + + +@foreach ($kategoriFitur as $item) + +@endforeach + + @endsection diff --git a/backend/resources/views/layouts/app.blade.php b/backend/resources/views/layouts/app.blade.php index 1b1555c..28a94d9 100644 --- a/backend/resources/views/layouts/app.blade.php +++ b/backend/resources/views/layouts/app.blade.php @@ -61,17 +61,34 @@ Kategori - - Kategori Fitur - - +
  • - - Fitur - + @php + $isFiturPage = request()->is('admin/fitur*') || request()->is('admin/kategori_fitur*'); + @endphp + +
  • +
  • @php @@ -80,7 +97,7 @@ @@ -147,6 +164,16 @@ templatSubmenu.classList.toggle('show'); templatIcon.classList.toggle('rotate-180'); }); + + // Dropdown Manajemen Fitur + const manajemenFiturBtn = document.getElementById('manajemenFiturBtn'); + const manajemenFiturSubmenu = document.getElementById('manajemenFiturSubmenu'); + const manajemenFiturIcon = document.getElementById('manajemenFiturIcon'); + + manajemenFiturBtn.addEventListener('click', () => { + manajemenFiturSubmenu.classList.toggle('show'); + manajemenFiturIcon.classList.toggle('rotate-180'); + });