diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index a9bebf48..c61aeb13 100644 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -142,9 +142,7 @@ @foreach($currentStock as $currentStockEntry) amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif"> @@ -327,10 +325,7 @@ 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