@forelse ($show_parent_task as $show_parent) @php $instanceId = Session::get('project_instance'); $remaining_working_days = Utility::remaining_duration_calculator( $show_parent->end_date,$show_parent->project_id); $remaining_working_days = $remaining_working_days != 0 ? $remaining_working_days-1 : 0;// include the last day $completed_days = $show_parent->duration-$remaining_working_days; if($show_parent->duration==1){ $current_Planed_percentage=100; }else{ // percentage calculator if($show_parent->duration>0){ $perday = 100/$show_parent->duration; }else{ $perday = 0; } $current_Planed_percentage = round($completed_days*$perday); } @endphp @empty @endforelse
{{__('SummaryId')}} {{__('Tasks')}} {{__('Status')}} {{__('Actual Progress')}} {{__('Planned Progress')}} {{__('Planned Start Date')}} {{__('Planned End Date')}}
{{ $show_parent->id }} {{ $show_parent->text }} @if (strtotime($show_parent->end_date) < time() && $show_parent->progress < 100) Pending @elseif(strtotime($show_parent->end_date) < time() && $show_parent->progress >= 100) Completed @else In-Progress @endif
{{round($show_parent->progress)}}%
{{round($show_parent->progress)}}% Complete
{{round($current_Planed_percentage)}}%
{{round($current_Planed_percentage)}}% Complete
{{ Utility::site_date_format($show_parent->start_date,\Auth::user()->id) }} {{ Utility::site_date_format_minus_day($show_parent->end_date,\Auth::user()->id,1) }}