<table border="1" cellspacing="0" cellpadding="5">
    <!-- Header Section -->
    <tr>
        <td colspan="6" style="text-align: center; font-size: 22px; font-weight: bold;">ABN INVESTMENTS</td>
    </tr>
    <tr>
        <td colspan="6" style="text-align: center; font-size: 12px;">
            Unit No.3, Kamar Building, 38 B, Cawasji Patel Street, <br/>
            Next to Akbarally’s Furniture, Fort, Mumbai – 400001
        </td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
        <td colspan="6">
            To,<br/>
            <strong><?= h($subbrokerpdfData[0]['subbroker_name']) ?></strong><br/>
             Pan No. <strong><?= ($subbrokerpdfData[0]['panno'] ) ? ($subbrokerpdfData[0]['panno'] ) : ''; ?>
        </td>
    </tr>
    <tr>
        <td colspan="6" style="text-align: center; font-weight: bold;">
            Sub: Sub Brokerage on fixed deposit mobilized
        </td>
    </tr>
    <tr>
        <td colspan="6">
            Dear Sir,<br/>
            <div style="text-indent: 50px;">
                Please find enclosed Cheque for Sub Brokerage on fixed deposit mobilized by you as per below details.
            </div>
        </td>
    </tr>

    <tr style="font-weight: bold;">
        <td>S.R. NO.</td>
        <td>NAME</td>
        <td>SUB BKG PAYABLE</td>
        <td>TDS</td>
        <td>NET AMT.</td>
        <td>CHEQUE NO.</td>
    </tr>

    <?php foreach ($subbrokerpdfData as $i => $data): ?>
    <tr>
        <td><?= $i + 1 ?></td>
        <td><?= h($data['subbroker_name']) ?></td>
        <td><?= number_format($data['total_sub_brokerage_amount'], 2) ?></td>
        <td><?= number_format($data['total_tds_amount'], 2) ?></td>
        <td><?= number_format($data['total_net_amount'], 2) ?></td>
        <td><?= h($data['chequeno']) ?></td>
    </tr>
    <?php endforeach; ?>

    <!-- Footer Section -->
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
        <td colspan="6">
            Kindly acknowledge receipt of the above brokerage cheque.<br/>
            Assuring you of best services & good business relations.<br/>
            Thanking You,<br/><br/><br/>
            <strong>ABN INVESTMENTS</strong>
        </td>
    </tr>
</table>
