<div class="mr-2" moe relative>
	@if($template->segments_always_open)
		<a class="btn btn-sm btn-success text-white" href="" show start>Unmark as Segments-Always-Open</a>
	@else
		<a class="btn btn-sm btn-primary text-white" href="" show start>Mark as Segments-Always-Open</a>
	@endif
	<form url="/api/visitTemplate/{{ $template->segments_always_open ? 'undoMarkSegmentsAlwaysOpen' : 'markSegmentsAlwaysOpen' }}" right>
	<input type="hidden" name="uid" value="{{ $template->uid }}" />
		<div class="mb-2">
			<label>Are you sure?</label>
		</div>
		<div class="mb-0">
			<button class="btn btn-primary btn-sm" submit>Submit</button>
			<button class="btn btn-default border btn-sm" cancel>Cancel</button>
		</div>
	</form>
</div>