@extends('layouts.member-app') @section('page-title')

{{ __($pageTitle) }} #{{ $project->id }} - {{ ucwords($project->project_name) }}

@php $pin = $project->pinned() @endphp
@endsection @push('head-script') @endpush @section('content')
@include('member.projects.show_project_menu')
@lang('app.project') @lang('app.details')
{!! $project->project_summary !!}
@lang('app.project') @lang('app.note')
{!! $project->notes !!}
@if($user->cans('view_clients'))
@lang('modules.client.clientDetails')
@if(!is_null($project->client))
@if(!is_null($project->client->client_details))
@lang('modules.client.companyName')
{{ $project->client->client_details->company_name }}
@endif
@lang('modules.client.clientName')
{{ ucwords($project->client->name) }}
@lang('modules.client.clientEmail')
{{ $project->client->email }}
@else @lang('messages.noClientAddedToProject') @endif
{{--Custom fields data--}} @if(isset($fields))
@foreach($fields as $field)
{{ ucfirst($field->label) }}
@if( $field->type == 'text') {{$project->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'password') {{$project->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'number') {{$project->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'textarea') {{$project->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'radio') {{ !is_null($project->custom_fields_data['field_'.$field->id]) ? $project->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'select') {{ (!is_null($project->custom_fields_data['field_'.$field->id]) && $project->custom_fields_data['field_'.$field->id] != '') ? $field->values[$project->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'checkbox')
    @foreach($field->values as $key => $value) @if($project->custom_fields_data['field_'.$field->id] != '' && in_array($value ,explode(', ', $project->custom_fields_data['field_'.$field->id])))
  • {{$value}}
  • @endif @endforeach
@elseif($field->type == 'date') {{ \Carbon\Carbon::parse($project->custom_fields_data['field_'.$field->id])->format($global->date_format)}} @endif
@endforeach
@endif {{--custom fields data end--}}
@endif @if($project->isProjectAdmin || $user->cans('edit_projects'))
@lang('modules.projects.activeTimers')
@forelse($activeTimers as $key=>$time)
{{ ucwords($time->user->name) }}
{{ $time->duration }}
@empty @lang('messages.noActiveTimer') @endforelse
@endif
@lang('modules.projects.members') {{ count($project->members) }}
@forelse($project->members as $member) user @empty @lang('messages.noMemberAddedToProject') @endforelse
{{ count($openTasks) }}
@lang('modules.projects.openTasks')
{{ $daysLeft }}
@lang('modules.projects.daysLeft')
{{ $hoursLogged }}
@lang('modules.projects.hoursLogged')
@lang('modules.projects.activityTimeline')
@foreach($activities as $activ)
{{ $activ->activity }}
{{ $activ->created_at->diffForHumans() }}
@endforeach
@endsection @push('footer-script') @endpush