 <div class="content-wrapper">
    <div class="container-fluid">
		
		<div class="row">
			<div class="col-lg-12">
			   <form action="#" method="post" method="post" enctype="multipart/form-data">
			   <input type="hidden" name="id" value="<?= @$id; ?>">
			   <div class="card">
			     <div class="card-body">
				   <div class="card-title"><?= $pagetitle; ?></div>
				   <?php echo ($this->session->flashdata('form_error'));?>
				   <?php echo ($this->session->flashdata('image_error'));?>
				   <hr>
					 <div class="form-group row">
					  <label for="input-21" class="col-sm-2 col-form-label">Merchant*</label>
					  <div class="col-sm-10">
						<select name="merchantId" class="form-control">
                        	<option value="0">For All Merchants</option>
                        	<?php foreach($merchants as $gr){?>
                            	<?php if($gr->merchantId == @$merchantId){ ?>
                                	<option value="<?= $gr->merchantId; ?>" selected><?= $gr->storename; ?> (<?= $gr->accountId; ?>)</option>
                                <?php } else { ?>
                                 	<option value="<?= $gr->merchantId; ?>"><?= $gr->storename; ?> (<?= $gr->accountId; ?>)</option>
                                <?php } ?>
                            <?php }?>
                        </select>
					  </div>
					</div>
                    
                     <div class="form-group row">
					  <label for="input-21" class="col-sm-2 col-form-label">List Title</label>
					  <div class="col-sm-10">
						<input type="text" class="form-control" name="title" id="input-21" placeholder="Enter Title" <?php if(@$title !=''){echo "value='".@$title."'";}?>>
					  </div>
					</div>
					
					<div class="form-group row">
					  <label for="input-22" class="col-sm-2 col-form-label">Description</label>
					  <div class="col-sm-10">
						<textarea name="description" class="form-control"><?php if(@$description){echo @$description;}?></textarea>
					  </div>
					</div>
					
					<div class="form-group row">
					  <label for="input-24" class="col-sm-2 col-form-label">Status</label>
					  <div class="col-sm-10">
						<input type="checkbox" name="status" class="" id="activestatus" value="1" <?php if(@$status==1){echo "checked";}?>> <label for="activestatus"> Active</label>
					  </div>
					</div>
					 
					 <div class="form-group row">
					  <label class="col-sm-2 col-form-label"></label>
					  <div class="col-sm-10">
						<button type="submit" name="submit" class="btn btn-primary px-5"><i class="icon-lock"></i> Update</button>
					  </div>
					</div>
				 </div>
			 </div>
			</form>
		</div>
	</div><!--End Row-->
	
	