32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
@extends("app.layout.base")
|
|
@section("title")
|
|
Menuplan
|
|
@endsection
|
|
|
|
@section("content")
|
|
<?php
|
|
$Week = date('W'); //Current week
|
|
?>
|
|
<main style="justify-content: unset">
|
|
@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)
|
|
<h1 class="text-center sde-blue mb-0">{{ __('msg.menuplan') }}</h1>
|
|
@if(request()->cookie("mode") !== "dark")
|
|
<span class="text-center sde-black-80 bold">{{ __('msg.ugestor') }}: {{$menuplan->week}}</span>
|
|
@else
|
|
<span class="text-center text-white bold">{{ __('msg.ugestor') }}: {{$menuplan->week}}</span>
|
|
@endif
|
|
<div class="col w-100 mt-1">
|
|
{!! $menuplan->menu !!}
|
|
</div>
|
|
@endif
|
|
@endforeach
|
|
@else
|
|
<h1 class="text-center sde-blue mb-0">{{ __('msg.menuplan') }}</h1>
|
|
<p class="text-center">{{__('msg.dereringenmenuplanerdenneuge')}}!</p>
|
|
@endif
|
|
</main>
|
|
{{ $menuPlans->links() }}
|
|
@endsection
|