This commit is contained in:
frederikpyt 2020-06-29 08:14:01 +02:00
commit 09040f0a36
4 changed files with 5 additions and 6 deletions

View File

@ -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]);
}
/**

View File

@ -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>

View File

@ -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

View File

@ -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")