Task Comments
@if($task)
Task: {{ $task->title }}
@if($task->project)
| Project: {{ $task->project->name }}
@endif
@endif
@if($task)
@endif
@if($task)
Task Details
{{ $task->description }}
Status: {{ ucfirst(str_replace('_', ' ', $task->status)) }}
@if($task->priority > 0)
Priority: {{ $task->priority }}
@endif
@if($task->due_at)
Due: {{ $task->due_at->format('M d, Y') }}
@endif
@else
No task selected. Please select a task to view its comments.
@endif
@forelse ($comments as $comment)
{{ $comment->author_name }}
{{ $comment->created_at->format('M d, Y H:i') }}
{{ $comment->body }}
@empty
@if($task)
No comments yet. Add your first comment!
@endif
@endforelse
@if ($showForm)
{{ $editingId ? 'Edit Comment' : 'Add Comment' }}
@error('authorType')
{{ $message }} @enderror
@error('authorName') {{ $message }} @enderror
@error('body') {{ $message }} @enderror
@endif