@php $addTaskPermission = ($project->project_admin == user()->id) ? 'all' : user()->permission('add_tasks'); $viewUnassignedTasksPermission = ($project->project_admin == user()->id) ? 'all' : user()->permission('view_unassigned_tasks'); $projectArchived = $project->trashed(); @endphp
@if ($projectArchived) @lang('messages.archivedTaskNotWork') @endif @if ($viewUnassignedTasksPermission == 'all' && $unAssignedTask > 0) @php $has = ($unAssignedTask == 1) ? 'has' : 'have'; $taskName = ($unAssignedTask == 1) ? 'task' : 'tasks'; @endphp @lang('messages.unassignedTask', ['unassigned' => $unAssignedTask, 'task' => $taskName, 'has' => $has]) @lang('app.clickHere') @endif
@if (($addTaskPermission == 'all' || $addTaskPermission == 'added' || $project->project_admin == user()->id) && !$projectArchived) @lang('app.addTask') @endif
@lang('app.clearFilters')
{!! $dataTable->table(['class' => 'table table-hover border-0 w-100']) !!}
@include('sections.datatable_js')