@php use Carbon\Carbon; @endphp
TO-DO: {{$list->name}}
@foreach ($tasks->where('completed', false) as $t)
{{$t->content}}
@endforeach
Completed
@php $completeGroups = $tasks->where('completed', true) ->groupBy( fn($t) => $t->completed_at->toDateString() )->sortKeysDesc(); @endphp @foreach ($completeGroups as $date => $tasks)
{{ Carbon::parse($date)->format('D M d, Y') }} @if (Carbon::parse($date)->isSameDay(now())) Summary Hide Summary @endif
    @foreach ($tasks as $t)
  • {{$t->content}}
  • @endforeach
@if (Carbon::parse($date)->isSameDay(now())) @foreach ($tasks as $t)
{{$t->content}}
@endforeach @else
    @foreach ($tasks as $t)
  • {{$t->content}}
  • @endforeach
@endif @endforeach
Delete task?
Cancel Delete task