?>
" /></select>
					<!-- <input id="tags-input" class="form-control" type="text" name="tags" value=""> -->
				</div>
			</div>

			<div class="row item-form-input">
				<div class="col-md-1">
					<h4 class="item-instruction-number">6.</h4>
				</div>

				<div class="col-md-11">
					<h4>Add Location</h4>
					<label>Location</label><br/>
					<input class="form-control" id="location" name="location" value="<?php 
echo_if_not_empty($item[0]['location']);
?>
" />
					<!-- <input id="tags-input" class="form-control" type="text" name="tags" value=""> -->
				</div>
			</div>

			<div class="row item-form-input" style="margin-top: 10px;">
				<div class="col-md-1">
					<h4 class="item-instruction-number"></h4>
				</div>
				<div class="col-md-11">
					<div class="item-form-input-body input-group">
						<input type="hidden" name="id" value="<?php 
echo $item[0]['itemid'];
?>
    ?>
</a>
				</td>
				<td class="column-date" style="padding:8px 0; text-align:center;">
					<a href="<?php 
    echo add_query_arg('view', constant_contact_get_id_from_object($v), remove_query_arg('refresh', admin_url('admin.php?page=constant-contact-events#registrants')));
    ?>
" style="display:block; width:100%; line-height:1.4;"><?php 
    echo_if_not_empty((int) $v->registered, 0);
    ?>
</a>
				</td>
				<td class="column-date" style="padding:8px 0; text-align:center;">
					<a href="<?php 
    echo add_query_arg('view', constant_contact_get_id_from_object($v), remove_query_arg('refresh', admin_url('admin.php?page=constant-contact-events#cancelled')));
    ?>
" style="display:block; width:100%; line-height:1.4;"><?php 
    echo_if_not_empty((int) $v->cancelledCount, 0);
    ?>
</a>
				</td>
				<td class="column-date" style="padding:8px 0; text-align:left;">
					<?php 
    echo $this->latest_registrant($v);
    ?>
				</td>
			</tr>
<?php 
}
?>
		</table>
</th><td><?php 
echo !empty($v->startDate) ? constant_contact_event_date($v->startDate) : __('None', 'ctct');
?>
</td></tr>
		<tr><th scope="row" id="end" class="manage-column column-name" style=""><?php 
_e('End', 'ctct');
?>
</th><td><?php 
echo !empty($v->endDate) ? constant_contact_event_date($v->endDate) : __('None', 'ctct');
?>
</td></tr>
		<tr><th scope="row" id="registrationurl" class="manage-column column-name" style=""><?php 
_e('Registration URL', 'ctct');
?>
</th><td><?php 
echo_if_not_empty($v->registrationUrl, '', '<a href="' . $v->registrationUrl . '">' . $v->registrationUrl . '</a>');
?>
</td></tr>
		<tr class="alt"><th scope="row" id="location" class="manage-column column-name" style=""><?php 
_e('Location', 'ctct');
?>
</th><td><?php 
echo constant_contact_create_location($v->eventLocation);
?>
</td></tr>
	</tbody>
</table>
<p class="submit"><a href="<?php 
echo remove_query_arg(array('view', 'refresh'));
?>
" class="button-primary"><?php 
    ?>
>
			<td><?php 
    echo $reg->title;
    ?>
</td>
			<td><?php 
    echo_if_not_empty($reg->email, '', "<a href='mailto:{$reg->email}'>{$reg->email}</a>");
    ?>
</td>
			<td><?php 
    echo_if_not_empty($reg->registrationDate, __('None', 'ctct'), constant_contact_event_date($reg->registrationDate));
    ?>
</td>
			<td><?php 
    echo_if_not_empty($reg->guestCount, 1);
    ?>
</td>
			<td><?php 
    echo $reg->paymentStatus;
    ?>
</td>
			<td><a href="<?php 
    echo add_query_arg('registrant', constant_contact_get_id_from_object($reg), remove_query_arg('refresh'));
    ?>
">View Details</a></td>
		</tr>
		<?php 
}
?>
	</tbody>
    ?>
" />
			</td>
	<?php 
    if (!isset($_GET['status']) || $_GET['status'] == 'all') {
        ?>
			<td class="column-role wrap">
				<?php 
        echo ucwords(strtolower(esc_html($v->status)));
        ?>
			</td>
	<?php 
    }
    ?>
			<td class="column-role column-startdate wrap">
				<?php 
    echo isset($v->startDate) ? constant_contact_event_date($v->startDate) : __('None', 'ctct');
    ?>
			</td>
			<td class="column-id column-count wrap">
				<?php 
    echo_if_not_empty($v->registered, 0);
    ?>
			</td>
		</tr>
		<?php 
    flush();
}
?>
</tbody>
</table>
foreach ($data as $value) {
    ?>
	<div class="page-details">
		<?php 
    echo nl2br($value['description']);
    ?>
	</div>
	<div class="page-category" style="border-top: 1px solid #e7e7e7; padding-top: 10px;">
		<a class="label label-primary" style="background-color: <?php 
    echo_if_not_empty($value['category_color']);
    ?>
" href="<?php 
    linkify_to_category($value['category_class']);
    ?>
"> <?php 
    echo_if_not_empty($value['category_name']);
    ?>
</a>
	</div>
	<div class="page-tags" style="padding-top: 5px;">
		<?php 
    if ($tags !== false) {
        ?>
			<?php 
        foreach ($tags as $tkey => $tvalue) {
            ?>
				<a href="<?php 
            linkify_to_tags($tvalue['tag_term'], $tkey, $this->input->get());
            ?>
" class="label label-primary"> <?php 
            echo $tvalue['tag_term'];