@extends("admin.layout.base") @extends("admin.layout.header") @section("title") Dashboard - Admin Panel @endsection @section("path") Dashboard / @endsection @section("content")

Brugere

{{ count(\App\User::all()) }}

@for($i = 0; $i < 10 && $i < count(\App\User::query()->orderByDesc("id")->get()); $i++) @endfor
Nyeste brugere
{!! (ucfirst(strtolower(\App\User::query()->orderByDesc("id")->get()[$i]->name_first))) . ' ' . \App\Helpers::closetags(substr(ucfirst(strtolower(\App\User::query()->orderByDesc("id")->get()[$i]->name_last)), 0, 23) ) !!}

Aktiviteter

{{ count(\App\Event::all()) }}

@if(\App\Event::query()->orderBy("date", "asc")->first() == null) @endif
Næste aktivitet
Der er ingen aktiviteter
@if(\App\Event::query()->orderBy("date", "asc")->first() !== null)
{!!(\App\Event::query()->orderBy("date", "asc")->first()->description)!!}
first()->id }}">
@endif

Vejledninger

{{ count(\App\Guide::all()) }}

@if(count(\App\Guide::all()) > 0) @for($i = 0; $i < 10 && $i < count(\App\Guide::query()->orderByDesc("id")->get()); $i++) @endfor @else @endif
Seneste Vejledninger
{!! \App\Helpers::closetags(substr(ucfirst(strtolower(\App\Guide::query()->orderByDesc("id")->get()[$i]->name)), 0, 45) ) !!}
Der er ingen vejledninger

Menuplan

{{ count(\App\MenuPlan::all()) }}

@if(\App\MenuPlan::query()->where("week", "=", date('W'))->first() !== null) {{-- \App\MenuPlan::query()->where("week", "=", date('W'))->first() --}} @else @endif
Ugens Menuplan
{!! (\App\MenuPlan::query()->where("week", "=", date('W'))->first()->monday) !!}
{!! (\App\MenuPlan::query()->where("week", "=", date('W'))->first()->tuesday) !!}
{!! (\App\MenuPlan::query()->where("week", "=", date('W'))->first()->wednesday) !!}
{!! (\App\MenuPlan::query()->where("week", "=", date('W'))->first()->thursday) !!}
Ingen menuplan
@endsection