@extends('layout.default') @if($mode == 'edit') @section('title', $__t('Edit recipe ingredient')) @else @section('title', $__t('Add recipe ingredient')) @endif @section('viewJsName', 'recipeposform') @section('content')

@if($mode == 'edit') @endif
@include('components.productpicker', array( 'products' => $products, 'nextInputSelector' => '#amount' ))
only_check_single_unit_in_stock == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="only_check_single_unit_in_stock" name="only_check_single_unit_in_stock" value="1">
@php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp @php if($mode == 'edit') { $initialQuId = $recipePos->qu_id; } else { $initialQuId = ''; } @endphp @include('components.productamountpicker', array( 'value' => $value, 'initialQuId' => $initialQuId, 'additionalGroupCssClasses' => 'mb-2' ))
not_check_stock_fulfillment == 1 || FindObjectInArrayByPropertyValue($products, 'id', $recipePos->product_id)->not_check_stock_fulfillment_for_recipes == 1)) checked @endif class="form-check-input custom-control-input" type="checkbox" id="not_check_stock_fulfillment" name="not_check_stock_fulfillment" value="1">
@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) @php if($mode == 'edit') { $value = $recipePos->price_factor; } else { $value = 1; } @endphp @include('components.numberpicker', array( 'id' => 'price_factor', 'label' => 'Price factor', 'min' => $DEFAULT_MIN_AMOUNT, 'decimals' => $userSettings['stock_decimal_places_amounts'], 'value' => '', 'hint' => $__t('The resulting price of this ingredient will be multiplied by this factor'), 'isRequired' => true, 'value' => $value, 'additionalCssClasses' => 'locale-number-input locale-number-quantity-amount' )) @else @endif
@include('components.productcard')
@stop