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

@lang('app.project') #{{ $project->id }} - {{ ucwords($project->project_name) }}

@php $projectPin = $project->pinned(); @endphp @lang('modules.payments.addPayment') @php if ($project->status == 'in progress') { $statusText = __('app.inProgress'); $statusTextColor = 'text-info'; $btnTextColor = 'btn-info'; } else if ($project->status == 'on hold') { $statusText = __('app.onHold'); $statusTextColor = 'text-warning'; $btnTextColor = 'btn-warning'; } else if ($project->status == 'not started') { $statusText = __('app.notStarted'); $statusTextColor = 'text-warning'; $btnTextColor = 'btn-warning'; } else if ($project->status == 'canceled') { $statusText = __('app.canceled'); $statusTextColor = 'text-danger'; $btnTextColor = 'btn-danger'; } else if ($project->status == 'finished') { $statusText = __('app.finished'); $statusTextColor = 'text-success'; $btnTextColor = 'btn-success'; } else if ($project->status == 'under review') { $statusText = __('app.underReview'); $statusTextColor = 'text-warning'; $btnTextColor = 'btn-warning'; } @endphp @lang('app.edit')
@endsection @push('head-script') @endpush @section('content')
@include('admin.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')
{{ !is_null($project->currency_id) ? $project->currency->currency_symbol.$earnings : $earnings }} @lang('app.earnings')
@php $overTime = 0; @endphp @if ($project->hours_allocated > 0) @php $overTime = $hoursLogged - $project->hours_allocated; @endphp @endif @if ($overTime != 0 && $overTime > 0) {{$overTime}} @endif {{ $hoursLogged }} @lang('modules.projects.hoursLogged')
{{ !is_null($project->currency_id) ? $project->currency->currency_symbol.$expenses : $expenses }} @lang('modules.projects.expenses_total')

{!! $project->project_summary !!}

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


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

@if(!is_null($project->client))
@if(!is_null($project->client->client_details))

{{ $project->client->client_details->company_name }}
@endif

{{ ucwords($project->client->name) }}

{{ $project->client->email }}
@endif
@lang('modules.projects.milestones')
@forelse ($milestones as $key=>$item)
@if($item->status == 'complete') @else @endif
@if($item->cost > 0) {{ $item->currency->currency_symbol.$item->cost }} @endif
@empty @lang('messages.noRecordFound') @endforelse
@forelse($project->members as $member) user @empty @lang('messages.noMemberAddedToProject') @endforelse
@lang('modules.projects.activityTimeline')
@foreach($activities as $activ)
{{ $activ->activity }}
{{ $activ->created_at->diffForHumans() }}
@endforeach
@if(in_array('tasks',$modules))
@lang('app.menu.tasks')
@if(!empty($taskStatus)) @else @lang('messages.noRecordFound') @endif
@endif
@lang('app.earnings')
@if($chartData != '[]')
@else @lang('messages.noRecordFound') @endif
@lang('app.menu.timeLogs')
@if($timechartData != '[]')
@else @lang('messages.noRecordFound') @endif

@if($project->notes) {!! $project->notes !!} @else @lang('messages.noRecordFound') @endif
@forelse($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') {{ !is_null($project->custom_fields_data['field_'.$field->id]) ? $field->values[$project->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'date') {{ !is_null($project->custom_fields_data['field_'.$field->id]) ? \Carbon\Carbon::parse($project->custom_fields_data['field_'.$field->id])->format($global->date_format) : '--'}} @endif
@empty @endforelse
{{--Ajax Modal--}} {{--Ajax Modal Ends--}} {{--Ajax Modal--}} {{--Ajax Modal Ends--}} @endsection @push('footer-script') @endpush