<div id="content-alerts">
    <table id="conten-2" border="1px">
        <tbody>
        <?php echo $sidemenu ?>
        <tr>
            <td style="vertical-align: top;">
                <div style="padding: 5px 5px 5px 5px">
                    <table border="1" cellspacing="1px">
                        <tr style="background-color: #DBDBDB">
                            <th>ATM ID</th>
                            <th>ĐẦU ĐỌC THẺ</th>
                            <th>BỘ PHẬN TRẢ TIỀN</th>
                            <th>BÀN PHÍM</th>
                            <th>MÁY IN HÓA ĐƠN</th>
                            <th>MẠNG</th>
                            <th>SẴN SÀNG</th>
                        </tr>
                        <?php
                        foreach ($result as $item) {
                            echo "<tr>";
                            echo "<td>$item->AtmId</td>";
                            echo "<td>".(empty($item->CardReader) ? "OK" : "Lỗi")."</td>";
                            echo "<td>".(empty($item->CashDispenser) ? "OK" : "Lỗi")."</td>";
                            echo "<td>".(empty($item->PinPad) ? "OK" : "Lỗi")."</td>";
                            echo "<td>".(empty($item->ReceiptPrinter) ? "OK" : "Lỗi")."</td>";
                            echo "<td>".(empty($item->NetDown) ? "OK" : "Lỗi")."</td>";
                            echo "<td>".(empty($item->Service) ? "OK" : "Không")."</td>";
                            echo "</tr>";
                        }
                        ?>
                    </table>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
</div>