<% settlements.forEach((item,index)=>{%>
    <tr class="delete_row" id="tr<%=item._id%>">
        <td></td>
        <td><%= item.settlementNumber %></td>
        <td><%=item.date%></td>
        <td><%=item.time%></td>
        <td><%=item.client?.name%></td>
        <td><%=item.total%> <%= i18n.__('common.currency') %> </td>
        <td>
            <% if (item.status == "pending") { %>
                <span class="btn btn-sm round btn-outline-warning"><%= i18n.__('waitingStatus') %>  <i class="la la-close font-medium-2"></i></span>

            <% } else if (item.status == "accept") { %>
                <span class="btn btn-sm round btn-outline-success"><%= i18n.__('acceptedStatus') %>  <i class="la la-close font-medium-2"></i></span>

            <% } else { %>
                <span class="btn btn-sm round btn-outline-danger"><%= i18n.__('rejectedStatus') %>  <i class="la la-close font-medium-2"></i></span>

            <% } %>
        </td>
    
        
        <td class="product-action ">
            <% if((type === 'pending' || type === 'all') && item.status == "pending"){ %>
                <!-- Apply inline style for color directly to the icon -->
                <a class="action-row" style="font-size: 1.4rem; display: inline-block;" data-id="<%= item.id %>" data-url="/dashboard/settlements/actions/<%= item.id %>?type=accept">
                    <i class="feather icon-check-circle" style="color: #28a745;"></i> <!-- Example green color for accept -->
                </a>
                <!-- Apply inline style for color directly to the icon -->
                <a class="action-row" style="font-size: 1.4rem; display: inline-block;" data-id="<%= item.id %>" data-url="/dashboard/settlements/actions/<%= item.id %>?type=reject">
                    <i class="feather icon-x-circle" style="color: #dc3545;"></i> <!-- Example red color for reject -->
                </a>
            <% } else { %>
                <span style="font-size: 1rem;"><%= i18n.__('notControll') %></span>
            <% } %>
        </td>
      



    </tr>
<%})%>