<div moe>
	<a class="" href="" show start><i class="far fa-edit"></i></a>
	<form url="/api/visitTemplateSegmentTemplate/updateBasic" right>
		<div>
			<input type="hidden" name="uid" value="{{ $template->uid }}" />
			@if(@$position)
			<input type="hidden" name="leftOrRight" value="{{ $position }}">
			@else
			<div class="mb-2">
				<label>Left or Right</label>
				<select name="leftOrRight" class="form-control" required>
					<option value="">--select--</option>
					<option {{$template->left_or_right == 'LEFT' ? 'selected': ''}} value="LEFT">Left</option>
					<option {{$template->left_or_right == 'RIGHT' ? 'selected': ''}} value="RIGHT">Right</option>
				</select>
			</div>
			@endif
			<div class="mb-2">
				<label>Position Index<sup class="text-danger">*</sup></label>
				<input type="number" name="positionIndex" class="form-control" value="{{ $template->position_index }}" required />
			</div>
			<div class="mb-2">
				<label>Heading</label>
				<input type="text" name="heading" class="form-control" value="{{ $template->heading }}" />
			</div>
			<div class="mb-2">
				<label>Sub-heading</label>
				<input type="text" name="subheading" class="form-control" value="{{ $template->subheading }}" />
			</div>
			<div class="mb-2">
				<label>Display title<sup class="text-danger">*</sup></label>
				<input type="text" name="displayTitle" class="form-control" required value="{{ $template->display_title }}" />
			</div>
		</div>
		<div class="mb-0">
			<button class="btn btn-success btn-sm" submit>Update</button>
			<button class="btn btn-default border btn-sm" cancel>Cancel</button>
		</div>
	</form>
</div>