@extends('layout.default') @section('title', $__t('Consume')) @section('activeNav', 'consume') @section('viewJsName', 'consume') @push('pageScripts') @endpush @section('content')

@yield('title') @if(!$embedded) @else @endif

@include('components.productpicker', array( 'products' => $products, 'nextInputSelector' => '#amount', 'disallowAddProductWorkflows' => true )) @include('components.numberpicker', array( 'id' => 'amount', 'label' => 'Amount', 'hintId' => 'amount_qu_unit', 'min' => 1, 'value' => 0, 'invalidFeedback' => $__t('The amount cannot be lower than %s', '1'), 'additionalHtmlContextHelp' => '
' . $__t('Tare weight handling enabled - please weigh the whole container, the amount to be posted will be automatically calculcated') . '
' )) @if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) @php /*@include('components.locationpicker', array( 'id' => 'location_id', 'locations' => $locations, 'isRequired' => true, 'label' => 'Location' ))*/ @endphp
{{ $__t('A location is required') }}
@endif
@if (GROCY_FEATURE_FLAG_RECIPES) @include('components.recipepicker', array( 'recipes' => $recipes, 'isRequired' => false, 'hint' => $__t('This is for statistical purposes only') )) @endif @if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING) @endif
@include('components.productcard')
@stop