This commit is contained in:
frederikpyt 2020-06-25 12:50:23 +02:00
commit 49d6853170
2 changed files with 16 additions and 7 deletions

View File

@ -59,7 +59,7 @@ class MenuPlanController extends Controller
*/ */
public function show($id) public function show($id)
{ {
return Response::detect("menu-plan.show", [ "menuplans" => $id]); return Response::detect("menu-plan.show", [ "menu-plans" => $id]);
} }
/** /**
@ -70,7 +70,8 @@ class MenuPlanController extends Controller
*/ */
public function edit($id) public function edit($id)
{ {
// $editLink = MenuPlan::find($id);
return Response::detect("menu-plans.edit", ["menu-plans" => $editLink]);
} }
/** /**
@ -82,7 +83,15 @@ class MenuPlanController extends Controller
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
// $data = $request->validate([
"name" => "",
"link" => ""
]);
$id->update($data);
$id->save();
return Response::detect("menu-plans.update");
} }
/** /**
@ -93,6 +102,7 @@ class MenuPlanController extends Controller
*/ */
public function destroy($id) public function destroy($id)
{ {
// $id->delete();
return Response::detect("menu-plans.destroy");
} }
} }

View File

@ -31,11 +31,10 @@
<div class="segment"> <div class="segment">
<h3 class="text-white">Booking</h3> <h3 class="text-white">Booking</h3>
<div class="row"> <div class="row">
bookings mangler i web.php <a href="{{ route("bookings.index") }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Bookings</a>
{{--<a href="{{ route("bookings.index") }}" class="text-white"><img src="{{ asset('/images/icons/eye.svg') }}" alt="Read">Vis Bookings</a>--}}
</div> </div>
<div class="row"> <div class="row">
{{--<a href="{{ route('bookings.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Booking</a>--}} <a href="{{ route('bookings.create') }}" class="text-white"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Booking</a>
</div> </div>
</div> </div>
<div class="segment"> <div class="segment">