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

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

@php if ($project->status == 'in progress') { $statusText = __('app.inProgress'); $statusTextColor = 'text-info'; $btnTextColor = 'label-info'; } else if ($project->status == 'on hold') { $statusText = __('app.onHold'); $statusTextColor = 'text-warning'; $btnTextColor = 'label-warning'; } else if ($project->status == 'not started') { $statusText = __('app.notStarted'); $statusTextColor = 'text-warning'; $btnTextColor = 'label-warning'; } else if ($project->status == 'canceled') { $statusText = __('app.canceled'); $statusTextColor = 'text-danger'; $btnTextColor = 'label-danger'; } else if ($project->status == 'finished') { $statusText = __('app.finished'); $statusTextColor = 'text-success'; $btnTextColor = 'label-success'; }else if($project->status == 'under review'){ $statusText = __('app.underReview'); $statusTextColor = 'text-warning'; $btnTextColor = 'label-warning'; } @endphp
@endsection @push('head-script') @endpush @section('content')
@include('client.projects.show_project_menu')
@if(!is_null($project->project_budget)) {{ !is_null($project->currency_id) ? $project->currency->currency_symbol.$project->project_budget : $project->project_budget }} @else -- @endif @lang('modules.projects.projectBudget')
{{ $hoursLogged }} @lang('modules.projects.hoursLogged')
{{ !is_null($project->currency_id) ? currency_formatter($expenses,$project->currency->currency_symbol) : $expenses }} @lang('modules.projects.expenses_total')
@lang('app.project') @lang('app.details')
{!! $project->project_summary !!}
@lang('modules.client.clientDetails')
@if(!is_null($project->client))
@if(!is_null($project->client->client))
@lang('modules.client.companyName')
{{ $project->client->client[0]->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--}}
@if(in_array('timelogs',$modules))
@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