@php $editSubTaskPermission = user()->permission('edit_sub_tasks'); $deleteSubTaskPermission = user()->permission('delete_sub_tasks'); $addSubTaskPermission = user()->permission('add_sub_tasks'); $viewSubTaskPermission = user()->permission('view_sub_tasks'); @endphp @forelse ($task->subtasks as $subtask)
@if ($subtask->assigned_to) @endif

{!! $subtask->status == 'complete' ? '' . $subtask->title . '' : '' . $subtask->title . '' !!} {!! $subtask->due_date ? '
'.__('modules.invoices.due') . ': ' . $subtask->due_date->translatedFormat(company()->date_format) . '
' : '' !!}

@if (count($subtask->files) > 0)
@foreach ($subtask->files as $file) @if ($file->icon == 'images') @else @endif @endforeach
@endif
@empty @endforelse