@php $addSubTaskPermission = user()->permission('add_sub_tasks'); $editSubTaskPermission = user()->permission('edit_sub_tasks'); $deleteSubTaskPermission = user()->permission('delete_sub_tasks'); $viewSubTaskPermission = user()->permission('view_sub_tasks'); @endphp
@if ($addSubTaskPermission == 'all' || $addSubTaskPermission == 'added')
@if ($addSubTaskPermission == 'all' || $addSubTaskPermission == 'added')
@lang('app.cancel')
@endif
@lang('app.cancel') @lang('app.submit')
@endif @if ($viewSubTaskPermission == 'all' || $viewSubTaskPermission == 'added')
@forelse ($task->subtasks as $subtask)
@if ($subtask->assigned_to) @endif

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

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