<!DOCTYPE html>
<html lang="en" class="h-100">


<head>
     <!-- meta and links start -->
     <%- include('templet/meta')-%> 
    
</head>
<body>
    <%- include('templet/preloder_topbar_sidebar',{titel: "Ledger List" })-%> 
       
            <!--********** Content body start **********-->
     
        <div class="content-body">
            
            <div class="container-fluid">
                <div class="row">
                    <div class="d-none">
                        <input type="hiden" name="sym" value="<%= accessdata.symbol %>">
                        <input type="hiden" name="pls" value="<%= accessdata.plac %>">
                        <input type="hiden" name="thousands_separator" value="<%= accessdata.thousands_separator %>">
                    </div>
                    <div class="col-12">
                       <div class="card ">
                            <div class="card-header">      
                            </div>
                            <div class="card-body ">
                                <div class="table-responsive">
                                    <table id="example3" class="display table-responsive-lg">
                                        <thead>
                                            <tr>
                                                <th>#</th>
                                                <th scope="col"><%= language.Date %> </th>
                                                <th scope="col"><%= language.Account %> </th>
                                                <th scope="col"><%= language.Type %> </th>
                                                <th scope="col"><%= language.Description %> </th>
                                                <th scope="col"><%= language.Debit %> </th>
                                                <th scope="col"><%= language.Credit %> </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <% transection_list.forEach(function(data, i){ %>
                                                <tr>
                                                    <td><%= i + 1 %></td>
                                                    <td>
                                                        <% let Order_date = new Date(data.date) %>
                                                        <% let Order_day = (Order_date.getDate() < 10 ? '0' : '') + Order_date.getDate() %>
                                                        <% let Order_month = ((Order_date.getMonth()+1) < 10 ? '0' : '') + (Order_date.getMonth()+1) %>
                                                        <% let Order_year = Order_date.getFullYear() %>
                                                        <% let Order_fullDate = `${Order_year}/${Order_month}/${Order_day}` %>
                                                        <%= Order_fullDate %>
                                                    </td>
                                                    <td><%=data.ac_name %></td>
                                                    <td><%=data.transec_type %></td>
                                                    <td><%=data.transec_detail %></td>
                                                    <td class="symbol"><%=data.debit_amount %></td>
                                                    <td class="symbol"><%=data.credit_amount %></td>
                                                </tr>
                                            <% }) %>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                       </div>
                    </div>
                </div>
            </div>


        </div>
      
            <!--********** Content body end **********-->

        <!--**********************************
            Footer start
        ***********************************-->
        <div class="footer">
            <div class="copyright">
                <p><%= language.Copyright %> © <%= language.Designed %> &amp; <%= language.Developed_by %> <a href="#" target="_blank">KMS</a> 2023</p>
            </div>
        </div>
        <!--**********************************
            Footer end
        ***********************************-->

    </div>

        <!--********** Main wrapper end **********-->
        <%- include('templet/script')-%>

</body>


</html>