Fix route link til edit på menuplan

This commit is contained in:
2020-06-29 08:02:42 +02:00
parent b03a89463a
commit 7d13933ea7
4 changed files with 5 additions and 6 deletions
@@ -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")