<?php
    //echo '<pre>'; print_r( $result ); die;
?>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/inv_general.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">General Inventory 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="inv_general_form" enctype="multipart/form-data" method="post" onsubmit="return checkAdjust();">    
                    <input type="hidden" name="hidden_id" value="" />    
                    <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">
                                        <span class="first-coln">Category Name</span>
                                        <span class="seperator">:</span>
                                        <span class="second-coln"><?php echo $result['inv_cat_name']; ?></span>
                                        <input type="hidden" name="category_id" value="<?php echo $result['inv_cat_id']; ?>" />
                                    </div>

                                    <div class="form-group">
                                        <span class="first-coln">Item Name</span>
                                        <span class="seperator">:</span>
                                        <span class="second-coln"><?php echo $result['inv_item_name']; ?></span>
                                        <input type="hidden" name="item_id" value="<?php echo $result['inv_item_id']; ?>" />
                                    </div>
                                    
                                    <div class="form-group">
                                        <span class="first-coln">UOM</span>
                                        <span class="seperator">:</span>
                                        <span class="second-coln"><?php echo text($result['unit_name']); ?></span>
                                        <input type="hidden" name="hidden_uom" value="<?php echo $result['uom_id']; ?>" />
                                    </div>
                                </div>
                                
                                <div class="col-md-6">
                                    
                                    <div class="form-group float-clear">
                                        <label>Available Quantity</label>
                                        <input type="text" class="form-control" name="avail_qty" value="<?php echo $result['now_avail_qty']; ?>" readonly data-issued-qty="<?php echo $result['total_issued_qty']; ?>" />
                                    </div>
                                    
                                    <div class="form-group">
                                        <label class="leftcol">Adjust Type</label>
                                        <div>
                                            <label for="status" style="width: 32%; font-weight: bold; font-size: 20px;"><input type="radio" name="adj_type" value="1"  checked /> &nbsp;&nbsp;+</label> 
                                            <label for="status" style="width: 32%; font-weight: bold; font-size: 20px;"><input type="radio" name="adj_type" value="0" /> &nbsp;&nbsp;-</label> 
                                        </div>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Adjust Quantity</label>
                                        <input type="text" class="form-control" name="adj_qty" value="0" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Description</label>
                                        <textarea class="form-control" name="desc"></textarea>
                                    </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>