@php $addTaskPermission = ($project->project_admin == user()->id) ? 'all' : user()->permission('add_tasks'); $editTaskPermission = ($project->project_admin == user()->id) ? 'all' : user()->permission('edit_tasks'); @endphp