@if(!empty($editstates))
{{ Form::model($editstates, array('action' => array('StateController@update', $editstates->state_id), 'method' => 'PUT')) }}
*
{!! Form::select('country_id', [null => 'Select country'] + $countrys,
$editstates->country_id ,['class'=>'form-control'],['class'=>'form-control','required'=>'required'])!!}
*
{{ Form::text('state_name', null, array('class' => 'form-control onlytext','required'=>'required')) }}
{{ Form::submit('Update State!', array('class' => 'btn btn-primary')) }}
{{ Form::close() }}
@else
{{ Form::open(array('url' => 'states','action' => array('StateController@store'), 'method' => 'POST')) }}
*
*
{{ Form::text('state_name', Input::old('state_name'), array('class' => 'form-control onlytext','required'=>'required','placeholder'=>('Enter State Name'))) }}
{{ Form::submit('Create State!', array('class' => 'btn btn-primary')) }}
{{ Form::close() }}
@endif