@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 ))
{{ $L('This cannot be negative') }}
@include('components.productcard')
@stop