<!-- Trigger the modal with a button -->
@if($page == 'eprintorder')
	<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#view_{{ $value->eprint_order_id }}">Details</button>
	<div id="view_{{ $value->eprint_order_id }}" class="modal fade" role="dialog">
@elseif($page == 'reprintorder')
	<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#view_{{ $value->reprint_order_id }}">Details</button>
	<div id="view_{{ $value->reprint_order_id }}" class="modal fade" role="dialog">
@endif


<!-- Modal -->

<div class="modal-dialog modal-lg">

<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
@if($page == 'eprintorder')
<h4 class="modal-title">ePrint Order details</h4>
@elseif($page == 'reprintorder')
<h4 class="modal-title">Reprint Order details</h4>
@endif

</div>
<div class="modal-body">

	<table class="table table-striped border">	
		<tr><th width="12%">Journal Title :</th><td width="32%">{{$value->journal_title}}</td></tr>
		<tr><th width="12%">Volume No :</th><td width="32%">{{$value->volume_name}}</td></tr>
		<tr><th width="12%">Issue No :</th><td width="32%">{{$value->issue_title}}</td></tr>
		<tr><th width="12%">Article Title :</th><td width="32%">{{$value->article_title}}</td></tr>
		<tr><th width="12%">Cover Title :</th><td width="32%">{{$value->cover_title}}</td></tr>
		<tr><th width="12%">Pages:</th><td width="32%">{{$value->first_page}} - {{$value->last_page}}</td></tr>
		@if($page == 'eprintorder')
			<tr><th width="12%">ePrint Copies :</th><td width="32%">{{$value->eprint_copies}}</td></tr>
			<tr><th width="12%">Total Pages :</th><td width="32%">{{$value->page_count}}</td></tr>
		@elseif($page == 'reprintorder')
			<tr><th width="12%">Total Pages :</th><td width="32%">{{$value->page_count}}</td></tr>
			<tr><th width="12%">Figure(s) No :</th><td width="32%">{{$value->no_of_figures}}</td></tr>
			<tr><th width="12%">Color Figures :</th><td width="32%">{{$value->color_plates}}</td></tr>
		@endif
		
		
		
		<tr><th width="12%">First Name :</th><td width="32%">{{$value->fname}}</td></tr>
		<tr><th width="12%">Last Name :</th><td width="32%">{{$value->lname}}</td></tr>
		<tr><th width="12%">Email :</th><td width="32%">{{$value->email}}</td></tr>
		
		<tr><th width="12%">Organization :</th><td width="32%">{{$value->organization}}</td></tr>
		<tr><th width="12%">Country :</th><td width="32%" colspan="3">{{$value->country}}</td></tr>
	</table>


</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>

</div>
</div>
</div>
