<script type="text/javascript" src="<?php echo base_url();?>assets/js/settings.js"></script>
<aside class="right-side">
	<section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Design Settings View</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
	<section class="content">
        <div class="row">
           
            <div class="col-xs-12">
                <?php if (in_array(3, $permission)) {?>
                    <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 $edit_link?>"><span>Edit</span></a>
                    </h3>
                <?php }?>
                <div class="box box-danger">
                    <div class="box-body table-responsive">
                        <div class="col-md-6">     
                           <div class="form-group">
                                <span class="first-coln">Font Family</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->font_family);?>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Font Size</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->font_size);?>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Heading Font Family</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->head_font_family);?>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Heading Font Size</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->head_font_size);?>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Keyboard Color(T)</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->keyboard_color;?>; font-size: 30px;" title="<?php echo $setting->keyboard_color;?>"></i>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Login Page / Header Color</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->login_page_color;?>; font-size: 30px;" title="<?php echo $setting->login_page_color;?>"></i>
                                </span>
                            </div>
                            
                            <!--<div class="form-group">
                                <span class="first-coln">Color 1</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->color1);?>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Color 2</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->color2);?>
                                </span>
                            </div>-->
                        </div>
                        
                        <div class="col-md-6">
                            <div class="form-group">
                                <span class="first-coln">Title Color(Archanai)</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->archanai_title_color;?>; font-size: 30px;" title="<?php echo $setting->archanai_title_color;?>"></i>
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Logo</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php
                                    if ((!empty($setting->logo)) && (file_exists(FCPATH . DIR_COMPANY_LOGO . $setting->logo))) {
                                        $image_url = base_url() . DIR_COMPANY_LOGO . $setting->logo;
                                        $alt = $setting->logo;
                                        $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">Favicon</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php
                                    if ((!empty($setting->favicon)) && (file_exists(FCPATH . DIR_FAVICON . $setting->favicon))) {
                                        $image_url = base_url() . DIR_FAVICON . $setting->favicon;
                                        $alt = $setting->favicon;
                                    }
                                    else {
                                        $image_url = base_url() . DEFAULT_FAVICON;
                                        $alt = 'No image not found!';
                                    }
                                    ?>
                                    <img src="<?php echo $image_url;?>" alt="<?php echo $alt;?>" />
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Login Image</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php
                                    if ((!empty($setting->login_image)) && (file_exists(FCPATH . DIR_LOGIN_IMG . $setting->login_image))) {
                                        $image_url = base_url() . DIR_LOGIN_IMG . $setting->login_image;
                                        $alt = $setting->login_image;
                                        $style="width: 60px;";
                                    }
                                    else {
                                        $image_url = base_url() . DIR_LOGIN_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">Service Menu Color</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->service_menu_color;?>; font-size: 30px;" title="<?php echo $setting->service_menu_color;?>"></i>
                                </span>
                            </div>
                        </div>
                        
                        
                        <div class="col-md-6" style="clear: both;"> 
                            <h3 class="major_txt_color">Administrator Setting</h3><br/>
                            <div class="form-group">
                                <span class="first-coln">Menu Background</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->admin_menu_bg_color;?>; font-size: 30px;" title="<?php echo $setting->admin_menu_bg_color;?>"></i>
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Menu Label</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->admin_menu_lbl_color;?>; font-size: 30px;" title="<?php echo $setting->admin_menu_lbl_color;?>"></i>
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Menu Selection</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->admin_menu_select_color;?>; font-size: 30px;" title="<?php echo $setting->admin_menu_select_color;?>"></i>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Admin Menu Background</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php
                                    if ((!empty($setting->admin_menu_bg)) && (file_exists(FCPATH . DIR_ADMIN_MENU_BG . $setting->admin_menu_bg))) {
                                        $image_url = base_url() . DIR_ADMIN_MENU_BG . $setting->admin_menu_bg;
                                        $alt = $setting->admin_menu_bg;
                                        $style="width: 60px;";
                                    }
                                    else {
                                        $image_url = base_url() . DIR_ADMIN_MENU_BG;
                                        $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">Administrator Background</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php
                                    if ((!empty($setting->admin_bg)) && (file_exists(FCPATH . DIR_ADMIN_BG . $setting->admin_bg))) {
                                        $image_url = base_url() . DIR_ADMIN_BG . $setting->admin_bg;
                                        $alt = $setting->admin_bg;
                                        $style="width: 60px;";
                                    }
                                    else {
                                        $image_url = base_url() . DIR_ADMIN_BG;
                                        $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>
                        
                        <div class="col-md-6"> 
                            <h3 class="major_txt_color">User Setting</h3><br/>
                            <div class="form-group">
                                <span class="first-coln">Menu Background</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->user_menu_bg_color;?>; font-size: 30px;" title="<?php echo $setting->user_menu_bg_color;?>"></i>
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Menu Label</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->user_menu_lbl_color;?>; font-size: 30px;" title="<?php echo $setting->user_menu_lbl_color;?>"></i>
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Menu Selection</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <i class="fa fa-square" style="color: <?php echo $setting->user_menu_select_color;?>; font-size: 30px;" title="<?php echo $setting->user_menu_select_color;?>"></i>
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">User Menu Background</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php
                                    if ((!empty($setting->user_menu_bg)) && (file_exists(FCPATH . DIR_USER_MENU_BG . $setting->user_menu_bg))) {
                                        $image_url = base_url() . DIR_USER_MENU_BG . $setting->user_menu_bg;
                                        $alt = $setting->user_menu_bg;
                                        $style="width: 60px;";
                                    }
                                    else {
                                        $image_url = base_url() . DIR_USER_MENU_BG;
                                        $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">User Background</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php
                                    if ((!empty($setting->user_bg)) && (file_exists(FCPATH . DIR_USER_BG . $setting->user_bg))) {
                                        $image_url = base_url() . DIR_USER_BG . $setting->user_bg;
                                        $alt = $setting->user_bg;
                                        $style="width: 60px;";
                                    }
                                    else {
                                        $image_url = base_url() . DIR_USER_BG;
                                        $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>
                        
                    </div>
                    
                    <div class="box-footer float-clear"></div>
                </div>
            </div>
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>