Fix menu plan index

This commit is contained in:
Neerholt 2020-06-25 15:29:43 +02:00
parent ec8eba98c8
commit 795f7a919b
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ class MenuPlanController extends Controller
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function create(Request $request) public function create()
{ {
return Response::detect("menuplans.create"); return Response::detect("menuplans.create");
} }

View File

@ -6,7 +6,7 @@
@endsection @endsection
@section("path") @section("path")
<a href="{{ route('menu-plans.create') }}" class="text-white">Opret Menuplan</a> / <a href="{{ route('menuplans.create') }}" class="text-white">Opret Menuplan</a> /
@endsection @endsection
@section("content") @section("content")

View File

@ -23,7 +23,7 @@
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> <th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr> </tr>
@foreach($menuplans as $menuplan) @foreach($menuPlans as $menuplan)
<tr> <tr>
<th>{ID}</th> <th>{ID}</th>
<th>{Mandag}</th> <th>{Mandag}</th>
@ -39,5 +39,5 @@
@endforeach @endforeach
</table> </table>
{{ $menuplans->links() }} {{ $menuPlans->links() }}
@endsection @endsection