diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index 345b95d8..d827f37a 100644 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -143,9 +143,7 @@ @foreach($currentStock as $currentStockEntry) + class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $currentStockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('+' . $nextXDays . ' days')) && $currentStockEntry->amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif"> @if($currentStockEntry->best_before_date < date('Y-m-d 23:59:59', - strtotime('-1 - days')) + strtotime('-' + . '1' + . ' days' + )) && $currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d 23:59:59', @@ -338,7 +338,7 @@ . ' days' )) && - $currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif + $currentStockEntry->amount > 0) expiring @elseif ($currentStockEntry->product_missing) belowminstockamount @endif" xx{{ $currentStockEntry->product_group_name }}xx