<spanclass="timeago-contextual">@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</span>
<aid="selectedRecipeConsumeButton"class="btn btn-sm btn-outline-success py-0"href="#"data-toggle="tooltip"title="{{$L('Consume all ingredients needed by this recipe') }}"data-recipe-id="{{$selectedRecipe->id }}"data-recipe-name="{{$selectedRecipe->name }}">
<spanclass="timeago-contextual">@if(FindObjectInArrayByPropertyValue($recipesFulfillment,'recipe_pos_id',$selectedRecipePosition->id)->need_fulfilled==1){{$L('Enough in stock')}}@else{{$L('Not enough in stock, #1 missing, #2 already on shopping list',FindObjectInArrayByPropertyValue($recipesFulfillment,'recipe_pos_id',$selectedRecipePosition->id)->missing_amount,FindObjectInArrayByPropertyValue($recipesFulfillment,'recipe_pos_id',$selectedRecipePosition->id)->amount_on_shopping_list)}}@endif</span>