<div class="ml-2" moe relative>
	@if($visitTemplate->is_accessible_to_all)
		<a class="btn btn-sm btn-danger text-white" href="" show start><i class="fas fa-ban"></i> Revoke Access to All</a>
	@else
		<a class="btn btn-sm btn-success text-white" href="" show start><i class="far fa-check-circle"></i> Grant Access to All</a>
	@endif
	<form url="/api/visitTemplate/{{ $visitTemplate->is_accessible_to_all ? 'undoMakeAccessibleToAll' : 'makeAccessibleToAll' }}" right> 
	<input type="hidden" name="uid" value="{{ $visitTemplate->uid }}" />
		<div class="mb-2">
			<label>Are you sure?</label>
		</div>
		<div class="mb-0">
			@if($visitTemplate->is_accessible_to_all)
				<button class="btn btn-danger btn-sm" submit>Revoke</button>
			@else
				<button class="btn btn-success btn-sm" submit>Grant</button>
			@endif
			<button class="btn btn-default border btn-sm" cancel>Cancel</button>
		</div>
	</form>
</div>