2020-06-24 07:25:59 +00:00
|
|
|
@extends("app.layout.base")
|
2020-06-11 12:52:15 +00:00
|
|
|
@section("title")
|
|
|
|
Menuplan
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-06-30 10:38:02 +00:00
|
|
|
<?php
|
|
|
|
$Week = date('W'); //Current week
|
|
|
|
?>
|
2020-08-11 16:21:51 +00:00
|
|
|
<main style="justify-content: unset">
|
2020-06-30 10:38:02 +00:00
|
|
|
@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)
|
2020-08-06 13:31:38 +00:00
|
|
|
<h1 class="text-center sde-blue mb-0">{{ __('msg.menuplan') }}</h1>
|
2020-08-07 10:20:15 +00:00
|
|
|
<span class="text-center sde-black-80 bold">{{ __('msg.ugestor') }}: {{$menuplan->week}}</span>
|
|
|
|
<div class="col w-100 mt-auto">
|
|
|
|
{!! $menuplan->menu !!}
|
2020-06-30 10:38:02 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@else
|
2020-08-06 13:31:38 +00:00
|
|
|
<h1 class="text-center sde-blue mb-0">{{ __('msg.menuplan') }}</h1>
|
|
|
|
<p class="text-center">{{__('msg.dereringenmenuplanerdenneuge')}}!</p>
|
2020-06-30 10:38:02 +00:00
|
|
|
@endif
|
2020-06-11 12:52:15 +00:00
|
|
|
</main>
|
2020-06-30 10:38:02 +00:00
|
|
|
{{ $menuPlans->links() }}
|
2020-06-11 12:52:15 +00:00
|
|
|
@endsection
|