@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)) )
{{ ucwords(user()->name) }}
@lang('app.cancel') @lang('app.submit')
@endif
@forelse ($task->comments as $comment)
{{ ucwords($comment->user->name) }}

{{ ucwords($comment->user->name) }}

{{ $comment->created_at->timezone(global_setting()->timezone)->format(global_setting()->date_format . ' ' . global_setting()->time_format) }}

{!! ucfirst($comment->comment) !!}
@empty
- @lang('messages.noCommentFound') -
@endforelse