@extends('layouts.app') @section('css') @endsection @section('content')
{{ __('Project No') }}{{ '#' . $project->id }} : {{ $project->name }}  {{ $project->status_name }}
@include('layouts.includes.project_navbar')

{{ $dayCount }}

{{ $dayTitle }}

{{ $totalTask.' / '.$completedTask}}

{{ __('Total task') }}

{{ $total_logged_time }}

{{ __('Logged Times') }}

{{ __('Project Progress') }}

{{ timeZoneformatDate($project->begin_date) }}
{{ __('Start Date') }}
{{timeZoneformatDate( $project->due_date )}}
{{ __('End Date') }}
{{ __('Customers') }}
@if (isset($project->first_name) && !empty($project->first_name)) {{ $project->first_name ? $project->first_name.' '.$project->last_name : __('N/A')}} @else {{ __('N/A') }} @endif
{{ __('Project Creator') }}
@if (isset($project->userName) && !empty($project->userName)) {{ $project->userName }} @else {{ __('N/A') }} @endif
{{ __('Charge Type') }}
@if($project->charge_type==1) {{ __('Fixed Rate') }} @elseif($project->charge_type==2) {{ __('Project Hours') }} @elseif($project->charge_type==3) {{ __('Task Hours') }} @endif
{{ __('Total Cost') }}
{{ isset($project->cost) ? $project->cost : __('N/A') }}
@if (!empty($project->detail))
{{ __('Project Details') }}
@php $project->detail = str_replace('

', '

', $project->detail); if (mb_strlen(strip_tags($project->detail)) > 230) { $projectDetailsLess = mb_substr(strip_tags($project->detail, '
'), 0, 230) . '...'; } @endphp
{!! !empty($projectDetailsLess) ? strip_tags($projectDetailsLess, '
') : strip_tags($project->detail, '
') !!}
{!! strip_tags($project->detail, '
') !!}
{{ __('SHOW MORE') }}
@endif
{{ __('Invoice Overview') }}

{{ __('Total Amount') }}
@forelse($amounts['amounts'] as $amount) {{ isset($amount->totalInvoice) ? formatCurrencyAmount($amount->totalInvoice, $amount->currency->symbol) : 0 }}
@empty {{ formatCurrencyAmount(0) }}
@endforelse
{{ __('Total Paid') }}
@forelse($amounts['amounts'] as $amount) {{ isset($amount->totalPaid) ? formatCurrencyAmount($amount->totalPaid, $amount->currency->symbol) : 0 }}
@empty {{ formatCurrencyAmount(0) }}
@endforelse
{{ __('Total Due') }}
@forelse($amounts['amounts'] as $amount) {{ formatCurrencyAmount($amount->totalInvoice - $amount->totalPaid, $amount->currency->symbol) }}
@empty {{ formatCurrencyAmount(0) }}
@endforelse
{{ __('Over Due') }}
@if(count($amounts['overDue']) > 0) @foreach($amounts['overDue'] as $index => $overDue) {{ isset($overDue) && !empty($overDue) ? formatCurrencyAmount($overDue['totalAmount'] - $overDue['totalPaid'], $overDue->currency->symbol) : formatCurrencyAmount(0) }}
@endforeach @elseif (!empty($allCurrency)) @foreach($allCurrency as $key => $value) {{ formatCurrencyAmount(0, $value) }}
@endforeach @else {{ formatCurrencyAmount(0) }}
@endif
{{ __('Project Activities') }}

@if(!$todayActivities->isEmpty()) @foreach($todayActivities as $todayActivity)
@if(!empty($todayActivity->user_id)) {{ isset($activity->user->full_name) ? $activity->user->full_name : '' }} @else {{ isset($activity->customer->name) ? $activity->customer->name : '' }} @endif {!! $todayActivity->description !!}
{{ \Carbon::parse($todayActivity->created_at)->diffForHumans() }}
@endforeach @else
{{ __('No records found') }}
@endif
@if(!$thisWeekActivities->isEmpty()) @foreach($thisWeekActivities as $thisWeekActivity)
@if(!empty($thisWeekActivity->user_id)) {{ isset($thisWeekActivity->user->full_name) ? $thisWeekActivity->user->full_name : '' }} @else {{ isset($thisWeekActivity->customer->name) ? $thisWeekActivity->customer->name : '' }} @endif {!! $thisWeekActivity->description !!}
{{ \Carbon::parse($thisWeekActivity->created_at)->diffForHumans() }}
@endforeach @else
{{ __('No records found') }}
@endif

@if( count($projectMembers) > 0)
{{ __('Project Member') }}
{{ __('Tags') }}
@if(!empty($tags->all_tags)) @php $tagList = explode(",", $tags->all_tags); @endphp @for($i=0; $i{{$tagList[$i]}} @endfor @else @endif
@endif
@endsection @section('js') {{-- Select2 js --}} @endsection