From fa223f33e660594ec4b5c8c62efea52c8fd3f0c3 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 25 Dec 2017 12:59:46 +0200 Subject: [PATCH] Working on projects --- resources/views/projects/show.blade.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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) {