@if($task->description)
@endif
@if($task->subTasks->count() > 0)
Sub-tasks: {{ $task->subTasks->where('is_completed', true)->count() }}/{{ $task->subTasks->count() }}
@endif
@if($task->due_date)
Due {{ $task->due_date->format('M d, Y') }}
@if($task->due_date->isPast() && !$task->is_completed)
({{ round(abs($task->due_date->diffInDays())) }} days overdue)
@endif
@endif
@if($task->assignedUsers->count() > 0)
{{ $task->assignedUsers->pluck('name')->join(', ') }}
@endif
@if($task->subTasks->count() > 0)
@endif
@if($task->subTasks->count() > 0)
@foreach($task->subTasks as $subTask)
is_completed ? 'checked' : '' }}
class="w-4 h-4 text-green-600 border-gray-300 rounded-full focus:ring-green-500 cursor-pointer">
{{ $subTask->title }}
@endforeach
@endif