@extends('layouts.app') @section('title', __('printer.add_printer')) @section('content')

@lang('printer.add_printer')

{!! Form::open(['url' => action('PrinterController@store'), 'method' => 'post', 'id' => 'add_printer_form' ]) !!}
{!! Form::label('name', __('printer.name') . ':*') !!} {!! Form::text('name', null, ['class' => 'form-control', 'required', 'placeholder' => __('lang_v1.printer_name_help')]); !!}
{!! Form::label('connection_type',__('printer.connection_type') . ':*') !!} {!! Form::select('connection_type', $connection_types, null, ['class' => 'form-control select2']); !!}
{!! Form::label('capability_profile',__('printer.capability_profile') . ':*') !!} @show_tooltip(__('tooltip.capability_profile')) {!! Form::select('capability_profile', $capability_profiles, null, ['class' => 'form-control select2']); !!}
{!! Form::label('char_per_line', __('printer.character_per_line') . ':*') !!} {!! Form::number('char_per_line', 42, ['class' => 'form-control', 'required', 'placeholder' => __('lang_v1.char_per_line_help')]); !!}
{!! Form::label('ip_address', __('printer.ip_address') . ':*') !!} {!! Form::text('ip_address', null, ['class' => 'form-control', 'required', 'placeholder' => __('lang_v1.ip_address_help')]); !!}
{!! Form::label('port', __('printer.port') . ':*') !!} {!! Form::text('port', 9100, ['class' => 'form-control', 'required']); !!} @lang('lang_v1.port_help')
{!! Form::label('path', __('printer.path') . ':*') !!} {!! Form::text('path', null, ['class' => 'form-control', 'required']); !!} @lang('lang_v1.connection_type_windows'): @lang('lang_v1.windows_type_help') LPT1 (parallel) / COM1 (serial).
@lang('lang_v1.connection_type_linux'): @lang('lang_v1.linux_type_help') /dev/lp0 (parallel), /dev/usb/lp1 (USB), /dev/ttyUSB0 (USB-Serial), /dev/ttyS0 (serial).
{!! Form::close() !!}
@endsection