

<!-- /.panel.panel-default -->
<div class="panel panel-default">
<div class="panel-heading">
	<h4 class="panel-title">
		<a data-parent="#accordion-demo" data-toggle="collapse" href="#add_article_form">Article</a>
	</h4>
</div>
<div class="panel-collapse collapse" id="add_article_form">
{{ Form::open(array('url' => 'admin/articles', 'id'=>"articleForm", 'files' => true)) }}		   
	<div class="panel-body">

			
			<div class="form-group">
			<label class="control-label" for="select21">Sections: *</label>
			<select name="is_epub" id="is_epub"  class="form-control select2"  onchange="onchange_isEPUB();">
			   <option title="Normal" value="0"
			   @if(old('is_epub') == 0) {{ 'selected' }}
					@endif>Normal</option>
			   <option title="Epub Abstract Ahead of Print" value="4"
			  @if(old('is_epub') == 4) {{ 'selected' }}
					@endif>Epub Abstract Ahead of Print</option>
			   <option title="Epub Full Text Article" value="1"
			  @if(old('is_epub') ==1) {{ 'selected' }}
					@endif>Epub Full Text Article</option>
			   <option title="Quick Track" value="2"
			  @if(old('is_epub') == 2) {{ 'selected' }}
					@endif>Quick Track</option>
			   <option title="Express Track" value="3"
			  @if(old('is_epub') == 3) {{ 'selected' }}
					@endif>Express Track</option>
			   <option title="Supplementary" value="5"
			   @if(old('is_epub') == 5) {{ 'selected' }}
					@endif>Supplementary</option>
			</select>
			</div>
		  
				<div class="form-group @if ($errors->has('journal_id')) has-error @endif ">
					<label class="control-label" for="select21">Journal: *</label>
					
					<select required class="form-control select2" id="journal_id" name="journal_id">
					<option selected="true" disabled="disabled" hidden >Select Journal</option>
						@foreach($journal as $key => $value)
							<option value="{{$key}}" 
							  @if(old('journal_id') == $key) {{ 'selected' }} @endif>{{$value}}</option>
						@endforeach
					</select>

				</div>
												
				<div class="form-group @if ($errors->has('volume_id')) has-error @endif ">
					<label class="control-label" for="select21">
					   Volume: *
					</label>
					<select required class="form-control select2"  name="volume_id" id="volume_id">
					<option selected="true" disabled="disabled" hidden>Select Volume</option>
						@if (session('volume_search'))
						@foreach(session('volume_search') as $volume)
							<option value="{{$volume->volume_id}}" 
							@if(old('volume_id') == $volume->volume_id ) selected @endif
							>{{$volume->volume_name}}</option>
						@endforeach
						@endif
					</select>
				</div>

				
				<div class="form-group @if ($errors->has('issue_id')) has-error @endif ">
					<label class="control-label" for="">
					  Issue: *
					</label>
					<select class="form-control select2"  name="issue_id" id="issue_id">
					<option selected="true" disabled="disabled" hidden>Select Issue</option>
						@if (session('issue_search'))
						 @foreach(session('issue_search') as $issue)
							<option value="{{$issue->issue_id}}" 
							@if(old('issue_id') == $issue->issue_id) {{ 'selected' }} @endif>{{$issue->title}}</option>
						@endforeach
						@endif
					</select>
				</div>
				
				 <div class="form-group">
				 <label class="control-label" for="select21">JMS Ref No:</label>
				<input type="text" name="jms_ref_no"  class="form-control input-md" placeholder="JMS Ref No" value="{{ old('jms_ref_no') }}">
				</div>
				
			<div class="form-group @if ($errors->has('title')) has-error @endif ">
				<label  class="control-label">Title: *</label>
					<textarea class="form-control resize_vertical" required name="title" placeholder="Please enter text here..." rows="5" required="required">{{ old('title') }}</textarea>
			</div>
				
				<div class="form-group">
					<label  class="control-label">Article Number: * </label>
					<input id="article_no" type="number" class="form-control input-md" name="article_no" placeholder="Please enter text here..." value="{{ old('article_no') }}" required="required">
				</div>
				
				<div class="form-group @if ($errors->has('article_type')) has-error @endif ">															
					<label class="control-label" for="select21">Article type: *</label>
					<select class="form-control"  name="article_type" id="article_type" required="required">
					<option selected="true" disabled="disabled" hidden>Select Article Type</option>
					
					@isset($article_type)
						@foreach($article_type as $key=>$article_row)
							<option value="{{$article_row->art_type_id}}" 
							@if(old('article_type') == $article_row->art_type_id) {{ 'selected' }} @endif>{{$article_row->type_name}}</option>
						@endforeach
					@endisset
					</select>
					
				</div>
				
				<div class="form-group">
				 <label class="control-label" for="select21">DOI:</label>
				<input type="text" name="doi"  class="form-control input-md" placeholder="DOI" value="{{ old('doi') }}">
				</div>
				
				<div class="form-group">
				 <label class="control-label" for="select21">eLocator:</label>
				<input type="text" name="elocator"  class="form-control input-md" placeholder="eLocator" value="{{ old('elocator') }}">
				</div>
				
				<div class="form-group">
				 <label class="control-label" for="select21">Citation:</label>
				<input type="text" name="citation"  class="form-control input-md" placeholder="Citation"  value="{{ old('citation', '0') }}">
				</div>
				
				<div class="form-group">
				<label  class="control-label">Abstract:</label>
				<textarea class="form-control" name="abstract" placeholder="Please enter text here..." rows="5">{{ old('abstract') }}</textarea>
				</div>
				
				<div class="form-group">
				<label  class="control-label">Animated Abstract:</label>
				<textarea class="form-control resize_vertical" name="animated_abstract" placeholder="Please enter text here..." rows="5">{{ old('animated_abstract') }}</textarea>
				</div>
				
				<div class="form-group">
				<label  class="control-label">Erratum In:</label>
				<textarea class="form-control resize_vertical" name="erratum_in" placeholder="Please enter text here..." rows="3">{{ old('erratum_in') }}</textarea>
				</div>
				
				<div class="form-group">
				<label  class="control-label">Erratum For:</label>
				<textarea class="form-control resize_vertical" name="erratum_for" placeholder="Please enter text here..." rows="3">{{ old('erratum_for') }}</textarea>
				</div>
				
				<div class="form-group">
				 <label class="control-label" for="select21">Podcast:</label>
				<input type="text" name="podcast"  class="form-control input-md" placeholder="Podcast" value="{{ old('podcast') }}">
				</div>
				
				<div class="form-group">
				 <label class="control-label" for="select21">Altmetric Score:</label>
				<input type="text" name="altmetric_score"  class="form-control input-md" placeholder="Altmetric Score" value="{{ old('altmetric_score') }}">
				</div>
				<div class="form-group">
				 <label class="control-label" for="select21">Altmetric URL:</label>
				<input type="text" name="altmetric_url"  class="form-control input-md" placeholder="Altmetric URL" value="{{ old('altmetric_url') }}">
				</div>
				<div class="form-group">
				 <label class="control-label" for="select21">KUDOS URL:</label>
				<input type="text" name="kudos_url"  class="form-control input-md" placeholder="KUDOS URL" value="{{ old('kudos_url') }}">
				</div>
				<div class="form-group col-md-3">
				 <label class="control-label" for="select21">Receive Date:</label>
				<input type="date" name="Received_date"  class="form-control input-md" placeholder="Receive Date" 
				value="{{ old('Received_date') }}">
				</div>
				<div class="form-group  col-md-3">
				 <label class="control-label" for="select21">Revised Date:</label>
				<input type="date" name="Revised_date"  class="form-control input-md" placeholder="Revised Date" 
				value="{{ old('Revised_date') }}">
				</div>
				<div class="form-group  col-md-3">
				 <label class="control-label" for="select21">Accepted Date:</label>
				<input type="date" name="Accepted_date"  class="form-control input-md" placeholder="Accepted Date" 
				value="{{ old('Accepted_date') }}">
				</div>
				<br><br><br><br>
				
				<div class="form-group">
				 <label class="control-label" for="select21">PMID:</label>
				<input type="text" name="pm_id"  class="form-control input-md" placeholder="PMID" value="{{ old('pm_id') }}">
				</div>
				
				<div class="form-group">
				<label  class="control-label">Keywords:</label>
					<input name="keyword" type="text" data-role="tagsinput" value="{{ old('keyword') }}"/>
				</div>
			
				<div class="form-group">
				 <label class="control-label" for="select21">First Page: *</label>
				<input type="text" name="first_page" id="first_page"  class="form-control input-md" placeholder="First Page" onblur="javascript: CountPages()" value="{{ old('first_page') }}" required="required">
				</div>
				<div class="form-group">
				 <label class="control-label" for="select21">Last Page: *</label>
				<input type="text" name="last_page" id="last_page"  class="form-control input-md" placeholder="Last Page" onblur="javascript: CountPages()" value="{{ old('last_page') }}" required="required">
				</div>
				<div class="form-group">
				 <label class="control-label" for="select21">Total Page Count: *</label>
				<input type="text" id="page_count" name="page_count"  class="form-control input-md" placeholder="Total Page Count" value="{{ old('page_count') }}" required="required">
				</div>
				
				<div class="form-group @if ($errors->has('is_uploaded')) has-error @endif ">
					<label class="control-label" >Article Uploaded: *</label>
					<select class="form-control select2" name="is_uploaded" required="required">		
						<option title="NO" value="0" 
						  @if(old('is_uploaded') == '0') {{ 'selected' }}
					@endif>NO</option>
						<option title="YES" value="1" 
						@if(old('is_uploaded') == '1') {{ 'selected' }}
					@endif>YES</option>
					</select>
				</div>
				
				
				<div class="form-group @if ($errors->has('article_status')) has-error @endif ">
					<label class="control-label" >Article Status: *</label>
					<select class="form-control select2" name="article_status" required="required">		
						<option title="Active" value="A" 
						  @if(old('article_status') == 'A') {{ 'selected' }}
					@endif>Active</option>
						<option title="Withdrawal" value="W" 
						@if(old('article_status') == 'W') {{ 'selected' }}
					@endif>Withdrawal</option>
					</select>
				</div>

				<div class="form-group">
					<label class="control-label" >Is Editor Choice: *</label>
					<select class="form-control select2" name="is_editor_choice">
					   <option title="NO" value="N" 	   
					   @if(old('is_editor_choice') == 'N') {{ 'selected' }}
					@endif>NO</option>
						<option title="YES" value="Y" 
						@if(old('is_editor_choice') == 'Y') {{ 'selected' }}
					@endif>YES</option>
					</select>
				</div>
				
				<div class="form-group">
					<label class="control-label" >Is Most Popular:</label>
					<select class="form-control select2" name="is_popular">
					   <option title="NO" value="N" 
						@if(old('is_popular') == 'N') {{ 'selected' }}
					@endif>NO</option>
						<option title="YES" value="Y" 
						@if(old('is_popular') == 'Y') {{ 'selected' }}
					@endif>YES</option>
					</select>
				</div>
				
				<div class="form-group">
					<label class="control-label" >Is Highlighted: *</label>
					<select class="form-control select2" name="is_highlighted" required="required">
					   <option title="NO" value="N" @if(old('is_highlighted') == 'N') {{ 'selected' }}
					@endif>NO</option>
						<option title="YES" value="Y"  @if(old('is_highlighted') == 'Y') {{ 'selected' }}
					@endif>YES</option>
					</select>
				</div>

				<div class="form-group">
					<label class="control-label" >Crossmark enabled: </label>
					<input type="text" name="crossmark_enabled"  class="form-control input-md" placeholder="Crossmark enabled" value="{{ old('crossmark_enabled') }}">
				</div>

				<div class="form-group">
					<label class="control-label" >Text mining URLs: </label>
					<input type="text" name="text_mining_urls"  class="form-control input-md" placeholder="Text mining URLs" value="{{ old('text_mining_urls') }}">
				</div>

				<div class="form-group">
					<label class="control-label" >License URLs: </label>
					<input type="text" name="license_urls"  class="form-control input-md" placeholder="License URLs" value="{{ old('license_urls') }}">
				</div>

				
			<div class="form-group text-right">
				{{ Form::submit('Submit', array('class' => 'btn btn-primary','value' => 'submit' , 'name' => 'submit_article_form' )) }}
			</div>
	
	
	<!--/.panel-body -->

</div>
{{ Form::close() }}	  

</div>

<!-- /#adjusthtml -->
	
</div>

