@php $addTaskPermission = user()->permission('add_tasks'); $addStatusPermission = user()->permission('add_status'); $changeStatusPermission = user()->permission('change_status'); @endphp @foreach ($result['boardColumns'] as $key => $column) @if ($column->userSetting && $column->userSetting->collapsed)

{{ $column->slug == 'completed' || $column->slug == 'incomplete' ? __('app.' . $column->slug) : $column->column_name }}

{{ $column->tasks_count }}
@else

column_name) > 20) data-toggle="tooltip" data-original-title="{{ $column->column_name }}" @endif> {{ str_limit($column->column_name, 20, '...') }}

{{ $column->tasks_count }} @if ($addTaskPermission == 'all' || $addTaskPermission == 'added' || $addStatusPermission == 'all' ) @endif

@if ($addTaskPermission == 'all' || $addTaskPermission == 'added') @if (isset($project)) @if($column->slug == 'waiting_approval')

- @lang('messages.noRecordFound') -
@else @lang('app.add') @lang('app.task') @endif @elseif(isset($project) == false && $column->slug == 'waiting_approval')
- @lang('messages.noRecordFound') -
@elseif(isset($project) == false && $column->slug != 'waiting_approval') @lang('app.add') @lang('app.task') @endif @else
- @lang('messages.noRecordFound') -
@endif

@foreach ($column['tasks'] as $task) @php $taskUsers = $task->users ? $task->users->pluck('id')->toArray() : []; @endphp @endforeach
@if ($column->tasks_count > count($column['tasks'])) @endif
@endif @endforeach