diff --git a/backend/app/Http/Controllers/TemplateController.php b/backend/app/Http/Controllers/TemplateController.php index 410ffd9..d76b395 100644 --- a/backend/app/Http/Controllers/TemplateController.php +++ b/backend/app/Http/Controllers/TemplateController.php @@ -56,6 +56,7 @@ public function store(Request $request) return redirect()->route('templates.index')->with('success', 'Template berhasil ditambahkan!'); } + public function update(Request $request, Template $template) { $data = $request->validate([ diff --git a/backend/resources/views/admin/dashboard.blade.php b/backend/resources/views/admin/dashboard.blade.php index cdff7ce..d048d77 100644 --- a/backend/resources/views/admin/dashboard.blade.php +++ b/backend/resources/views/admin/dashboard.blade.php @@ -1,157 +1,232 @@ @extends('layouts.app') -@section('title', 'Manajemen Template') +@section('title', 'Halaman Dasbor') @section('content') -
| Nomor | -Nama Template | -Kategori | -Harga | -Fitur | -Aksi | +Nomor | +Nama | +Template | +Kategori | +No. Telepon | +Harga | +Tanggal Pemesanan | +Aksi | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $templates->firstItem() + $index }} | -{{ $template->nama_template }} | -{{ $template->kategori->nama_kategori ?? '-' }} | -Rp {{ number_format($template->harga, 0, ',', '.') }} | -- @foreach ($template->fiturs as $fitur) - {{ $fitur->nama_fitur }} - @endforeach + | + {{ $recentPelanggan->firstItem() + $index }} | -- - - - - - - | ||||||||
| Belum ada template | ++ Belum ada data pelanggan. + | |||||||||||||