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

@yield('title')

{{ $L('Recipe') }} {{ $recipe->name }}

@if($mode == 'edit') @endif
@php $prefillByName = ''; if($mode=='edit') { $prefillByName = FindObjectInArrayByPropertyValue($products, 'id', $recipePos->product_id)->name; } @endphp @include('components.productpicker', array( 'products' => $products, 'nextInputSelector' => '#amount', 'prefillByName' => $prefillByName ))
@php if($mode == 'edit') { $value = $recipePos->amount; } else { $value = 1; } @endphp @include('components.numberpicker', array( 'id' => 'amount', 'label' => 'Amount', 'min' => 0, 'value' => $value, 'invalidFeedback' => $L('This cannot be negative and must be an integral number'), 'additionalGroupCssClasses' => 'col-4' ))
{{ $L('A quantity unit is required') }}
only_check_single_unit_in_stock == 1) checked @endif class="form-check-input" type="checkbox" id="only_check_single_unit_in_stock" name="only_check_single_unit_in_stock" value="1">
not_check_stock_fulfillment == 1) checked @endif class="form-check-input" type="checkbox" id="not_check_stock_fulfillment" name="not_check_stock_fulfillment" value="1">
@include('components.productcard')
@stop