<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Item View</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <?php $general = get_general_setting();?>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box box-danger">
                    <div class="box-body">
                        <div class="col-xs-12">
                            <div class="col-md-6">
                                <?php if($general->is_category == 1) {?>
                                    <div class="form-group">
                                        <span class="first-coln">Category Name</span>
                                        <span class="seperator">:</span>
                                        <span class="second-coln"><?php echo text($item->category_name);?></span>
                                    </div>
                                <?php } ?>
                                
                                <div class="form-group">
                                    <span class="first-coln">Name</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($item->name);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Name (T)</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo (!empty($item->tamil_name)) ? '<span class="lang-tamil">' . $item->tamil_name . '</span>' : 'N/A';?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Price</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo '$ ' . $item->price;?>
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Receipt</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($item->receipt == 1) ? 'With Name' : 'Without Name';?>
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Inventory</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><input type="checkbox" class="form-control" name="is_inventory" value="1" <?php echo ($item->is_inventory == 1) ? 'checked' : '';?> disabled />
                                    </span>
                                </div>
                                
                                <?php if( $item->is_inventory == 1 ) : ?>
                                        <input type="hidden" id="inv-cat-id" value="<?php echo $item->inv_cat_id; ?>" />
                                        <div class="form-group" id="inv-cat-wrap">
                                            <span class="first-coln">Inventory Category</span>
                                            <span class="seperator">:</span>
                                            <span class="second-coln"><?php echo $item->inv_cat_name; ?></span>
                                        </div>
                                <?php endif; ?>
                                
                                <div class="form-group">
                                    <span class="first-coln">Is Scan</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($item->is_scan == 1) ? 'Yes <span style="color: #999; font-size: 11px;">(Item will be displayed in Scan(Kioask))</span>' : 'No';?>
                                    </span>
                                </div>
                                
                                <div class="form-group" style="display:<?php echo ($general->is_category == 1) ? 'none' : 'block';?>">
                                    <span class="first-coln">Color</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln">
                                        <div style="background: #fff; padding: 10px; box-shadow: 3px 3px 9px #eee; width: 50%; border: 1px inset;">
                                            <div style="min-height: 40px; box-shadow: 3px 3px 9px #999; background: <?php echo $item->item_top_color;?>;">&nbsp;</div>
                                            <div style="min-height: 40px; box-shadow: 3px 3px 9px #999; background: <?php echo $item->item_bottom_color;?>;">&nbsp;</div>
                                        </div>
                                    </span>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <span class="first-coln">Footer Receipt</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><input type="checkbox" class="form-control" name="is_enable" value="1" <?php echo ($item->is_enable_footer == 1) ? 'checked' : '';?> disabled />
                                    </span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">God Name</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($item->god_name == 1) ? 'With God Name' : 'Without God Name';?>
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Order Sequence</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $item->order_sequence;?>
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Prefix</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $item->prefix;?>
                                    </span>
                                </div>
                                
                                
                                <div class="form-group">
                                    <span class="first-coln">Upload Image</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln">
                                        <?php
                                        if ((!empty($item->image)) && (file_exists(FCPATH . DIR_ITEM_IMAGE . $item->image))) {
                                            $image_url = base_url() . DIR_ITEM_IMAGE . $item->image;
                                            $alt = 'No image not found!';
                                            $style="width: 60px;";
                                        }
                                        else {
                                            $image_url = base_url() . NO_IMG;
                                            $alt = 'No image not found!';
                                            $style="width: 60px;";
                                        }
                                        ?>
                                    <img src="<?php echo $image_url;?>" alt="<?php echo $alt;?>" style="<?php echo $style;?>" />
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Status</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($item->status_str);?>
                                    </span>
                                </div>
                                
                            </div>
                        </div>
                        <div class="box-footer form-actions float-clear"></div>
                    </div><!-- /.box-body -->
                </div><!-- /.box -->
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/item.js"></script>