<?php // echo"<pre>";die(print_r($list));?>
<style type="text/css">
        .table thead tr >th{
        background-color:#4c0870;
        width:16% !important;
        color:#fff;
    }
    .table thead tr th[class*='sorting_'] {
        color: #fff;
    }
    .ValSpan{
        opacity:0;
    }
</style>
<script src="<?php echo VIEWS; ?>files/towords.js"></script>
<script src="<?php echo JS_PATH; ?>scripts.js"></script>
<script>

    // to remove many digits after the period
    $(function(){$(".ValSpan").each(function(){$(this).html(AddCommas(parseFloat($.trim($(this).text())).toFixed(3))).animate({opacity:1})})})
</script>

    <div class="panel ">
                <div class="panel-heading">
                <div class=" panel-title" ><?php print CommonLanguage::getMessage('cash_list');?></div>
                   
                
            </div>
        <div class="panel-body">
           
          
            <div class="row">
                <div class="col-xs-4">

                    
                    <br/><span ><strong><?php print CommonLanguage::getMessage('account_name');?>: </strong></span><span> <?php echo $list[0]['Account_Name'] ; ?></span>
                    <br/><span id = "Account_Code"><strong><?php print CommonLanguage::getMessage('account_code');?>:</strong> <?php echo $list[0]['Transaction_Account']; ?></span>
                    
                   
                </div>
                <div class="col-xs-4">
                    
                    <br/><span id = "Total_Debit"><strong><?php print CommonLanguage::getMessage('total_debit');?>: </strong><span class='CurrencyIndicator'><?php echo $CurrSymbole; ?></span>&nbsp;<?php echo $list['Total_Debit']; ?></span>
                    <br/><span id = "Total_Credit"><strong><?php print CommonLanguage::getMessage('total_credit');?>: </strong><span class='CurrencyIndicator'><?php echo $CurrSymbole; ?></span>&nbsp;<?php echo $list['Total_Credit'];?></span>
                    <br/><span id="Balance"><strong><?php print CommonLanguage::getMessage('Balance');?>: </strong><span class='CurrencyIndicator'><?php echo $CurrSymbole; ?></span>&nbsp;<?php echo $list['Total_Balance']; ?></span>
                    
                </div>
                
            </div>
            <br/>
            <br/>
            <br/>
            <table class="table table-striped table-hover" id="tableWithSearch">
                <thead>
                    <tr>
                        <th class="text-center" ><?php print CommonLanguage::getMessage('jv');?>#</th>
                        <th class="text-center" ><?php print CommonLanguage::getMessage('Type');?></th>
                        <th class="text-center" ><?php print CommonLanguage::getMessage('Date');?></th>
                        <th class="text-center" ><?php print CommonLanguage::getMessage('amount');?></th>
                        <th class="text-center" ><?php print CommonLanguage::getMessage('Description');?></th>
                        
                    </tr>
                </thead>
                <tbody>
                    <?php
for($i=0;$i<count($list)-3;$i++){
                    ?>
                    <tr>
                        
                        <td  class='v-align-middle text-center'><?php echo $list[$i]["JV_ID"] ; ?></td>
                        <td  class='v-align-middle text-center'><?php echo $list[$i]["Transaction_Type"]; ?></td>
                        <td  class='v-align-middle text-center'><?php echo $list[$i]["Transaction_Date"]; ?></td>
                        <td  class='v-align-middle text-center'><span class='CurrencyIndicator'><?php echo $list[$i]["Currency_Symbol"]; ?></span>&nbsp;<span class=""><?php echo CommonFunctions::public_round_number($list[$i]["Transaction_Amount"]) ; ?></span></td>
                        <td  class='v-align-middle text-center'><?php echo $list[$i]["Transaction_Description"]; ?></td>
                    </tr>
                    <?php } ?>
                </tbody>
            </table>
            <br/>
            <br/>
    
           
          
        </div>
    </div>

