@extends('layouts.app') @section('title', __('barcode.edit_barcode_setting')) @section('content')

@lang('barcode.edit_barcode_setting')

{!! Form::open(['url' => action([\App\Http\Controllers\BarcodeController::class, 'update'], [$barcode->id]), 'method' => 'PUT', 'id' => 'add_barcode_settings_form' ]) !!}
{!! Form::label('name', __('barcode.setting_name') . ':*') !!} {!! Form::text('name', $barcode->name, ['class' => 'form-control', 'required', 'placeholder' => __('barcode.setting_name')]); !!}
{!! Form::label('description', __('barcode.setting_description') ) !!} {!! Form::textarea('description', $barcode->description, ['class' => 'form-control', 'placeholder' => __('barcode.setting_description'), 'rows' => 3]); !!}
{!! Form::label('top_margin', __('barcode.top_margin') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('top_margin', $barcode->top_margin, ['class' => 'form-control', 'placeholder' => __('barcode.top_margin'), 'min' => 0, 'step' => 0.00001, 'required']); !!}
{!! Form::label('left_margin', __('barcode.left_margin') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('left_margin', $barcode->left_margin, ['class' => 'form-control', 'placeholder' => __('barcode.left_margin'), 'min' => 0, 'step' => 0.00001, 'required']); !!}
{!! Form::label('width', __('barcode.width') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('width', $barcode->width, ['class' => 'form-control', 'placeholder' => __('barcode.width'), 'min' => 0.1, 'step' => 0.00001, 'required']); !!}
{!! Form::label('height', __('barcode.height') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('height', $barcode->height, ['class' => 'form-control', 'placeholder' => __('barcode.height'), 'min' => 0.1, 'step' => 0.00001, 'required']); !!}
{!! Form::label('paper_width', __('barcode.paper_width') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('paper_width', $barcode->paper_width, ['class' => 'form-control', 'placeholder' => __('barcode.paper_width'), 'min' => 0.1, 'step' => 0.00001, 'required']); !!}
{!! Form::label('paper_height', __('barcode.paper_height') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('paper_height', $barcode->paper_height, ['class' => 'form-control', 'placeholder' => __('barcode.paper_height'), 'min' => 0.1, 'step' => 0.00001, 'required']); !!}
{!! Form::label('stickers_in_one_row', __('barcode.stickers_in_one_row'). ':*') !!}
{!! Form::number('stickers_in_one_row', $barcode->stickers_in_one_row, ['class' => 'form-control', 'placeholder' => __('barcode.stickers_in_one_row'), 'min' => 1, 'required']); !!}
{!! Form::label('row_distance', __('barcode.row_distance') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('row_distance', $barcode->row_distance, ['class' => 'form-control', 'placeholder' => __('barcode.row_distance'), 'min' => 0, 'step' => 0.00001, 'required']); !!}
{!! Form::label('col_distance', __('barcode.col_distance') . ' ('. __('barcode.in_in') . '):*') !!}
{!! Form::number('col_distance', $barcode->col_distance, ['class' => 'form-control', 'placeholder' => __('barcode.col_distance'), 'min' => 0, 'step' => 0.00001, 'required']); !!}
{!! Form::label('stickers_in_one_sheet', __('barcode.stickers_in_one_sheet') . ':*') !!}
{!! Form::number('stickers_in_one_sheet', $barcode->stickers_in_one_sheet, ['class' => 'form-control', 'placeholder' => __('barcode.stickers_in_one_sheet'), 'min' => 1, 'required']); !!}
{!! Form::close() !!}
@endsection