@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' && $task->added_by == user()->id) || ($addSubTaskPermission == 'owned' && in_array(user()->id, $taskUsers)) || ($addSubTaskPermission == 'both' && (in_array(user()->id, $taskUsers) || $task->added_by == user()->id)) )
@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' ? '' . $subtask->id . ucfirst($subtask->title) . '' : '' . ucfirst($subtask->title) . '' !!} {!! $subtask->due_date ? '
'.__('modules.invoices.due') . ': ' . $subtask->due_date->format(global_setting()->date_format) . '
' : '' !!}

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