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
+
+
-
-
-
- | ID |
- Deskripsi |
- Aksi |
-
-
-
- @foreach($kategoriFitur as $item)
-
- | {{ $item->id }} |
- {{ $item->deskripsi }} |
-
- Edit
-
- |
-
- @endforeach
-
-
+
+ @if (session('success'))
+
+ {{ session('success') }}
+
+
+ @endif
-
- {{ $kategoriFitur->links() }}
+ @if ($errors->any())
+
+
+ @foreach ($errors->all() as $error)
+ - {{ $error }}
+ @endforeach
+
+
+
+ @endif
+
+
+
+
+
+
+
+ | ID |
+ Deskripsi |
+ Aksi |
+
+
+
+ @forelse ($kategoriFitur as $item)
+
+ |
+ {{ $item->id }}
+ |
+
+ {{ $item->deskripsi }}
+ |
+
+
+
+
+
+ |
+
+ @empty
+
+ | Belum ada kategori fitur |
+
+ @endforelse
+
+
+
+
+
+
+ {{ $kategoriFitur->links() }}
+
+
+
+
+
+
+@foreach ($kategoriFitur as $item)
+
+@endforeach
+
+
+@foreach ($kategoriFitur as $item)
+
+
+
+
+
Hapus Kategori Fitur
+
+
+
Apakah Anda yakin ingin menghapus kategori {{ $item->deskripsi }}?
+
+
+
+
+
+
+
+@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');
+ });