<div class="card card-custom gutter-b example example-compact">
	<div class="card-header">
		<h3 class="card-title"><?=$form_heading?></h3>
	</div>
	<?=form_open_multipart('',['class'=>'form','onsubmit'=>'blockPage()'])?>
		<div class="card-body">	
			<div class="form-group row">
				<label class="col-lg-1 col-form-label text-lg-right">Name</label>
				<div class="col-lg-3">
					<input type="text" name="name" id="name" value="<?=set_value('name',$update_data['name'] ?? '')?>" class="form-control" placeholder="Category Name" required />					
					<?=$validation->showError('name')?>
				</div>
                <label class="col-lg-1 col-form-label text-lg-right">Badge</label>
				<div class="col-lg-3">
					<div class="custom-file" data-toggle="tooltip" data-placement="bottom"  title="JPG size should 90 x 125 mm (max 2MB) ">
						<input type="file" class="custom-file-input" id="badge" name="badge" accept=".jpg"/>
						<label class="custom-file-label" for="badge">Choose file</label>
					</div>
					<?=$validation->showError('badge')?>
			      <?php $uploaded_photo_image = set_value('uploaded_photo_image',$update_data['badge'] ?? ''); ?>
					<input type="hidden" name="uploaded_photo_image" id="uploaded_photo_image" value="<?=set_value('uploaded_photo_image',$uploaded_photo_image)?>" />
					<?php if($uploaded_photo_image!=""){ ?>
						<div class="text-primary"><a href="javascript:;" onclick="showIconImage();">View uploaded</a></div>					
					<?php } ?>
				</div>
				<label class="col-lg-1 col-form-label text-lg-right">Status</label>
				<div class="col-lg-3">
					<select required name="status" id="status" class="form-control">
						<?=$cmObj->get_status_options(set_value('status',($update_data['status'] ?? '')))?>
					</select>
					<?=$validation->showError('status')?>
				</div>
            </div>
        </div>
		<div class="card-footer">
			<div class="row">
				<div class="col-lg-12 text-center">
					<button type="submit" name="save" value="Save" class="btn btn-primary mr-2">Save</button>
				</div>
			</div>
		</div>
	</form>
</div>