<style>
        .letter-header {
            text-align: center;
            font-family: 'Calibri', sans-serif;
            font-size: 52px;
            font-weight: bold;
        }
        .letter-subhead {
            font-family: Arial, sans-serif;
            font-size: 12px;
            text-align: center;
            margin-top: -10px;
            margin-bottom: 10px;
        }
        hr {
            border: none;
            border-top: 1px solid #000;
            margin: 20px 0;
        }
        .letter-body {
            font-family: Arial, sans-serif;
            font-size: 14px;
            line-height: 1.6;
        }
        .letter-subject {
            text-align: center;
            font-weight: bold;
            margin: 20px 0;
        }
        .letter-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            margin-top: 20px;
        }
        .letter-table th,
        .letter-table td {
            border: 1px solid #000;
            padding: 6px;
            text-align: center;
        }
        .letter-footer {
            margin-top: 30px;
            font-size: 14px;
        }
</style>

<div id="printArea">
<div style="font-family: Arial, sans-serif; padding: 20px;">
    <div class="letter-header">ABN INVESTMENTS</div>
    <div class="letter-subhead">
        Unit No.3, Kamar Building, 38 B, Cawasji Patel Street,<br/>
        Next to Akbarally’s Furniture, Fort, Mumbai – 400001
    </div>

    <hr>

    <div class="letter-body">
        <p>To,<br/>
        <strong><?= h($subbrokerpdfData[0]['subbroker_name']) ?></strong><br/>
             Pan No. <strong><?= ($subbrokerpdfData[0]['panno'] ) ? ($subbrokerpdfData[0]['panno'] ) : ''; ?>
        </p>

        <div class="letter-subject">
            Sub : Sub Brokerage on fixed deposit mobilized
        </div>

        <p>Dear Sir,</p>

        <p style="text-indent: 50px;">
            Please find enclosed Cheque for Sub Brokerage on fixed deposit mobilized by you as per below details.
        </p>

        <table class="letter-table">
            <thead>
                <tr>
                    <th>S.R. NO.</th>
                    <th>NAME</th>
                    <th>SUB BKG PAYABLE</th>
                    <th>TDS</th>
                    <th>NET AMT.</th>
                    <th>CHEQUE NO.</th>
                </tr>
            </thead>
            <tbody>
                <?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; ?>
            </tbody>
        </table>

        <div class="letter-footer">
            <p>Kindly acknowledge receipt of the above brokerage cheque.</p>
            <p>Assuring you of best services & good business relations.</p>
            <p>Thanking You,</p><br/><br/><p style="margin-top: 60px;"><strong>ABN INVESTMENTS</strong></p>
        </div>
    </div>
</div>
</div>