Fix route link til edit på menuplan
This commit is contained in:
parent
b03a89463a
commit
7d13933ea7
|
@ -76,7 +76,7 @@ class MenuPlanController extends Controller
|
|||
public function edit($id)
|
||||
{
|
||||
$editLink = MenuPlan::find($id);
|
||||
return Response::detect("menuplans.edit", ["menu-plans" => $editLink]);
|
||||
return Response::detect("menuplans.edit", ["menuPlans" => $editLink]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,13 +6,12 @@
|
|||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a class="text-white">Rediger Menuplan</a> /
|
||||
<a href="{{ route('menu-plans.edit') }}" class="text-white">Rediger Menuplan</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<h1>Rediger Menuplan:</h1>
|
||||
<form method="post" action="{{ route("menu-plans.store") }}">
|
||||
@csrf
|
||||
<form method="post" action="">
|
||||
<label for="mandag">Mandag:</label>
|
||||
<input type="text" name="mandag" id="mandag" value="{Mandag}" required>
|
||||
<label for="tirsdag">Tirsdag:</label>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<td>{{$menuplan->friday}}</td>
|
||||
<td>{{$menuplan->saturday}}</td>
|
||||
<td>{{$menuplan->sunday}}</td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><a href="{{route('menu-plans.edit', $menuplan->id)}}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
@endsection
|
||||
|
||||
@section("path")
|
||||
<a href="{{ route('menuplans.edit') }}" class="text-white">Rediger Menuplan</a> /
|
||||
<a href="{{ route('menu-plans.edit') }}" class="text-white">Rediger Menuplan</a> /
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
|
|
Loading…
Reference in New Issue