@php $editProjectPermission = user()->permission('edit_projects'); $addPaymentPermission = user()->permission('add_payments'); $projectBudgetPermission = user()->permission('view_project_budget'); @endphp
@if (!$project->trashed())
@if ($editProjectPermission == 'all' || ($editProjectPermission == 'added' && $project->added_by == user()->id)) @else
@if ($project->status == 'in progress') {{ __('app.inProgress') }} @elseif ($project->status == 'on hold') {{ __('app.onHold') }} @elseif ($project->status == 'not started') {{ __('app.notStarted') }} @elseif ($project->status == 'canceled') {{ __('app.canceled') }} @elseif ($project->status == 'finished') {{ __('app.finished') }} @endif
@endif
@if ($projectPin)
@lang('app.pinned')
@endif @else
@lang('app.unarchive')
@endif
@lang('app.startDate')

{{ $project->start_date->format($global->date_format) }}

@lang('modules.projects.deadline')

{{ !is_null($project->deadline) ? $project->deadline->format($global->date_format) : '--' }}

@if (!is_null($project->client))
{{ $project->client->name }}

{{ $project->client->name }}

{{ $project->client->clientDetails->company_name }}

@if ($project->client->country_id) {{ $project->client->country->nicename }} @endif
@if( (in_array('admin', user_roles()) && $messageSetting->allow_client_admin == 'yes') || (in_array('employee', user_roles()) && $messageSetting->allow_client_employee == 'yes') )
@endif
@else @endif

@lang('app.statistics')

@if ($projectBudgetPermission == 'all')
@endif @if ($viewPaymentPermission == 'all')
@endif
@if ($viewProjectTimelogPermission == 'all')
@endif @if ($viewExpensePermission == 'all')
@endif

@lang('modules.projects.hoursLogged')

@if ($projectBudgetPermission == 'all')

@lang('modules.projects.projectBudget')

@endif
@if (is_null($project->project_summary)) @else
{!! $project->project_summary !!}
@endif
{{-- Custom fields data --}} @if (isset($fields) && count($fields) > 0)
@foreach ($fields as $field) @if ($field->type == 'text' || $field->type == 'password' || $field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio') @elseif($field->type == 'checkbox') @elseif($field->type == 'select') @elseif($field->type == 'date') @endif @endforeach
@endif

@lang('modules.employees.activity')

@forelse($activities as $key=>$activity)

{!! __($activity->activity) !!}

{{ $activity->created_at->timezone($global->timezone)->format($global->time_format) }}

@empty

@lang('messages.noActivityByThisUser')

@endforelse