</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<span id="alertinfo-help" class="help-block fpbx-help-block"><?php 
echo _("Select a Ring Tone from the list of options above. This will determine how your phone sounds when it is rung from this group.");
?>
</span>
		</div>
	</div>
</div>
<!--END Alert Info-->
<?php 
$restrict_mods = array("ivr", "ringgroups", "directory", "core" => array("extensions", "voicemail"));
echo ivr_draw_entries($ivr['id'], $restrict_mods);
?>
<input type="hidden" name="id" value="<?php 
echo $ivr['id'];
?>
">
<input type="hidden" name="action" value="save">

<input type="hidden" name="invalid_destination" id="invalid_destination" value="<?php 
echo $ivr['invalid_destination'];
?>
">
<input type="hidden" class="form-control" id="gotoinvalid" name="gotoinvalid" value="Terminate_Call">
<input type="hidden" class="form-control" id="Terminate_Callinvalid" name="Terminate_Callinvalid" value="<?php 
echo $ivr['invalid_destination'];
?>
?>
</label>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<span id="retvm-help" class="help-block fpbx-help-block"><?php 
echo _("If Yes, upon exiting voicemail a caller will be returned to this IVR if they got a users voicemail");
?>
</span>
			</div>
		</div>
	</div>
	<!--END Return to IVR after VM-->
</div>
<div class="section-title" data-for="ivrentries">
	<h3><i class="fa fa-minus"></i> <?php 
echo _('IVR Entries');
?>
</h3>
</div>
<div class="section" data-id="ivrentries">
	<?php 
echo ivr_draw_entries($ivr['id']);
?>
</div>
<?php 
echo $hookhtml;