@extends('layouts.adminLayout.admin_design') @section('content')

{{ $title }}

{{ $title }}

{{ Form::open(['url' => route('printers.store'), 'method'=>'POST', 'name' => 'printers', 'id' => 'printers']) }}
{{ Form::label('Printer Name') }} {{ Form::text('printer_name', old('printer_name'), ["class"=>"form-control mxlen_15","placeholder"=>"Printer Name","id"=>"printer_name","name"=>"printer_name"]) }} @if ($errors->has('printer_name')) {{ $errors->first('printer_name') }} @endif
{{ Form::label('Printer Network') }} {{ Form::select('printer_network', Config::get('constants.printer_newtwork') ,(Input::old('printer_network')) ? Input::old('printer_network') : "Windows",["class"=>"form-control","id"=>"printer_network","name"=>"printer_network"]) }} @if ($errors->has('printer_network')) {{ $errors->first('printer_network') }} @endif
{{ Form::label('Printer Type') }} {{ Form::select('printer_type', Config::get('constants.printer_type') ,(Input::old('printer_type')) ? Input::old('printer_type') : "Simple",["class"=>"form-control","id"=>"printer_type","name"=>"printer_type"]) }} @if ($errors->has('printer_type')) {{ $errors->first('printer_type') }} @endif
{{ Form::label('Printer Characters') }} {{ Form::text('printer_characters', old('printer_characters'), ["class"=>"form-control mxlen_10","placeholder"=>"Printer Characters","id"=>"printer_characters","name"=>"printer_characters"]) }} @if ($errors->has('printer_characters')) {{ $errors->first('printer_characters') }} @endif
{{ Form::label('Printer IP') }} {{ Form::text('printer_ip_address', old('printer_ip_address'), ["class"=>"form-control validIP mxlen_15","placeholder"=>"Printer IP","id"=>"printer_ip_address","name"=>"printer_ip_address", 'data-inputmask'=>"'alias': 'ip'", 'data-mask'=>""]) }} @if ($errors->has('printer_ip_address')) {{ $errors->first('printer_ip_address') }} @endif
{{ Form::label('Printer Port') }} {{ Form::text('printer_port', old('printer_port'), ["class"=>"form-control mxlen_4 digits","placeholder"=>"Printer Port","id"=>"printer_port","name"=>"printer_port"]) }} @if ($errors->has('printer_port')) {{ $errors->first('printer_port') }} @endif
{{ Form::button( ' '.__('lbl.save'),["type"=>"submit","name"=>"submit","value"=>"submit","class"=>"clickbtncommon btn btn-primary btn-sm ".$add_edit_allowed.""]) }} {{ __('lbl.cancel') }}
{{ Form::close() }}
@endsection @section('pagescript') {!! Helper::pagejs([ 'js/lib/plugins/input-mask/jquery.inputmask.js', 'js/lib/plugins/input-mask/jquery.inputmask.date.extensions.js', 'js/lib/plugins/input-mask/jquery.inputmask.extensions.js', 'js/backend/printers/add_edit.js' ]) !!} @stop