	<!-- /.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="#upoload_file">Upload Files</a>
			</h4>
		</div>
		<div class="panel-collapse collapse" id="upoload_file">
				{{ Form::model($article, array('url' => array('admin/articles',$article->article_id), 'method' => 'PUT', 'files' => true)) }}
		
			<div class="panel-body">
						
	<div class="form-group @if ($errors->has('file_name')) has-error @endif ">
	<label class="col-md-4 control-label" for="name">Upload Article File: @if(isset($article) && $article->file_name == '') * @endif</label>
	<div class="col-md-8">
	
	@isset($article) @if($article->file_name == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->file_name}}</span></strong>
		@if($user==1)
			 <a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'file_name')) }}">[remove]</a>
		 @endif

	 @endif @endisset
		
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" value="" name="file_name"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.pdf</p>
	</div>
</div>   

@if($article->is_epub == 0 || $article->is_epub == 4 || $article->is_epub == 1)                                                     
<div class="form-group">
	<label class="col-md-4 control-label" for="name">Upload Supplementary File</label>
	<div class="col-md-8">
	@isset($article) @if($article->supplementary_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->supplementary_filename}}</span></strong> 
		
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'supplementary_filename')) }}">[remove]</a> 
		

		@endif 
	@endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="supplementary_file"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.rar</p>
	</div>
</div>
<div class="form-group">
	<label class="col-md-4 control-label" for="name">Upload HTML File</label>
	<div class="col-md-8">
	@isset($article) @if($article->html_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->html_filename}}</span></strong> 
		@if($user==1)
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'html_filename')) }}">[remove]</a>
		@endif	 

	@endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="html_file"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.html</p>
	</div>
</div>
<div class="form-group">
	<label class="col-md-4 control-label" for="name">Upload ePUB File</label>
	<div class="col-md-8">
	@isset($article) @if($article->epub_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->epub_filename}}</span></strong> 
		@if($user==1)
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'epub_filename')) }}">[remove]</a>
		@endif

	 @endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="epub_file"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.epub</p>
	</div>
</div>
<div class="form-group">
	<label class="col-md-4 control-label" for="name">Upload PRC File</label>
	<div class="col-md-8">
	@isset($article) @if($article->prc_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->prc_filename}}</span></strong> 
		@if($user==1)
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'prc_filename')) }}">[remove]</a> 
		@endif	

	@endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="prc_file"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.prc</p>
	</div>
</div> 
<div class="form-group">
	<label class="col-md-4 control-label" for="name">Upload Mobi Pocket File</label>
	<div class="col-md-8">
	@isset($article) 
		 @if($article->prc_filename != '')
			@if(file_exists(config('constants.admin.root_path').$article->file_path.'prc/'.basename($article->prc_filename,'.prc').'.mobi')) 
				<strong><span> {{basename($article->prc_filename,'.prc').'.mobi'}}</span></strong>  
				@if($user==1)
					<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'mobi_filename')) }}">[remove]</a> 
				@endif	
			@else 
				<span class="text-danger">No File Uploaded</span>   

			@endif 
		@endif	
	@endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="mobi_file"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.mobi</p>
	</div>
</div> 
<div class="form-group">
	<label class="col-md-4 control-label" for="name">Upload XML File</label>
	<div class="col-md-8">
	@isset($article) @if($article->xml_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->xml_filename}}</span></strong> 
		@if($user==1)
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'xml_filename')) }}">[remove]</a>
		@endif	 

	@endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="xml_file"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.xml</p>
	</div>
</div>

<div class="col-md-12 m-t-10">
	<div class="panel panel-primary">
		<div class="panel-heading">
			<h4 class="panel-title">Upload Graphical Abstract Images</h4>
		</div>
		<div class="panel-body" style="display: block;">

<div class="form-group">
				<label class="col-md-4 control-label" for="name">Graphical Abstract Large File</label>
	<div class="col-md-8">
	@isset($article) @if($article->graph_abs_lg_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->graph_abs_lg_filename}}</span></strong> 
		
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'graph_abs_lg_filename')) }}">[remove]</a>
		

	@endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="graph_abs_lg_filename" value="@isset($article) {{ $article->graph_abs_lg_filename }} @endisset"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.jpeg,jpg,bmp,png</p>
	</div>
</div>
<div class="form-group">
				<label class="col-md-4 control-label" for="name">Graphical Abstract Small File</label>
	<div class="col-md-8">
	@isset($article) @if($article->graph_abs_sm_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->graph_abs_sm_filename}}</span></strong> 
		
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'graph_abs_sm_filename')) }}">[remove]</a> 
		
	@endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="graph_abs_sm_filename" value="@isset($article) {{ $article->graph_abs_sm_filename }} @endisset"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.jpeg,jpg,bmp,png</p>
	</div>
</div> 
		</div>
	</div>
</div>

<div class="col-md-12 m-t-10">
	<div class="panel panel-primary">
		<div class="panel-heading">
			<h4 class="panel-title">Upload Open Access Images</h4>
		</div>
		<div class="panel-body" style="display: block;">
<div class="form-group">
				<label class="col-md-4 control-label" for="name">Open Access Large Image</label>
	<div class="col-md-8">
	@isset($article) @if($article->oa_image_lg_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->oa_image_lg_filename}}</span></strong> 
		
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'oa_image_lg_filename')) }}">[remove]</a> 
		
	@endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="oa_image_lg_filename" value="@isset($article) {{ $article->oa_image_lg_filename }} @endisset"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.jpeg,jpg,bmp,png</p>
	</div>
</div> 

<div class="form-group">
				<label class="col-md-4 control-label" for="name">Open Access Small Image</label>
	<div class="col-md-8">
	@isset($article) @if($article->oa_image_sm_filename == '') <span class="text-danger">No File Uploaded</span>  @else <strong><span> {{$article->oa_image_sm_filename}}</span></strong> 
		
			<a href="{{ route('DeleteArticleFile', array('id' => $article->article_id, 'file_type' => 'oa_image_sm_filename')) }}">[remove]</a> 
		
	@endif @endisset
		<div class="fileinput fileinput-new input-group" data-provides="fileinput">
			<div class="form-control" data-trigger="fileinput">
				<i class="glyphicon glyphicon-file fileinput-exists"></i>
				<span class="fileinput-filename"></span>
			</div>
			<span class="input-group-addon btn btn-default btn-file">
				<span class="fileinput-new">Select file</span>
				<span class="fileinput-exists">Change</span>
				<input type="file" name="oa_image_sm_filename" value="@isset($article) {{ $article->oa_image_sm_filename }} @endisset"></span>
			<a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
		</div>
		<p>E.g: filename.jpeg,jpg,bmp,png</p>
	</div>
			</div> 
		</div>
	</div>
</div>


@endif
				
				<div class="col-md-12 text-right">
					<hr>
				{{ Form::submit('Upload', array('class' => 'btn btn-primary','value' => 'submit' , 'name' => 'upload_files' )) }}
			</div>
				
			</div>
			
			{{ Form::close() }}		
		
		</div>
	</div>

                               
