<!--begin::Card-->
<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-2 col-form-label text-lg-right">Title</label>
				<div class="col-lg-3">
					<input type="text" name="title" id="title" value="<?=set_value('title',$update_data['title'] ?? '')?>" class="form-control" placeholder="Enter Uploading Document Title" required />					
					<?=$validation->showError('title')?>
				</div>
				<label class="col-lg-2 col-form-label text-lg-right">Image</label>
				<div class="col-lg-3">
				<div class="custom-file">
						<input type="file" class="custom-file-input" id="image" name="image" accept=".pdf,.png,.jpg,.gif,jpeg" value="<?=set_value('image',$update_data['image'] ?? '')?>"/>
						<label class="custom-file-label" for="image">Choose file</label>
					</div>
					<?=$validation->showError('image')?>
			      
			  <?php $uploaded_image = set_value('uploaded_image',$update_data['image'] ?? ''); ?>
					<input type="hidden" name="uploaded_image" id="uploaded_image" value="<?=set_value('uploaded_image',$uploaded_image)?>" />
					<?php if($uploaded_image!=""){ ?>
						<div class="text-primary"><a href="javascript:;" onclick="showLogo();">View uploaded</a></div>					
					<?php } ?>
				</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>