@if (user()->permission('task_labels') == 'all')
@endif
@if ($task->project && count($task->project->milestones) > 0)
@foreach ($task->project->milestones as $milestone)
@endforeach
@endif
@if ($changeStatusPermission == 'all'
|| ($changeStatusPermission == 'added' && $task->added_by == user()->id)
|| ($changeStatusPermission == 'owned' && in_array(user()->id, $taskUsers))
|| ($changeStatusPermission == 'both' && (in_array(user()->id, $taskUsers) || $task->added_by == user()->id))
)
@foreach ($taskboardColumns as $item)
@php
if ($item->slug == 'completed' || $item->slug == 'incomplete') {
if ($item->slug == 'completed') {
$icon = "".__('app.' . $item->slug);
}
elseif($item->slug == 'incomplete'){
$icon = "".__('app.' . $item->slug);
}
}
else {
if ($item->slug == 'to_do') {
$icon = "".$item->column_name;
}
elseif($item->slug == 'doing'){
$icon = "".$item->column_name;
}
else {
$icon = "". $item->column_name;
}
}
@endphp
@endforeach
@endif