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)
|
public function edit($id)
|
||||||
{
|
{
|
||||||
$editLink = MenuPlan::find($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
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a class="text-white">Rediger Menuplan</a> /
|
<a href="{{ route('menu-plans.edit') }}" class="text-white">Rediger Menuplan</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
<h1>Rediger Menuplan:</h1>
|
<h1>Rediger Menuplan:</h1>
|
||||||
<form method="post" action="{{ route("menu-plans.store") }}">
|
<form method="post" action="">
|
||||||
@csrf
|
|
||||||
<label for="mandag">Mandag:</label>
|
<label for="mandag">Mandag:</label>
|
||||||
<input type="text" name="mandag" id="mandag" value="{Mandag}" required>
|
<input type="text" name="mandag" id="mandag" value="{Mandag}" required>
|
||||||
<label for="tirsdag">Tirsdag:</label>
|
<label for="tirsdag">Tirsdag:</label>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<td>{{$menuplan->friday}}</td>
|
<td>{{$menuplan->friday}}</td>
|
||||||
<td>{{$menuplan->saturday}}</td>
|
<td>{{$menuplan->saturday}}</td>
|
||||||
<td>{{$menuplan->sunday}}</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>
|
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@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
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
|
|
Loading…
Reference in New Issue