<div style="width:300px;">
	<p>
		Event: <b><?= $trip['event_name'] ?></b>
	</p>
	<p>
		Location: <b><?= $trip['event_location'] ?></b>
	</p>
	<p>
		Date: <b><?= date('m/d/Y', strtotime($trip['event_date'])) ?></b>
	</p>

	<p>
	<center style="border-bottom:1px solid #ccc; padding-bottom:5px; margin-bottom:5px"><b>Seats</b></center>

	<table>
		<tr style="text-align:center;">
			<th style="width:33%">Plane</th>
			<th style="width:33%">Seat</th>
			<th style="width:33%">Cost</th>
		</tr>
	<?php
		foreach ($trip['seats'] as $seat) {
			$total = "$".number_format($seat['cost'],2);	
			
			echo "<tr>
				<td style='text-align:center;'>{$seat['make']} {$seat['model']}</td>
				<td style='text-align:center;'>{$seat['seat_name']}</td>
				<td style='text-align:center;'>{$total}</td>
			</tr>";
		}
	?>
	</table>

	</p>
</div>
