{!! Html::style(asset('landing/css/bootstrap.min.css')) !!} @php $start = $project->start_date; $end = $project->end_date; $startDate = new DateTime($start); $endDate = new DateTime($end); $currentDate = new DateTime(); $date1 = strtotime($start); $date2 = strtotime($end); $cur= date('Y-m-d'); $current = strtotime($cur); ############### days finding ################ $date1=date_create($start); $date2=date_create($end); $diff=date_diff($date1,$date2); $no_working_days=$diff->format("%a"); // $no_working_days=$no_working_days;// include the last day ############### END ############################## ############### Remaining days ################### $date1=date_create($cur); $date2=date_create($end); $diff=date_diff($date1,$date2); $remaining_working_days=$diff->format("%a"); // $remaining_working_days=$remaining_working_days;// include the last day ############### Remaining days ################## $completed_days=$no_working_days-$remaining_working_days; // percentage calculator $perday=100/$no_working_days; // $date1=date_create($start); // $date2=date_create($cur); // $diff=date_diff($date1,$date2); // $no_days_completed=$diff->format("%a"); // $no_days_completed=$no_days_completed+1; $current_percentage=round($completed_days*$perday); $remaing_percenatge=round(100-$current_percentage); // percentage caluclator end // $totalTime = $endDate->getTimestamp() - $startDate->getTimestamp(); // $elapsedTime = $currentDate->getTimestamp() - $startDate->getTimestamp(); // echo "Total project time = " . $totalTime . "
"; // echo "Elapsed project time = " . $elapsedTime . "
"; // $current_percentage=round(($elapsedTime / $totalTime) * 100.0); // $remaing_percenatge=round(100-$current_percentage); @endphp Page Title {{-- --}}
PROJECT OVERALL PROGRAM STATUS
{{$no_working_days}} Days
{{--
15 Days
--}}
Base Program End Date ({{ date("d-m-Y", strtotime($end)) }})
{{--
Rev-1 Program End Date (30-9-2021)
--}}

BASE PROGRAM STATUS
{{$no_working_days}} Days
{{--
{{$remaining_working_days}}
--}}
{{--

WORKING DAYS

REAMINING DAYS

--}}
DURATION IN NO OF DAYS
{{$completed_days}} Days
{{$remaining_working_days}} Days
{{--

WORKING DAYS

REAMINING DAYS

--}}
{{--
DURATION IN PERCENTAGE
{{$actual_current_progress}}%
@if($actual_remaining_progress>0)
{{$actual_remaining_progress}}%
@endif

WORKING DAYS

REAMINING DAYS

--}}
PLANNED PROGRESS IN PERCENTAGE
{{$current_percentage}}%
{{$remaing_percenatge}}%
{{--

WORKING DAYS

REAMINING DAYS

--}}
ACTUAL PROGRESS IN PERCENTAGE
ACTUAL PROGRESS {{$actual_current_progress}}%
@php $delay=0; @endphp @if(round($actual_current_progress)!=$current_percentage) @php $delay=round($current_percentage-$actual_current_progress); @endphp
DELAY {{$delay}}%
@endif
REMAINING PROGRESS {{$actual_remaining_progress-$delay}}%
ACTUAL PROGRESS
ACTUAL REMAINING PROGRESS ({{$actual_current_progress}})+delay({{$delay}})={{$actual_remaining_progress+$delay}}%
@forelse($taskdata as $key => $value) @if($value['percentage_as_today'] != $value['actual_percent']) @else @endif @empty @endforelse
Title Planned Start Date Planned Finish Duration Planned % as of today Planned Value Actual Start Date Actual Finish Actual Duration Actual % as of Today Earned Value
{{$value['title']}} {{$value['planed_start']}} {{$value['planed_end']}} {{$value['duration']}} {{$value['percentage_as_today']}} Planned Value {{$value['actual_start']}} {{$value['actual_end']}} {{$value['actual_duration']}} {{$value['actual_percent']}} Earned Value
No Record