@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)) )
{{ mb_ucfirst(user()->name) }}
@lang('app.cancel') @lang('app.submit')
@endif
@forelse($task->notes as $note)
{{ mb_ucwords($note->user->name) }}

{{ mb_ucwords($note->user->name) }}

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

{!! ucfirst($note->note) !!}
@empty @endforelse