@lang('app.project')

@if ($task->project_template_id) {{ $task->projectTemplate->project_name }} @else -- @endif

@lang('modules.tasks.priority')

@if ($task->priority == 'high') @elseif ($task->priority == 'medium') @else @endif @lang($task->priority)

@lang('modules.tasks.assignTo')

@foreach ($task->usersMany as $item)

@endforeach

@if (($taskSettings->label == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles())) @php // Convert task_labels string to an array of IDs $taskLabelIds = explode(',', $task->task_labels); @endphp

@lang('app.label')

@forelse ($taskLabelList->filter(function ($label) use ($taskLabelIds) { return in_array($label->id, $taskLabelIds); }) as $key => $label) description) data-toggle="popover" data-placement="top" data-content="{!! $label->description !!}" data-html="true" data-trigger="hover" @endif >{!! $label->label_name !!} @empty -- @endforelse

@endif
@lang('modules.tasks.subTask')