@if (!$project->trashed())
@if ($editProjectPermission == 'all' || ($editProjectPermission == 'added' && $project->added_by == user()->id) || ($project->project_admin == user()->id))
@else
@foreach ($projectStatus as $status)
@if ($project->status == $status->status_name)
{{ $status->status_name }}
@endif
@endforeach
@endif
@if ($editProjectPermission == 'all'
|| ($project->project_admin == user()->id)
|| ($editProjectPermission == 'added' && user()->id == $project->added_by)
|| ($editProjectPermission == 'owned' && user()->id == $project->client_id && in_array('client', user_roles()))
|| ($editProjectPermission == 'owned' && in_array(user()->id, $memberIds) && in_array('employee', user_roles()))
|| ($editProjectPermission == 'both' && (user()->id == $project->client_id || user()->id == $project->added_by))
|| ($editProjectPermission == 'both' && in_array(user()->id, $memberIds) && in_array('employee', user_roles())))
@lang('app.editProject')
@lang('modules.projects.viewPublicGanttChart')
@lang('app.publicTaskBoard')
@endif
@php $projectPin = $project->pinned() @endphp
@if ($projectPin)
@lang('app.unpinProject')
@else
@lang('app.pinProject')
@endif
@if ($projectPin)
@lang('app.pinned')
@endif
@elseif($editProjectPermission == 'all'
|| ($project->project_admin == user()->id)
|| ($editProjectPermission == 'added' && user()->id == $project->added_by)
|| ($editProjectPermission == 'owned' && user()->id == $project->client_id && in_array('client', user_roles()))
|| ($editProjectPermission == 'owned' && in_array(user()->id, $memberIds) && in_array('employee', user_roles()))
|| ($editProjectPermission == 'both' && (user()->id == $project->client_id || user()->id == $project->added_by))
|| ($editProjectPermission == 'both' && in_array(user()->id, $memberIds) && in_array('employee', user_roles())))
@lang('app.unarchive')
@endif
{{-- Custom fields data --}}
@if (isset($fields) && count($fields) > 0)