<div moe>
		<a start show href="#">
			@if($template->is_active)
				<span class="text-danger">Deactivate</span>
			@else
			<span class="text-success">Reactivate</span>
			@endif
		</a>
		<form url="{{ $template->is_active ? '/api/visitTemplate/deactivate' : '/api/visitTemplate/reactivate' }}" class="mt-2" <?= @$leftPosition ? '':'right' ?>>
			<input type="hidden" name="uid" value="{{ $template->uid }}">
			<div class="mb-2 w-100">
				<label>Are you sure?</label>
			</div>
			<div class="mb-2 w-100">
				<label>Memo</label>
				<textarea name="memo" class="form-control"><?= $template->is_active ? $template->deactivation_memo: $template->reactivation_memo ?></textarea>
			</div>
			<div class="mt-3">
				@if($template->is_active)
				<button submit class="btn btn-sm btn-danger mr-2">Deactivate</button>
				@else
				<button submit class="btn btn-sm btn-primary mr-2">Reactivate</button>
				@endif
				<button cancel class="btn btn-default border">Cancel</button>
			</div>
		</form>
	</div>