diff --git a/views/batteriesoverview.blade.php b/views/batteriesoverview.blade.php index 2f021700..72c0ac94 100644 --- a/views/batteriesoverview.blade.php +++ b/views/batteriesoverview.blade.php @@ -80,7 +80,7 @@ @foreach($current as $currentBatteryEntry) @@ -147,7 +147,11 @@ , $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s', - strtotime("+$nextXDays days"))) + strtotime('+' + . + $nextXDays + . ' days' + ))) duesoon @endif diff --git a/views/choresoverview.blade.php b/views/choresoverview.blade.php index 7063499d..94e9ce9b 100644 --- a/views/choresoverview.blade.php +++ b/views/choresoverview.blade.php @@ -110,7 +110,7 @@ @foreach($currentChores as $curentChoreEntry) @@ -189,7 +189,11 @@ , $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d H:i:s', - strtotime("+$nextXDays days"))) + strtotime('+' + . + $nextXDays + . ' days' + ))) duesoon @endif diff --git a/views/stockentries.blade.php b/views/stockentries.blade.php index 5da1e056..88b92a57 100644 --- a/views/stockentries.blade.php +++ b/views/stockentries.blade.php @@ -54,9 +54,7 @@ @foreach($stockEntries as $stockEntry) diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index d5e3cb5f..345b95d8 100644 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -143,7 +143,7 @@ @foreach($currentStock as $currentStockEntry) @@ -310,7 +310,8 @@ @endif - {{ $currentStockEntry->value }} + {{ $currentStockEntry->value }} {{ $currentStockEntry->best_before_date }} @@ -329,7 +330,13 @@ strtotime('-1 days')) && - $currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("+$nextXDays days")) + $currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d + 23:59:59', + strtotime('+' + . + $nextXDays + . ' days' + )) && $currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif diff --git a/views/tasks.blade.php b/views/tasks.blade.php index fc079c66..1a42fccd 100644 --- a/views/tasks.blade.php +++ b/views/tasks.blade.php @@ -99,9 +99,7 @@ @foreach($tasks as $task) @@ -156,7 +154,11 @@ @if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d')) overdue @elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d', - strtotime("+$nextXDays days"))) + strtotime('+' + . + $nextXDays + . ' days' + ))) duesoon @endif