@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