+ class="@if($curentChoreEntry->due_type == 'overdue') table-danger @elseif($curentChoreEntry->due_type == 'duetoday') table-info @elseif($curentChoreEntry->due_type == 'duesoon') table-warning @endif">
|
- @if(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d
- H:i:s'))
- overdue
- @elseif(FindObjectInArrayByPropertyValue($chores, 'id'
- ,
- $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'
- )))
- duesoon
- @endif
- |
-
- @if(!empty($curentChoreEntry->next_execution_assigned_to_user_id))
- xx{{ $curentChoreEntry->next_execution_assigned_to_user_id }}xx
+ {{ $curentChoreEntry->due_type }}
+ @if($curentChoreEntry->due_type == 'duetoday')
+ duesoon
+ @endif
+ |
+
+ @if(!empty($curentChoreEntry->next_execution_assigned_to_user_id))
+ xx{{ $curentChoreEntry->next_execution_assigned_to_user_id }}xx
|
@endif
diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php
index 5e89a8f5..6ad64ef3 100755
--- a/views/stockoverview.blade.php
+++ b/views/stockoverview.blade.php
@@ -50,16 +50,16 @@
@if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)
+
+
-
-
@endif
@@ -121,9 +125,7 @@
@foreach($tasks as $task)
+ class="@if($task->due_type == 'overdue') table-danger @elseif($task->due_type == 'duetoday') table-info @elseif($task->due_type == 'duesoon') table-warning @endif">
@if($task->done == 0)
assigned_to_user_id != null) {{ GetUserDisplayName(FindObjectInArrayByPropertyValue($users, 'id', $task->assigned_to_user_id)) }} @endif
|
- @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'
- )))
- duesoon
- @endif
- |
-
- @if($task->category_id != null) {{ FindObjectInArrayByPropertyValue($taskCategories, 'id', $task->category_id)->name }} @else {{ $__t('Uncategorized') }} @endif
+ {{ $task->due_type }}
+ @if($task->due_type == 'duetoday')
+ duesoon
+ @endif
+ |
+
+ @if($task->category_id != null) {{ FindObjectInArrayByPropertyValue($taskCategories, 'id', $task->category_id)->name }} @else {{ $__t('Uncategorized') }} @endif
|
@include('components.userfields_tbody',
array( 'userfields'=> $userfields,