Ekapp/skolehjem/resources/views/app/menuplans/index.blade.php

41 lines
1.9 KiB
PHP
Raw Normal View History

2020-06-24 07:25:59 +00:00
@extends("app.layout.base")
@section("title")
Menuplan
@endsection
@section("content")
<?php
$Week = date('W'); //Current week
?>
<main class="justify-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)
2020-08-06 13:31:38 +00:00
<h1 class="text-center sde-blue mb-0">{{ __('msg.menuplan') }}</h1>
2020-08-17 08:28:54 +00:00
@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">
<h2 class="ql-align-center"><strong>{{__('msg.mandag')}}:</strong></h2>
<p class="ql-align-center">{{$menuplan->monday}}</p><p class="ql-align-center"></p>
<h2 class="ql-align-center"><strong>{{__('msg.tirsdag')}}:</strong></h2>
<p class="ql-align-center">{{$menuplan->tuesday}}</p><p class="ql-align-center"></p>
<h2 class="ql-align-center"><strong>{{__('msg.onsdag')}}:</strong></h2>
<p class="ql-align-center">{{$menuplan->wednesday}}</p><p class="ql-align-center"></p>
<h2 class="ql-align-center"><strong>{{__('msg.torsdag')}}:</strong></h2>
<p class="ql-align-center">{{$menuplan->thursday}}</p>
</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>
@endif
</main>
@endsection