<?php  $this->load->view('master/common/header.php',$data);
$base_name = $data['base_name'];
?>

    <div class="content">
        
        <!-- Start Content-->
        <div class="container-fluid">
            
            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <li class="breadcrumb-item"><a href="javascript: void(0);"><?= $base_name;?></a></li>
                                <li class="breadcrumb-item active text-capitalize"><?= $page;?></li>
                            </ol>
                        </div>
                        <h4 class="page-title text-uppercase"><?= $page;?></h4>
                    </div>
                </div>
            </div>     
            <!-- end page title --> 

            <div class="row">
                <div class="col-md-6 col-xl-6">
                    <div class="card-box">
                        <div class="row">
                            <div class="col-sm-12">
                                <form class="form-horizontal" action="<?= base_url('master/ad_slider/edit_content/'.$ad_slider['id']);?>" method="post" enctype="multipart/form-data">
                                    <input type="hidden" name="table" value="tbl_ad_slider" />
                                    <input type="hidden" name="page" value="ad_slider/edit/<?=$ad_slider['id'];?>" />
                                    
                                    <h4 class="header-title mb-4">Photo (590px X 300px) </h4>
                                    <input type="file" name="img" class="dropify" data-default-file="<?= base_url('uploads/shop/ad_slider/'.$ad_slider['img']);?>" data-max-file-size="1M" />
                                    
                                    <h4 class="header-title mb-4">Title</h4>
                                    <div class="form-group">
                                        <input type="text" name="title" required="" value="<?=$ad_slider['title'];?>" class="form-control" />
                                    </div>
                                    
                                    <h4 class="header-title mb-4">Link URL</h4>
                                    <div class="form-group">
                                        <input type="text" name="link" required="" value="<?=$ad_slider['link'];?>" class="form-control" />
                                    </div>
                                 
                                    <h4 class="header-title">Status</h4>
                                    <div class="form-group mb-5">
                                        <div class="custom-control custom-radio float-left">
        									<input class="custom-control-input" value="1" type="radio" id="statusActive" required name="status"  <?php echo ($ad_slider['status'] == 1) ? 'checked' : '';?>>
        									<label for="statusActive" class="custom-control-label">Active</label>
        								</div>
        								<div class="custom-control custom-radio float-left ml-3">
        									<input class="custom-control-input" value="0" type="radio" id="statusBlock" required name="status" <?php echo ($ad_slider['status'] == 0) ? 'checked' : '';?>>
        									<label for="statusBlock" class="custom-control-label">Block</label>
        								</div>
                                    </div>
                                    
                                    <div class="form-group">
                                        <button type="submit" class="btn btn-success float-right m-2">Submit</button>
                                        <a href="<?php echo base_url().'master/ad_slider/'?>" class="btn float-right m-2 btn-secondary" title="">Back</a>
                                    </div>
                                
                                </form>
				            </div>
					    </div>
					</div>
				</div>
				<!-- /.col-md-6 -->
			</div>
			<!-- /.row -->
		</div>
		<!-- /.container-fluid -->
	</div>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php $this->load->view('master/common/footer.php'); ?>
