From 21c221b520b29683cb694a970537e2d50a9aab2a Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 11 Jul 2021 21:32:24 +0200 Subject: [PATCH] Improved recipe page / group by fulfillment status --- views/recipes.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/recipes.blade.php b/views/recipes.blade.php index a4e11946..5cde211f 100644 --- a/views/recipes.blade.php +++ b/views/recipes.blade.php @@ -118,10 +118,12 @@ {{ $__t('Name') }} {{ $__t('Desired servings') }} - {{ $__t('Requirements fulfilled') }} + {{ $__t('Requirements fulfilled') }} Hidden status for sorting of "Requirements fulfilled" column Hidden status for filtering by status Hidden recipe ingredient product names + Hidden status for grouping by status @include('components.userfields_thead', array( 'userfields' => $userfields @@ -170,6 +172,9 @@ {{ FindObjectInArrayByPropertyValue($products, 'id', $recipePos->product_id)->name . ' ' }} @endforeach + + @if(FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $recipe->id)->need_fulfilled == 1) {{ $__t('Enough in stock') }} @elseif(FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $recipe->id)->need_fulfilled_with_shopping_list == 1) {{ $__t('Not enough in stock, but already on the shopping list') }} @else {{ $__t('Not enough in stock') }} @endif + @include('components.userfields_tbody', array( 'userfields' => $userfields,