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

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

@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'; } @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')
{{ $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
@lang('app.menu.tasks')
@if(!empty($taskStatus)) @else @lang('messages.noRecordFound') @endif
@lang('app.earnings')
@if($chartData != '[]')
@else @lang('messages.noRecordFound') @endif
@lang('app.menu.timeLogs')
@if($timechartData != '[]')
@else @lang('messages.noRecordFound') @endif
{{--Ajax Modal--}} {{--Ajax Modal Ends--}} {{--Ajax Modal--}} {{--Ajax Modal Ends--}} @endsection @push('footer-script') @endpush