@php
$calories = FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $recipe->id)->calories;
$costs = FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $recipe->id)->costs;
@endphp
@if(!empty($calories) && intval($calories) > 0)
{{ $calories }}
@endif
@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
{{ $costs }}
@endif
@if($index == 0)
@include('components.numberpicker', array(
'id' => 'servings-scale',
'label' => 'Desired servings',
'min' => $DEFAULT_MIN_AMOUNT,
'decimals' => $userSettings['stock_decimal_places_amounts'],
'value' => $recipe->desired_servings,
'additionalAttributes' => 'data-recipe-id="' . $recipe->id . '"',
'hint' => $__t('Base: %s', $recipe->base_servings),
'additionalCssClasses' => 'locale-number-input locale-number-quantity-amount'
))
@endif
@php
$recipePositionsFiltered = FindAllObjectsInArrayByPropertyValue($allRecipePositions[$recipe->id], 'recipe_id', $recipe->id);
@endphp
@if(count($recipePositionsFiltered) > 0)
{{ $__t('Ingredients') }}
@endif
{{ $__t('Preparation') }}
@if(!empty($recipe->description))
{!! $recipe->description !!}
@endif