diff --git a/backend/app/Http/Controllers/KategoriController.php b/backend/app/Http/Controllers/KategoriController.php index 9620726..b89d87c 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' // 5MB = 5120KB + ]); $data = $request->all(); if ($request->hasFile('foto')) { @@ -51,7 +51,7 @@ class KategoriController extends Controller 'foto' => 'nullable|image|mimes:jpg,jpeg,png|max:2048' ]); - $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..47c07e6 100644 --- a/backend/resources/views/admin/fitur/index.blade.php +++ b/backend/resources/views/admin/fitur/index.blade.php @@ -3,51 +3,52 @@ @section('title', 'Manajemen Fitur') @section('content') -
+
-
-

Manajemen Fitur

-
-
-
- - +
+
+
+ - - - + + + @forelse ($fiturs as $key => $fitur) - - - - + + + @empty - + @endforelse @@ -62,18 +63,18 @@ @csrf @@ -87,21 +88,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..6f3b30c 100644 --- a/backend/resources/views/admin/kategori/index.blade.php +++ b/backend/resources/views/admin/kategori/index.blade.php @@ -3,68 +3,68 @@ @section('title', 'Manajemen Kategori') @section('content') -
+
-
-

Manajemen Kategori

-
-
-
-
NoNama FiturAksiNoNama FiturAksi
{{ $key + 1 }}{{ $fitur->nama_fitur }} - -
- @csrf - @method('DELETE') -
{{ $key + 1 }}{{ $fitur->nama_fitur }} +
+ - +
+ @csrf + @method('DELETE') + +
+
Belum ada fiturBelum ada fitur
- +
+
+
+ - - - - - + + + + + @forelse ($kategori as $key => $item) - - - - - + + + + - @empty - + @endforelse @@ -79,26 +79,27 @@ @csrf
NomorNama KategoriKeteranganFotoAksiNoNama KategoriKeteranganFotoAksi
{{ $key + 1 }}{{ $item->nama }} - {{ $item->deskripsi ?? '-' }} - +
{{ $key + 1 }}{{ $item->nama }}{{ $item->deskripsi ?? '-' }} @if($item->foto) - foto +
+ foto +
@else - default +
+ default +
@endif
- -
- @csrf - @method('DELETE') -
+
+ - +
+ @csrf + @method('DELETE') + +
+
Belum ada kategoriBelum ada kategori
- - - - - - - - - - - - @forelse ($reviews as $i => $review) - - - - - - - - - @empty - - - - @endforelse - -
NoNamaKotaRatingPesanAksi
{{ $i + 1 }}{{ $review->name }}{{ $review->city }} - @for($s=1; $s<=5; $s++) - - @endfor - {{ $review->message }} - -
Belum ada ulasan
-
- - + +
+
+ + + + + + + + + + + + + @forelse ($reviews as $key => $review) + + + + + + + + + @empty + + + + @endforelse + +
NoNamaKotaRatingPesanAksi
{{ $key + 1 }}{{ $review->name }}{{ $review->city }} + @for($s = 1; $s <= 5; $s++) + + @endfor + {{ $review->message }} +
+ + +
+
Belum ada ulasan
-{{-- Modal Konfirmasi Hapus (satu modal untuk semua baris) --}} -