           
<div class="panel panel-default">
    <?php
    $query = $this->main_model->homecontent_info($home_id);
    foreach ($query as $row):
        ?>
        <div class="panel-heading">
            <h6 class="panel-title"><i class="fa fa fa-align-justify"></i> Home Content Information | Edit</h6>
            <a href="<?php echo site_url('everbright/homecontent'); ?>" class="pull-right btn btn-circle btn-xs btn-default"><i class="fa fa-step-backward"></i> Back</a>
        </div>

        <div class="panel-body">
            <form action="<?php echo site_url('everbright/homecontent/edit/' . $row['home_id']); ?>" method="post" class="form-horizontal validate" role="form"> 

                 
                                
                <div class="row">
                    <div class="col-md-6">                   
                        <div class="form-group">
                            <label class="col-sm-4 control-label text-right"><span>Content Type<span class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['content_type']; ?>"  placeholder="Content Type" name="content_type">
                            </div>
                        </div> 
                    </div>
					<div class="col-md-6">                   
                        <div class="form-group">
                            <label class="col-sm-4 control-label text-right"><span>Content Option<span class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['content_option']; ?>"  placeholder="Content Option" name="content_option">
                            </div>
                        </div> 
                    </div>
                    

                </div>
                <div class="row">
                    <div class="col-md-6">                   
                        <div class="form-group">
                            <label class="col-sm-4 control-label text-right"><span>Title<span class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['title']; ?>"  placeholder="Title" name="title">
                            </div>
                        </div> 
                    </div>

                </div>
                
                <div class="form-group">
                <label class="control-label col-md-2 text-right">Details </label>
                <div class="col-md-10">
                    <textarea type="text" class="texteditor" placeholder="Details" name="details"><?php echo $row['details']; ?></textarea>
                </div>
            </div>
                
                
                
                <div class="form-actions text-right">
                    <button type="submit" value="Update" class="btn btn-primary"><i class="fa fa-check"></i> Update</button>
                </div>

            </form> 

        </div>

    <?php endforeach; ?>

</div>
