@php $editSubTaskPermission = user()->permission('edit_sub_tasks'); $deleteSubTaskPermission = user()->permission('delete_sub_tasks'); @endphp @forelse ($task->subtasks as $subtask)
{!! $subtask->status == 'complete' ? '' . $subtask->title . '' :
$subtask->title !!}