<?php

/* 
 * Author       : Jai K
 * Purpose      : The View page for Expense Type
 * Created On   : 2017-01-25 16:05    
 */
?>

<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color"><a href="<?php echo base_url() . $controller; ?>" class="list-btn"><i class="fa fa-list" title="Go to Listing"></i></a><?php echo $title; ?> - 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">Ref. No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $edit_data->exp_rec_no; ?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Expense Type</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $edit_data->type_name; ?></span>
                                </div>
                                
                                
                                <div class="form-group">
                                    <span class="first-coln">Expense Subject</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $edit_data->exp_sub; ?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Expense Name</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $edit_data->exp_name; ?></span>
                                </div>
                                
                                <?php if($edit_data->mode == 1 || $edit_data->mode == 2) {?>
                                    <div class="form-group">
                                        <span class="first-coln">Mode</span>
                                        <span class="seperator">:</span>
                                        <span class="second-coln"><?php echo ($edit_data->mode == 1) ? 'Cash' : 'Cheque'; ?></span>
                                    </div>
                                <?php } ?> 
                                
                                <div class="form-group" <?php echo ($edit_data->mode == 2) ? 'style=display:block;' : 'style=display:none;';?>>
                                    <span class="first-coln">Cheque No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $edit_data->cheque_no; ?></span>
                                </div>
                            </div>
                            
                            
                            <div class="col-md-6">    
                                <div class="form-group">
                                    <span class="first-coln">Date</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo date("d M, Y", strtotime( $edit_data->exp_date ) ); ?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Amount</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $edit_data->exp_amount; ?></span>
                                </div>
                                
                                <div class="form-group">
                                    <span class="first-coln">Description</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($edit_data->exp_desc); ?></span>
                                </div>
                                
                                <div class="form-group" <?php echo ($edit_data->mode == 2) ? 'style=display:block;' : 'style=display:none;';?>>
                                    <span class="first-coln">Bank Name</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo $edit_data->bank_name; ?></span>
                                </div>
                                
                                <div class="form-group" <?php echo ($edit_data->mode == 2) ? 'style=display:block;' : 'style=display:none;';?>>
                                    <span class="first-coln">Cheque Date</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo date('d-m-Y',strtotime($edit_data->cheque_date)); ?></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>




                                    
                                    
                                    
                                    