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

<!-- Modal -->
<div id="view_{{ $value->oid }}" 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">Pre Order details</h4>
</div>
<div class="modal-body">


<table class="table table-striped border">	
	<tr><th width="25%">Pre Order ID:</th><td>{{ $value->oid }}</td></tr>
	
	<tr><th width="25%">Title :</th><td>{{ $value->pre_order_title }}</td></tr>
	<tr><th width="25%">First Name:</th><td>{{ $value->first_name }}</td></tr>
	<tr><th width="25%">Last Name:</th><td>{{ $value->last_name }}</td></tr>
	<tr><th width="25%">Email:</th><td>{{ $value->email }}</td></tr>
	
	<tr><th width="25%">User Category:</th><td>{{ $value->user_category }}</td></tr>
	<tr><th width="25%">Address:</th><td>{{ $value->address }}</td></tr>
	<tr><th width="25%">City/Town:</th><td>{{ $value->city }}</td></tr>
	<tr><th width="25%">State/Province:</th><td>{{ $value->province }}</td></tr>
	<tr><th width="25%">Country :</th><td>{{$value->country}}</td></tr>
	<tr><th width="25%">Phone:</th><td>{{ $value->phone }}</td></tr>
	<tr><th width="25%">Fax:</th><td>{{ $value->fax }}</td></tr>
	
	<tr><th width="25%">Organization:</th><td>{{ $value->organization_name }}</td></tr>
	<tr><th width="25%">Comment:</th><td>{{ $value->comment }}</td></tr>
	<tr><th width="25%">Order Type:</th><td>{{ $value->order_type }}</td></tr>
	@if($value->order_type != "Electronic Version")
	<tr><th width="25%">No. of Print Copies:</th><td>{{ $value->no_of_copies }}</td></tr>
	@endif
		
	
</table>


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

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