diff --git a/backend/app/Http/Controllers/Api/ReviewController.php b/backend/app/Http/Controllers/Api/ReviewController.php index 7790b30..c69ee3d 100644 --- a/backend/app/Http/Controllers/Api/ReviewController.php +++ b/backend/app/Http/Controllers/Api/ReviewController.php @@ -41,25 +41,6 @@ class ReviewController extends Controller return response()->json($review, 200); } - // Update ulasan - public function update(Request $request, $id) - { - $review = Review::findOrFail($id); - - $validated = $request->validate([ - 'rating' => 'integer|min:1|max:5', - 'message' => 'string', - 'name' => 'string|max:100', - 'city' => 'string|max:100', - ]); - - $review->update($validated); - - return response()->json([ - 'message' => 'Ulasan berhasil diperbarui', - 'data' => $review - ], 200); - } // Hapus ulasan public function destroy($id) diff --git a/backend/app/Http/Controllers/KategoriController.php b/backend/app/Http/Controllers/KategoriController.php index 9620726..bc2bbba 100644 --- a/backend/app/Http/Controllers/KategoriController.php +++ b/backend/app/Http/Controllers/KategoriController.php @@ -24,11 +24,11 @@ class KategoriController extends Controller // Simpan kategori baru public function store(Request $request) { - $request->validate([ - 'nama' => 'required|string|max:255', - 'deskripsi' => 'nullable|string', - 'foto' => 'nullable|image|mimes:jpg,jpeg,png|max:2048' - ]); + $request->validate([ + 'nama' => 'required|string|max:255', + 'deskripsi' => 'nullable|string', + 'foto' => 'nullable|image|mimes:jpeg,png,jpg,gif|max:5120' + ]); $data = $request->all(); if ($request->hasFile('foto')) { @@ -48,10 +48,10 @@ class KategoriController extends Controller $request->validate([ 'nama' => 'required|string|max:255', 'deskripsi' => 'nullable|string', - 'foto' => 'nullable|image|mimes:jpg,jpeg,png|max:2048' + 'foto' => 'nullable|image|mimes:jpg,jpeg,png|max:5120' ]); - $data = $request->all(); + $data = $request->all(); if ($request->hasFile('foto')) { if ($kategori->foto) { Storage::disk('public')->delete($kategori->foto); diff --git a/backend/resources/views/admin/dashboard.blade.php b/backend/resources/views/admin/dashboard.blade.php index 8bb0319..acd2d37 100644 --- a/backend/resources/views/admin/dashboard.blade.php +++ b/backend/resources/views/admin/dashboard.blade.php @@ -3,111 +3,52 @@ @section('title', 'Halaman Dasbor') @section('content') -
+
-
-

Halaman Dasbor

- -
-
+
+

Halaman Dasbor

+
+
{{ \Carbon\Carbon::now()->translatedFormat('l, d F Y') }}
- - -
-
-
-
-
-
Kategori
-

10

-
- +
+
+
+
Kategori
+

10

+
+
+
-
-
-
-
Templat
-

20

-
- +
+
+
Templat
+

20

+
+
+
-
-
-
-
Pelanggan
-

24

-
- +
+
+
Pelanggan
+

24

+
+
+
-
+
Berhasil login sebagai {{ auth('admin')->user()->name }}
- -@endsection +@endsection \ No newline at end of file diff --git a/backend/resources/views/admin/fitur/index.blade.php b/backend/resources/views/admin/fitur/index.blade.php index 111720c..5ef898e 100644 --- a/backend/resources/views/admin/fitur/index.blade.php +++ b/backend/resources/views/admin/fitur/index.blade.php @@ -3,55 +3,57 @@ @section('title', 'Manajemen Fitur') @section('content') -
+
-
-

Manajemen Fitur

-
-
-
- - - - - - - - - - @forelse ($fiturs as $key => $fitur) - - - - - - @empty - - - - @endforelse - -
NoNama FiturAksi
{{ $key + 1 }}{{ $fitur->nama_fitur }} - -
- @csrf - @method('DELETE') - -
-
Belum ada fitur
+
+
+ + + + + + + + + + @forelse ($fiturs as $key => $fitur) + + + + + + @empty + + + + @endforelse + +
NomorFiturAksi
{{ $key + 1 }}{{ $fitur->nama_fitur }} +
+ +
+ @csrf + @method('DELETE') + +
+
+
Belum ada fitur
+
@@ -62,18 +64,18 @@ @@ -87,21 +89,21 @@ @csrf @method('PUT')
@endforeach -@endsection +@endsection \ No newline at end of file diff --git a/backend/resources/views/admin/kategori/index.blade.php b/backend/resources/views/admin/kategori/index.blade.php index 79f955d..270c78d 100644 --- a/backend/resources/views/admin/kategori/index.blade.php +++ b/backend/resources/views/admin/kategori/index.blade.php @@ -3,142 +3,182 @@ @section('title', 'Manajemen Kategori') @section('content') -
- -
-

Manajemen Kategori

- -
- - -
-
- - - - - - - - - - - - @forelse ($kategori as $key => $item) - - - - - - - - @empty - - - - @endforelse - -
NomorNama KategoriKeteranganFotoAksi
{{ $key + 1 }}{{ $item->nama }} - {{ $item->deskripsi ?? '-' }} - - @if($item->foto) - foto - @else - default - @endif - - -
- @csrf - @method('DELETE') - -
-
Belum ada kategori
+
+ +
+

Manajemen Kategori

+
-
-
- -