{!! 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
WORKING DAYS
REAMINING DAYS
WORKING DAYS
REAMINING DAYS
WORKING DAYS
REAMINING DAYS
WORKING DAYS
REAMINING DAYS
| 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 | ||||||||||