@extends("app.layout.base") @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)

{{ __('msg.menuplan') }}

{{ __('msg.uge') }}: {{$menuplan->week}}

{{ __('msg.mandag') }}

{{$menuplan->monday}}

{{ __('msg.tirsdag') }}

{{$menuplan->tuesday}}

{{ __('msg.onsdag') }}

{{$menuplan->wednesday}}

{{ __('msg.torsdag') }}

{{$menuplan->thursday}}

@endif @endforeach @else

{{ __('msg.menuplan') }}

{{__('msg.dereringenmenuplanerdenneuge')}}!

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