<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Cetak Customer</title>
</head>
<body onload="window.print()">


	<h1 align="center">Cetak Customer</h1>
	<hr>

	<table border="1" width="100%" align="center" style="border-collapse: collapse;">
          <thead>
            <tr>
              <th>No</th>
              <th>Username</th>
              <th>Nama</th>
              <th>WA</th>
            </tr>
          </thead>
          <tbody>
            <?php
            $no = 1;
            foreach ($user as $data) {
            ?>
            <tr>
              <td><?php echo $no; ?></td>
              <td><?php echo $data->username; ?></td>
              <td><?php echo $data->nama; ?></td>
              <td><?php echo $data->wa; ?></td>
            </tr>
            <?php
            $no++;
            }
             ?>
          </tbody>
        </table>

        <table align="right" style="margin-top: 20px;">
        	<tr>
        		<td align="center"><?= date('d-m-Y') ?></td>
        	</tr>
        	<tr>
        		<td height="40px"></td>
        	</tr>
        	<tr>
        		<td align="center">.....................</td>
        	</tr>
        </table>

</body>
</html>