@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 (($addTaskPermission == 'all' || $addTaskPermission == 'added' || $project->project_admin == user()->id) && !$projectArchived) @lang('app.add') @lang('app.task') @endif
@lang('app.clearFilters')
{!! $dataTable->table(['class' => 'table table-hover border-0 w-100']) !!}
@include('sections.datatable_js')