<small>
<table id="example1" border="1" class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>No</th>
                            <th>Mr</th>
                            <th>Case ID</th>
                            <th>Invoice ID</th>
                            <th>Patient</th>
                            <th>From</th>
                            <th>Amount</th>
                            <th>Bank</th>
                            <th>Card No</th>
                            <th>UserCread</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $no =1; 
                        foreach($kasir as $d) :
                         ?>
                        <tr>
                            <td><?= $no++; ?></td>
                            <td><?= $d['PatientCode']; ?></td>
                            <td><?= $d['Case ID']; ?></td>
                            <td><?= $d['Invoice ID']; ?></td>
                            <td><?= $d['PatientName']; ?></td>
                            <td><?= $d['PaidBy']; ?></td>
                            <td><?= $d['AmountPaid']; ?></td>
                            <td><?= $d['Bank']; ?></td>
                            <td><?= $d['CardNo']; ?></td>
                            <td><?= $d['UserCreated']; ?></td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
                </small>