diff --git a/app/Http/Controllers/CuranmorController.php b/app/Http/Controllers/CuranmorController.php
index f197fd5..e330bb3 100644
--- a/app/Http/Controllers/CuranmorController.php
+++ b/app/Http/Controllers/CuranmorController.php
@@ -56,9 +56,20 @@ public function show(Curanmor $curanmor)
/**
* Show the form for editing the specified resource.
*/
- public function edit(Curanmor $curanmor)
+ public function edit($curanmor)
{
- //
+ try {
+
+ $edit = Curanmor::find($curanmor);
+
+ return view('admin.dashboardEditCuranmor', [
+ 'curanmor' => $edit,
+ 'kecamatans' => Kecamatan::all(),
+ 'klasters' => Klaster::all(),
+ ]);
+ } catch (\Exception $e) {
+ abort(404);
+ }
}
/**
@@ -72,7 +83,7 @@ public function update(Request $request, Curanmor $curanmor)
/**
* Remove the specified resource from storage.
*/
- public function destroy(Curanmor $curanmor)
+ public function destroy($curanmor)
{
try{
$hapus = Curanmor::find($curanmor);
diff --git a/resources/views/Admin/dashboardEditCuranmor.blade.php b/resources/views/Admin/dashboardEditCuranmor.blade.php
new file mode 100644
index 0000000..fa73cc2
--- /dev/null
+++ b/resources/views/Admin/dashboardEditCuranmor.blade.php
@@ -0,0 +1,63 @@
+Ubah Data Kasus CURANMOR Pada Kecamatan
+ {{ $curanmor->punyaKecamatanCuranmor->nama_kecamatan}}
+
Sales enables you to effectively control sales KPIs and monitor them in one central
place while helping teams to reach sales goals.