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

{{ $title }}

{{ $title }}

{{ Form::open(['url' => route('tax_edit', $taxDetails['id'] ), 'method'=>'post', 'name' => 'tax', 'id' => 'tax']) }}
{{ Form::label(__('lbl.title')) }} {{ Form::text('title', $taxDetails['title'], ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.title'),"id"=>"title","name"=>"title"]) }} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::label(__('lbl.current_rate')) }} {{ Form::text('amount', $taxDetails['amount'], ["class"=>"form-control mxlen_8","onkeypress"=>"return validateFloatKeyPress(this,event);","placeholder"=>__('lbl.current_rate'),"id"=>"amount","name"=>"amount"]) }} @if ($errors->has('amount')) {{ $errors->first('amount') }} @endif
{{ Form::label(__('lbl.rounding')) }} {{ Form::select('rounding', [""=>"---Select Status---", "Math"=>__('lbl.math'),"Ceiling"=>__('lbl.celling') ],$taxDetails['rounding'],["class"=>"form-control","id"=>"rounding","name"=>"rounding"]) }} @if ($errors->has('rounding')) {{ $errors->first('rounding') }} @endif
{{ Form::label(__('lbl.agency')) }} {{ Form::select('agency', !empty($agency) ? ["0"=>"---Select Agency---"]+$agency : [], $selectedAgency,["class"=>"form-control select2 select2-hidden-accessible","multiple"=>"multiple","id"=>"agency","name"=>"agency[]"]) }} @if ($errors->has('agency')) {{ $errors->first('agency') }} @endif
{{ Form::button( ' '.__('lbl.update'),["type"=> "submit","name"=>"submit","value"=>"submit","class"=>"clickbtncommon btn-sm btn btn-primary "]) }} {{ __('lbl.cancel') }}
{{ Form::close() }}
@endsection @section('pagescript') {!! Helper::pagejs(['js/lib/select2/dist/js/select2.full.min.js','js/backend/tax/add_edit.js'])!!} @stop