@extends("app.layout.base") @extends("app.layout.header") @section("title") Menuplan @endsection @section("content")
@if($menuPlans->contains('week', $Week)) {{-- If any of the menues in the menu table has the number of the week in the 'week' column, do this --}} @foreach($menuPlans as $menuplan) @if($menuplan->week == $Week)

Menuplan

Uge: {{$menuplan->week}}

Mandag

{{$menuplan->monday}}

Tirsdag

{{$menuplan->tuesday}}

Onsdag

{{$menuplan->wednesday}}

Torsdag

{{$menuplan->thursday}}

@endif @endforeach @else

Menuplan

Der er ingen menuplaner denne uge!

@endif
{{ $menuPlans->links() }} @endsection