@extends('layout.master') @section('content') @include('layout.errorform') @include('layout.info') {!! Form::open(['route' => 'banks.store', 'class' => 'form-horizontal']) !!}
Add Bank
{!! Form::label('cate', 'Name :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'bank', @$value, ['class' => 'form-control', 'placeholder' => 'Name', 'id' => 'cate']) !!}
{!! Form::label('cit', 'City :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'city', @$value, ['class' => 'form-control', 'placeholder' => 'City', 'id' => 'cit']) !!}
{!! Form::label('scode', 'Swift Code :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'swift_code', @$value, ['class' => 'form-control', 'placeholder' => 'Swift Code', 'id' => 'scode']) !!}
{!! Form::label('acc', 'Account :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'account', @$value, ['class' => 'form-control', 'placeholder' => 'Account', 'id' => 'acc']) !!}
{!! Form::submit('Save', ['class' => 'btn btn-primary btn-lg btn-block']) !!}
{!! Form::close() !!}
@endsection @section('jquery') $("input").keyup(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