

<?php $this->load->view('common/header');?>
         <div class="content-box">
                <div class="form_components">
                    <h3 class="hr"><?php echo $title;?></h3>
                    <div class="form_detail">
                 
                        <?php if(validation_errors()){ ?>

                            <div class="m-alert m-alert--outline alert alert-success alert-dismissible fade show" role="alert">
                                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"></button>
                                        <?php   echo validation_errors(); ?>
                                </div>
                                <?php                                      
                        }?>
                        <form method="post" action="" enctype="multipart/form-data" > 

                            <div class="input-box">
                                <div class="row">
                                    <label class="col-md-3">Category Type</label>
                                    <div class="col-md-7">
                                        <select name="category_type" class="form-control">
                                            <option value="">Select Category Type</option>
                                            <option value="category" <?php echo $result->category_type=="category" ? "selected"  :"" ?> >Category</option>
                                            <option value="notes" <?php echo $result->category_type=="notes" ? "selected"  :"" ?> >Notes</option>
                                            <option value="discount" <?php echo $result->category_type=="discount" ? "selected"  :"" ?> >Discount</option>
                                        </select>
                                    </div>
                                </div>
                            </div> 

                            <div class="input-box">
                                <div class="row">
                                    <label class="col-md-3">Category Name</label>
                                    <div class="col-md-7">
                                        <input type="text" name="category_name" class="form-control" value="<?php echo $result->category_name;?>">
                                    </div>
                                </div>
                            </div>               

                            <div class="offset-md-4">
                                    <button class="btn btn-success"><span>Update</span></button>
                                   <a href="<?php echo base_url('admin/category');?>" class="btn btn-danger"><span>Cancel</span></a>
                            
                                       
                            </div>
                        </form>
                    </div>
                </div>
            </div>
<?php $this->load->view('common/script');?>
<?php $this->load->view('common/footer');?>