startSection('title', $__t('Purchase')); ?> startSection('activeNav', 'purchase'); ?> startSection('viewJsName', 'purchase'); ?> startSection('content'); ?>

yieldContent('title'); ?>

make('components.productpicker', array( 'products' => $products, 'nextInputSelector' => '#best_before_date .datetimepicker-input' ), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> make('components.datetimepicker', array( 'id' => 'best_before_date', 'label' => 'Best before', 'format' => 'YYYY-MM-DD', 'initWithNow' => false, 'limitEndToNow' => false, 'limitStartToNow' => false, 'invalidFeedback' => $__t('A best before date is required'), 'nextInputSelector' => '#amount', 'additionalCssClasses' => 'date-only-datetimepicker', 'shortcutValue' => '2999-12-31', 'shortcutLabel' => 'Never expires', 'earlierThanInfoLimit' => date('Y-m-d'), 'earlierThanInfoText' => $__t('The given date is earlier than today, are you sure?'), 'additionalGroupCssClasses' => $additionalGroupCssClasses ), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> make('components.numberpicker', array( 'id' => 'amount', 'label' => 'Amount', 'hintId' => 'amount_qu_unit', 'min' => 1, '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') . '
' ), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> make('components.numberpicker', array( 'id' => 'price', 'label' => 'Price', 'min' => 0, 'step' => 0.0001, 'value' => '', 'hint' => $__t('in %s and based on the purchase quantity unit', GROCY_CURRENCY), 'invalidFeedback' => $__t('The price cannot be lower than %s', '0'), 'isRequired' => false, 'additionalGroupCssClasses' => 'mb-1' ), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
make('components.locationpicker', array( 'locations' => $locations, 'isRequired' => false ), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
make('components.productcard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
stopSection(); ?> make('layout.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>