@extends("app.layout.base") @section("title") Ugenlige aktiviteter @endsection @section("content")

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

@if(count(\App\Notification::query()->where("user_id", "=", auth()->user()->id)->get()) > 0)
× {{__('msg.aktivitetaflyst')}} @foreach(\App\Notification::query()->where("user_id", "=", auth()->user()->id)->get() as $notification)

{{ $notification->message }}{{ __("msg.canceled") }}

@endforeach
@endif @if(!$multiEvents->isEmpty()) @if($multiEvents->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($multiEvents as $multiEvent) @if($multiEvent->week == $Week)

{{$multiEvents->name}}

{{$multiEvents->accountable}}

{{$multiEvents->description}}

{{$multiEvents->date}}

{{$multiEvents->event}}

@endif @endforeach @else

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

@endif @endif
@endsection @section("scripts") @endsection