<?php
global $EM_Event, $post;
?>
<div id='rsvp-data'>
	<?php
		$available_spaces = $EM_Event->get_bookings()->get_available_spaces();
		$booked_spaces = $EM_Event->get_bookings()->get_booked_spaces();
			
		if ( count($EM_Event->get_bookings()->bookings) > 0 ) {
			?>
			<div class='wrap'>
				<p><strong><?php echo __('Available Spaces','dbem').': '.$EM_Event->get_bookings()->get_available_spaces(); ?></strong></p>
				<p><strong><?php echo __('Confirmed Spaces','dbem').': '.$EM_Event->get_bookings()->get_booked_spaces(); ?></strong></p>
				<p><strong><?php echo __('Pending Spaces','dbem').': '.$EM_Event->get_bookings()->get_pending_spaces(); ?></strong></p>
		 	</div>
			 		
	 	    <br class='clear'/>
	 	    
	 	 	<div id='major-publishing-actions'>  
				<div id='publishing-action'> 
					<a id='printable' href='<?php echo $EM_Event->get_bookings_url(); ?>'><?php _e('manage bookings','dbem')?></a><br />
					<a target='_blank' href='<?php echo EM_ADMIN_URL ."&amp;page=events-manager-bookings&action=bookings_report&event_id=".$EM_Event->event_id ?>'><?php _e('printable view','dbem')?></a>
					<?php if( locate_template('plugins/events-manager/templates/csv-event-bookings.php', false) ): ?>
					<br /><a href='<?php echo EM_ADMIN_URL ."&amp;page=events-manager-bookings&action=export_csv&event_id=".$EM_Event->event_id ?>'><?php _e('export csv','dbem')?></a>
					<?php endif; ?>
					<?php do_action('em_admin_event_booking_options'); ?>
					<br class='clear'/>             
		        </div>
				<br class='clear'/>    
			</div>
			<?php                                                     
		} else {
			?>
			<p><em><?php _e('No responses yet!', 'dbem')?></em></p>
			<?php
		} 
	?>
</div>