<div style="margin: 0 auto; width: 100%;">
	<div style="margin-bottom: 10px;"><?php __('lblEvent');?>: <b><?php echo pjSanitize::html($tpl['event_arr']['title']);?></b></div>
	
	<p style="display: block; margin-bottom: 8px; overflow: hidden;">
		<label style="display: block; float: left; width: 120px;"><?php __('lblTotalBookings'); ?></label>
		<span style="display: block; float: left;">
			<?php echo (int) $tpl['event_arr']['total_bookings'];?>
		</span>
	</p>
	<p style="display: block; margin-bottom: 8px; overflow: hidden;">
		<label style="display: block; float: left; width: 120px;"><?php __('lblTicketsSold'); ?></label>
		<span style="display: block; float: left;">
			<?php echo (int) $tpl['event_arr']['tickets_sold'];?>
		</span>
	</p>
	<p style="display: block; margin-bottom: 8px; overflow: hidden;">
		<label style="display: block; float: left; width: 120px;"><?php __('lblTicketsUsed'); ?></label>
		<span style="display: block; float: left;">
			<?php echo (int) $tpl['event_arr']['tickets_used'];?>
		</span>
	</p>
	<?php
	if((int) $tpl['event_arr']['total_bookings'] > 0)
	{ 
		$booking_statuses = __('booking_statuses', true);
		$yes_no = __('_yesno', true);
		?>
		<table class="table" cellspacing="2" cellpadding="5" style="width: 100%">
			<thead>
				<tr>
					<th><?php __('lblID');?></th>
					<th><?php __('lblBookingName');?></th>
					<th><?php __('lblTicketBuyer');?></th>
					<th><?php __('lblTicket');?></th>
					<th><?php __('lblBookingStatus');?></th>
					<th><?php __('lblUsed');?></th>
				</tr>
			</thead>
			<tbody>
				<?php
				$i = 0;
				foreach($tpl['booking_arr'] as $k => $v)
				{
					?>
					<tr class="<?php echo $i % 2 == 0 ? 'even' : 'odd'; ?>">
						<td><?php echo $v['uuid'];?></td>
						<td><?php echo pjSanitize::html($v['attendee_name']);?></td>
						<td><?php echo pjSanitize::html($v['c_name']);?></td>
						<td><?php echo pjSanitize::html($v['ticket']) . (!empty($v['seat_name']) ? ' (' . pjSanitize::html($v['seat_name']) . ')' : '' );?></td>
						<td><?php echo $booking_statuses[$v['status']];?></td>
						<td><?php echo $yes_no[$v['is_used']];?></td>
					</tr>
					<?php
					$i++;
				} 
				?>
			</tbody>
		</table>
		<?php
	} 
	?>
</div>