
	<input type="hidden" name="organization_type" value="{{$param['organization_type']}}"/>
	<input type="hidden" name="view_option" value="0"/>
		<div class="form-row col-md-12">

			<div class="form-group col-md-3">
				<label>Search last available consortia user access by User Name:</label>
			</div>

			<div class="form-group col-md-6 {{ $errors->first('consortia_user_name', 'has-error') }}">
				<input type="text" maxlength="50" id="consortia_user_name" name="consortia_user_name" size="60" class="form-control" value="@if(isset($param['consortia_user_name'])){{$param['consortia_user_name']}}@endif">
				<label class="text-danger"><i>{{ $errors->first('consortia_user_name',':message') }}</i></label>
				@if(isset($search['consortia']))
					<font color="green">Available :</font>
					<label><i>
					@if($search['consortia']->access_type_id == '111' || $search['consortia']->access_type_id == '222')
						Trial
					@elseif($search['consortia']->access_type_id == '333')
						Corporate
					@elseif($search['consortia']->access_type_id == '444' || $search['consortia']->access_type_id == '555' || $search['consortia']->access_type_id == '666')
						Token
					@endif
					
					@if($search['consortia']->access_type_on == 'journal_volume')
						Journal Volume
					@elseif($search['consortia']->access_type_on == 'ebook_volume')
						Ebook Volume
					@elseif($search['consortia']->access_type_on == 'issue')
						Issue
					@elseif($search['consortia']->access_type_on == 'article')
						Article
					@elseif($search['consortia']->access_type_on == 'chapter')
						Chapter
					@endif
					</i></label>
				@endif
			</div>
			
			<div class="form-group col-md-3">
				<button type="submit" class="btn btn-primary" id="con_user_search" name ="con_user_search" value="submit"> <span class="glyphicon glyphicon-search"></span>  Search </button>
			</div>

		</div>
		
		
		<hr style="border:1px solid #eee">
		
		
		<div class="form-row col-md-12">

			<div class="form-group col-md-3">
				<label>Search Organization:</label>
			</div>
			
			<div class="form-group col-md-6">
				<input type="text" id="org_name_search" name="org_name_search" class="form-control" value="{{$param['org_name_search']}}">
				<label class="text-danger"><i>{{ $errors->first('org_name_search',':message') }}</i></label>
				<label id="org_msg" class="text-danger" style="display:none;"><i>organization does not exist</i></label>
			</div>

			<div class="form-group col-md-3">
				<button type="button" class="btn btn-primary" id="org_search" value="submit"> <span class="glyphicon glyphicon-search"></span>  Search </button>
				
			</div>

		</div>
		
		<div id="organization_div" class="form-row col-md-12" @isset($search['organization_search']) @else style="display:none;" @endisset>

			<div class="form-group col-md-3">
				<label>Select Organization:</label>
			</div>

			<div class="form-group col-md-6 {{ $errors->first('organization_id', 'has-error') }}">
			
				 <select id="organization_id" name="organization_id" class="form-control select2">
					<option selected="true" value="" disabled="disabled" hidden>Select Organization</option>
					@isset($search['organization_search'])
						@foreach($search['organization_search'] as $key => $value)
							<option value="{{$value->access_organization_id}}" @isset($param) @if($param['organization_id'] == $value->access_organization_id) selected @endif @endisset>{{$value->organization_name}}</option>
						@endforeach	
					@endisset	
				</select>
				
				<label class="text-danger"><i>{{ $errors->first('organization_id',':message') }}</i></label>
				
				
			</div>

			<div class="form-group col-md-3">
				
			</div>

		</div>
		


		<div class="form-row col-md-12">

			<div class="form-group col-md-3">
				<label>New User Name:</label>
			</div>

			<div class="form-group col-md-6 {{ $errors->first('user_name', 'has-error') }}">

				<input type="text" maxlength="50" id="user_name" name="user_name" size="60" class="form-control" value="@if(isset($param['user_name'])){{$param['user_name']}}@endif">
				<label class="text-danger"><i>{{ $errors->first('user_name',':message') }}</i></label>
			</div>
			<div class="form-group col-md-3">		
				
			</div>

			<div id="search_msg_exist" style="display:none;" class="form-row col-md-12">	
			<div class="form-group col-md-3"></div>
			</div>

		</div>
		

		
	
	
	
	
	
		<div class="form-row col-md-12">
			<div class="form-group col-md-3">
				<label>Select Ip Range:</label>
			</div>		
			<div class="form-group col-md-3" >	
					<input type="text" rows="2" id="ip_range_from" onchange="validate_ip();" name="ip_range_from" value="" size="60" placeholder="From" class="form-control"></input>
					<label id="lbl_ip_range_from" class="text-danger"></label>
				</div>
			<div class="form-group col-md-3" >	
					<input type="text" rows="2" id="ip_range_to" onchange="validate_ip();" name="ip_range_to" value="" size="60" placeholder="To" class="form-control"></input>
					<label id="lbl_ip_range_to" class="text-danger"></label>
				</div>
			
				<div class="form-group col-md-3" >	
					<button class="btn btn-success btn-xs" type="button" id="add_ip_range" value="0">Add Ip Range</button>
				</div>
		</div>	
		
		<div class="form-row col-md-12">
		
			<div class="form-group col-md-3"><label>Ip Ranges:</label></div>
			
			<div class="form-group col-md-6 {{ $errors->first('ip_range_list', 'has-error') }}" >
			
				<textarea cols="60" rows="5" id="ip_range_list" name="ip_range_list" 
				@if($param['access_base_type'] == "ip_base_access") required = 'required' @endif
				class="form-control">@if(isset($param['ip_range_list'])){{$param['ip_range_list']}}@endif</textarea>
				<label class="text-danger"><i>{!! $errors->first('ip_range_list',':message') !!}</i></label>
				
			</div>
			
			<div class="form-group col-md-3"></div>
		</div>	
		
		
	