From c3731b3200fbfbfd6da94f5303e78df76262ad1b Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Mon, 26 Nov 2018 19:40:29 +0100 Subject: [PATCH] Sort recipes fulfillment column by amount of missing products (closes #113) --- views/recipes.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/recipes.blade.php b/views/recipes.blade.php index 85f09de4..084fda76 100644 --- a/views/recipes.blade.php +++ b/views/recipes.blade.php @@ -37,7 +37,7 @@ @if(FindObjectInArrayByPropertyValue($recipesSumFulfillment, 'recipe_id', $recipe->id)->need_fulfilled == 1){{ $L('Enough in stock') }}@elseif(FindObjectInArrayByPropertyValue($recipesSumFulfillment, 'recipe_id', $recipe->id)->need_fulfilled_with_shopping_list == 1){{ $L('Not enough in stock, #1 ingredients missing but already on the shopping list', FindObjectInArrayByPropertyValue($recipesSumFulfillment, 'recipe_id', $recipe->id)->missing_products_count) }}@else{{ $L('Not enough in stock, #1 ingredients missing', FindObjectInArrayByPropertyValue($recipesSumFulfillment, 'recipe_id', $recipe->id)->missing_products_count) }}@endif - @if(FindObjectInArrayByPropertyValue($recipesSumFulfillment, 'recipe_id', $recipe->id)->need_fulfilled == 1) 1 @elseif(FindObjectInArrayByPropertyValue($recipesSumFulfillment, 'recipe_id', $recipe->id)->need_fulfilled_with_shopping_list == 1) 2 @else 3 @endif + {{ FindObjectInArrayByPropertyValue($recipesSumFulfillment, 'recipe_id', $recipe->id)->missing_products_count }} @endforeach