<script type="text/javascript" src="<?php echo base_url();?>assets/js/inv_store.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Store Inventory Add</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_store_form" enctype="multipart/form-data" method="post">    
                    <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 float-clear inv_item">
                                        <label>S.No</label>
                                        <input type="text" class="form-control readonly" name="sno" value="<?php echo $code;?>" readonly />
                                    </div>
                                    <div class="form-group float-clear">
                                        <label>Supplier Name<span class="required">*</span></label>
                                        <select name="supplier_id" class="form-control select2">
                                            <option value="">Select Supplier Name</option>
                                            <?php foreach($suppliers as $key=>$supplier) {?>
                                                <option value="<?php echo $supplier->id;?>"><?php echo $supplier->name;?></option>
                                            <?php } ?>
                                        </select>
                                    </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 Name</option>
                                            <?php foreach($categories as $key=>$category) {?>
                                                <option value="<?php echo $category->id;?>"><?php echo $category->name;?></option>
                                            <?php } ?>
                                            <option value="0">Others</option>
                                        </select>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Item Name<span class="required">*</span></label>
                                        <select name="item_id" class="form-control select2">
                                            <option value="">Select Item Name</option>
                                        </select>
                                    </div>
                                    
                                    <div class="form-group float-clear inv_item">
                                        <label>Brand Name</label>
                                        <input type="text" class="form-control" name="brand_name" />
                                    </div>
                                    <div class="form-group float-clear">
                                        <label>Item Description</label>
                                        <textarea class="form-control" name="desc"></textarea>
                                    </div>
                                </div>
                                
                                <div class="col-md-6">
                                    <div class="form-group float-clear">
                                        <label>Received Quantity</label>
                                        <input type="text" class="form-control" name="received_qty" readonly placeholder="From Supplier" />
                                    </div>
                                    
                                    <div class="form-group float-clear inv_item">
                                        <label>UOM</label>
                                        <input type="text" class="form-control" name="uom" readonly />
                                        <input type="hidden" class="form-control" name="hidden_uom" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Location</label>
                                        <input type="text" class="form-control" name="location" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Issued Quantity<span class="required">*</span></label>
                                        <input type="text" class="form-control integer_value" name="issued_qty" placeholder="To Users" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Balance Quantity</label>
                                        <input type="text" class="form-control" name="balance_qty" readonly placeholder="In Hand" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Remarks</label>
                                        <textarea class="form-control" name="remarks"></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="Save" class="btn btn-success btn-primary" />
                        </div>
                    </div><!-- /.box -->
                </form>
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->

    </section><!-- /.content -->
</aside>