@extends('layout.master') @section('content') @include('layout.errorform') @include('layout.info')
Taxes

Please take note that the tax amount is in the percentage.

{!! Form::model($taxes, ['route' => ['taxes.update', $taxes->id], 'method' => 'PATCH', 'class' => 'form-horizontal', 'autocomplete' => 'off']) !!}
{!! Form::label('commission', 'Tax Name :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'tax', $taxes->tax, ['class' => 'form-control', 'placeholder' => 'Tax Name', 'id' => 'commission']) !!}
{!! Form::label('city', 'Amount in Percentage :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'amount', $taxes->amount, ['class' => 'form-control', 'placeholder' => 'Amount in percentage', 'id' => 'city']) !!}

{!! Form::submit('Update', ['class' => 'btn btn-primary btn-lg btn-block']) !!}

{!! Form::close() !!}
@endsection @section('jquery') //////////////////////////////////////////////////////////////////////////////////// // uppercase input for tracking number and customer section $(document).on('keyup', 'input', function () { toUppercase(this); }); function toUppercase(obj) { var mystring = obj.value; var sp = mystring.split(' '); var wl=0; var f ,r; var word = new Array(); for (i = 0 ; i < sp.length ; i ++ ) { f = sp[i].substring(0,1).toUpperCase(); r = sp[i].substring(1).toUpperCase(); word[i] = f+r; } newstring = word.join(' '); obj.value = newstring; return true; } @endsection