<script type="text/javascript" src="<?php echo base_url();?>assets/js/inventory_settings.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Inventory Settings Edit</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box-header">
                    <div class="box-body table-responsive">
                        <?php if(!empty($success)) {?>
                            <div class="alert alert-success alert-dismissable">
                                <i class="fa fa-thumbs-o-up"></i>
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                <h4><?php echo $success;?></h4>
                            </div>
                        <?php }
                        else if(!empty($error)) {?>
                            <div class="alert alert-danger alert-dismissable">
                                <i class="fa fa-thumbs-o-down"></i>
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                <h4><?php echo $error;?></h4>
                            </div>
                        <?php }?>
                    </div>
                    <!-- .box-tools -->
                </div>
            </div>
            
            <div class="col-xs-12">
                <!--<h3 style="margin-top: 0; margin-right: 5px; width: 100%; display: inline-block;">
                    <a class="label btn btn-primary float-rht edit" href="<?php echo $view_link?>"><span>View</span></a>
                </h3>--> 
                <form name="master_settings" action="<?php echo $form_action;?>" method="post" enctype="multipart/form-data">
                    <div class="box box-danger">
                        <div class="box-body">
                            <ul class="error_container"></ul>
                            <!--<h3 class="major_txt_color" style="margin: 10px 0 25px 0;">Company</h3>-->
                            <div class="col-xs-12">
                                <div class="form-group float-clear">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" class="form-control check_all" name="check_all" value="all" />&nbsp;&nbsp;Select All
                                        </label>
                                    </div>
                                </div>
                                <?php foreach($setting as $key=>$value) {?>
                                    <div class="col-md-5">
                                        <div class="form-group inventory_div">
                                            <label>&nbsp;</label>
                                            <div class="checkbox">
                                                <label>
                                                    <input type="checkbox" class="form-control inventory_name" name="inventory_name[]" value="<?php echo $value->id;?>" <?php echo ($value->status == 1) ? 'checked' : '';?> />&nbsp;&nbsp;<?php echo $value->inventory_name;?>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                <?php } ?>
                            </div>
                            <br/>
                            <div>
                                <h3 class="major_txt_color">Statue and Books</h3>
                                <div class="col-xs-12">
                                    <!--<div class="form-group float-clear">
                                        <div class="checkbox">
                                            <label>
                                                <input type="checkbox" class="form-control statue_check_all" name="statue_check_all" value="all" />&nbsp;&nbsp;Select All
                                            </label>
                                        </div>
                                    </div>-->
                                    <?php foreach($statue_setting as $key=>$value) {?>
                                        <div class="col-md-5">
                                            <div class="form-group inventory_div">
                                                <label>&nbsp;</label>
                                                <div class="checkbox">
                                                    <label>
                                                        <input type="checkbox" class="form-control statue_menu_name" name="statue_menu_name[]" value="<?php echo $value->id;?>" <?php echo ($value->status == 1) ? 'checked' : '';?> />&nbsp;&nbsp;<?php echo $value->menu_name;?>
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                        </div>
                        
                        <div class="box-footer form-actions float-clear" style="text-align:center;">
                            <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>