<script type="text/javascript" src="<?php echo base_url();?>assets/js/statue.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Item Edit</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <form action="<?php echo $form_action;?>" method="post" name="item_form" enctype="multipart/form-data" method="post">    
                    <input type="hidden" name="hidden_id" value="<?php echo $item->id;?>" />    
                    <div class="box box-danger">
                        <div class="box-body">
                            <ul class="error_container"></ul>
                            <div class="col-xs-12">
                                <div class="col-md-6">
                                    <div class="form-group float-clear">
                                        <label>Item Code</label>
                                        <input type="text" class="form-control readonly" name="code" placeholder="Item Code" autofocus value="<?php echo $item->code;?>" readonly />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Category Name<span class="required">*</span></label>
                                        <!--<select name="category_id" class="form-control select2">
                                            <option value="">Select Category</option>
                                            <?php foreach($categories as $key=>$category) {?>
                                                <option value="<?php echo $category->id;?>" <?php echo (($category->id == $item->category_id)) ? 'selected' : '';?> ><?php echo $category->name;?></option>
                                            <?php } ?>
                                            
                                        </select>-->
                                        <input type="hidden" name="category_id" value="<?php echo $item->category_id;?>" />
                                        <input type="text" name="category_name" class="form-control readonly category_name" value="<?php echo $item->name;?>" readonly />
                                    </div>
                                    
                                    <div class="form-group float-clear inv_item" >
                                        <label>Item Name<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="item_name" placeholder="Item Name" value="<?php echo $item->item_name;?>" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Selling Price</label>
                                        <div class="input-group">
                                            <div class="input-group-addon">$</div>
                                            <input type="text" class="form-control float_value" name="price" placeholder="Selling Price" value="<?php echo $item->selling_price;?>" />
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                        </div>
                        
                        <div class="box-footer form-actions float-clear">
                            <input class="btn reset" type="reset" value="Reset" />
                            <input type="submit" name="submit" value="Update" class="btn btn-success btn-primary" />
                        </div>
                    </div><!-- /.box -->
                </form>
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>