@php
$addTaskCommentPermission = user()->permission('add_task_comments');
$editTaskCommentPermission = user()->permission('edit_task_comments');
$deleteTaskCommentPermission = user()->permission('delete_task_comments');
@endphp
@if ($addTaskCommentPermission == 'all'
|| ($addTaskCommentPermission == 'added' && $task->added_by == user()->id)
|| ($addTaskCommentPermission == 'owned' && in_array(user()->id, $taskUsers))
|| ($addTaskCommentPermission == 'both' && (in_array(user()->id, $taskUsers) || $task->added_by == user()->id))
)
@endif
{{ ucwords($comment->user->name) }}
{{ $comment->created_at->timezone(global_setting()->timezone)->format(global_setting()->date_format . ' ' . global_setting()->time_format) }}