@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) : ucwords($column->column_name) }}

{{ $column->tasks_count }}
@else

{{ ucwords($column->column_name) }}

{{ $column->tasks_count }} @if ($addTaskPermission == 'all' || $addTaskPermission == 'added' || $addStatusPermission == 'all') @endif
@forelse ($column['tasks'] as $task) @empty @if ($column->tasks_count == 0)

@if ($addTaskPermission == 'all' || $addTaskPermission == 'added') @lang('app.add') @lang('app.task') @else

- @lang('messages.noRecordFound') -
@endif

@endif @endforelse
@if ($column->tasks_count > count($column['tasks'])) @endif
@endif @endforeach