<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Orders</title>
	<link rel="stylesheet" href="<?php echo e(asset('/css/bootstrap.min.css')); ?>">
</head>
<body>
	
	<div class="container">
		<div id="contents">
		<div class="col-md-12">
			<div class="content-item">
				<div class="well">
					<h2>Order</h2>
					<p>Someone has made an order from the website</p>
					<p>This enquiry is also saved in website's database, Please check your admin panel.</p>
					<p>
						<b>Firstname :</b> <?php echo e(ucwords($firstname)); ?><br/>
						<b>Lastname :</b> <?php echo e(ucwords($lastname)); ?><br/>
						<b>Phone Number :</b> <?php echo e(ucwords($phone)); ?><br/>
						<b>Email Address :</b> <?php echo e($email); ?><br/>
						<b>Card Type :</b> <?php echo e(ucwords($cardtype)); ?><br/>
						<b>Address:</b><br/> 
						<ul style="list-style: none;">
							<li><?php echo e(ucwords($address1)); ?></li>
							<li><?php echo e(ucwords($country)); ?></li>
							<li><?php echo e(ucwords($city)); ?></li>
							<li><?php echo e(ucwords($postcode)); ?></li>
						</ul>
					</p>
				</div>
				
				<div class="well">
					<h2>Order List</h2>
					<table class="table table-bordered">
						<tr>
							<th>Product ID</th>
							<th>Product Name</th>
							<th>Quantity</th>
							<th>Amount</th>
							<th>Total</th>
						</tr>
						<?php foreach($orders as $p): ?>
							<tr class="row-<?php echo e($p->id); ?>">
								<td class="text-left"><?php echo e($p->id); ?></td>
								<td class="text-left"><?php echo e($p->name); ?></td>
								<td class="text-center qty-<?php echo e($p->id); ?>"><?php echo e($p->qty); ?></td>
								<td class="money"><?php echo e(money_format('%i', $p->price)); ?></td>
								<td class="money sub-<?php echo e($p->id); ?>"><?php echo e(money_format('%i', $p->subtotal)); ?></td>
							</tr>
						<?php endforeach; ?>
						<tr>
							<td colspan="4" class="totaltext"><b>TOTAL</b></td>
							<td class="totalcell">&dollar; <?php echo e(money_format('%i', Cart::total())); ?></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	</div>

	<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>
</body>
</html>