<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Category View</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 box-danger">
                    <div class="box-body">
                        <div class="col-xs-12">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <span class="first-coln">Name</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($category->category_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($category->tamil_name)) ? '<span class="lang-tamil">' . $category->tamil_name . '</span>' : 'N/A';?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Category Order</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $category->category_order;?>
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <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 $category->color_top;?>;">&nbsp;</div>
                                            <div style="min-height: 40px; box-shadow: 3px 3px 9px #999; background: <?php echo $category->color_bottom;?>;">&nbsp;</div>
                                        </div>
                                    </span>
                                </div>
                            </div>
                            <div class="col-md-6">    
                                <div class="form-group">
                                    <span class="first-coln">Grouping</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($category->grouping == 1) ? 'Yes' : 'No';?>
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Separate Receipt</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($category->is_separate == 1) ? 'Yes <span style="color: #999; font-size: 11px;">(Quantity wise separate receipt will be generated!)</span>' : 'No';?>
                                    </span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Upload Image</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln">
                                        <?php
                                        if ((!empty($category->image)) && (file_exists(FCPATH . DIR_CATEGORY_IMAGE . $category->image))) {
                                            $image_url = base_url() . DIR_CATEGORY_IMAGE . $category->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">Receipt Prefix</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($category->cat_prefix);?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Status</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($category->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>