@extends('layout.master') @section('content') @include('layout.errorform') @include('layout.info')
Banks and Financial Institutions
{!! Form::model($banks, ['route' => ['banks.update', $banks->id], 'method' => 'PATCH', 'class' => 'form-horizontal', 'autocomplete' => 'off']) !!}
{!! Form::label('commission', 'Bank :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'bank', $banks->bank, ['class' => 'form-control', 'placeholder' => 'Bank', 'id' => 'commission']) !!}
{!! Form::label('city', 'City :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'city', $banks->city, ['class' => 'form-control', 'placeholder' => 'City', 'id' => 'city']) !!}
{!! Form::label('swift_code', 'Swift Code :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'swift_code', $banks->swift_code, ['class' => 'form-control', 'placeholder' => 'Swift Code', 'id' => 'swift_code']) !!}
{!! Form::label('account', 'Account Number :', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::input('text', 'account', $banks->account, ['class' => 'form-control', 'placeholder' => 'No. Account', 'id' => 'account']) !!}

{!! Form::submit('Save', ['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