@php $addTaskNotePermission = user()->permission('add_task_notes'); $editTaskNotePermission = user()->permission('edit_task_notes'); $deleteTaskNotePermission = user()->permission('delete_task_notes'); @endphp
@if ($addTaskNotePermission == 'all' || ($addTaskNotePermission == 'added' && $task->added_by == user()->id) || ($addTaskNotePermission == 'owned' && in_array(user()->id, $taskUsers)) || ($addTaskNotePermission == 'both' && (in_array(user()->id, $taskUsers) || $task->added_by == user()->id)) )
{{ user()->name }}
@lang('app.cancel') @lang('app.submit')
@endif
@forelse($task->notes as $note)
{{ $note->user->name }}

{{ $note->user->name }}

{{ $note->created_at->diffForHumans() }}

{!! $note->note !!}
@empty @endforelse