diff --git a/resources/views/projects/show.blade.php b/resources/views/projects/show.blade.php index 684588868431..c1ff63c7a302 100644 --- a/resources/views/projects/show.blade.php +++ b/resources/views/projects/show.blade.php @@ -76,7 +76,7 @@ {{ $project->private_notes }} -
+

{{ trans('texts.summary') }} @@ -85,7 +85,12 @@ - +
{{ trans('texts.duration') }}{{ Utils::formatTime($chartData->duration) }} + {{ Utils::formatTime($chartData->duration) }} + @if ($project->budgeted_hours) + [{{ round($chartData->duration / ($project->budgeted_hours * 60 * 60) * 100) }}%] + @endif +

@@ -174,7 +179,7 @@ yAxes: [{ ticks: { @if ($project->budgeted_hours) - max: {{ $project->budgeted_hours }}, + max: {{ max($project->budgeted_hours, $chartData->duration / 60 / 60) }}, @endif beginAtZero: true, callback: function(label, index, labels) {