
<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#view_{{ $value->inquiry_id }}">Details</button>

<!-- Modal -->
<div id="view_{{ $value->inquiry_id }}" class="modal fade" role="dialog">
<div class="modal-dialog">

<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Fulltext Order Inquiry Details</h4>
</div>
<div class="modal-body">

<div class="table-responsive">
	<table class="table table-striped">	
		<tr>
			<td>Journal:</td>
			<td>{{ $value->journal_title }}</td>
		</tr>
		<tr>
			<td width="20%">Article Title:</td>
			<td>{{ $value->article_title }}</td>
		</tr>
		<tr>
			<td>ePUB Price:</td>
			<td>${{ $value->amount }}</td>
		</tr>
		<tr>
			<td>Name:</td>
			<td>{{ $value->name }}</td>
		</tr>
		<tr>
			<td>Email:</td>
			<td>{{ $value->email }}</td>
		</tr>
		@if(!empty($value->phone) && $value->phone !="")
		<tr>
			<td>Phone:</td>
			<td>{{ $value->phone }}</td>
		</tr>
		@endif
		@if(!empty($value->address) && $value->address !="")
		<tr>
			<td>Address:</td>
			<td>{{ $value->address }}</td>
		</tr>
		@endif
		<tr>
			<td>Status:</td>
			<td>
				@if($value->status == "C") Completed @endif
				@if($value->status == "F") Not Complete @endif
				@if($value->status == "P") Pending @endif
				@if($value->status == "E") Emailed @endif
			</td>
		</tr>
		<tr>
			<td>Reason:</td>
			<td>{{ $value->response_message }}</td>
		</tr>
	</table>	
</div>


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

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