<table width="100%" style="margin-bottom: 10px;">
    <tr>
        <td width="20%" style="text-align: center;">
            <img src="{{ public_path('img/ptbss-removebg-preview.png') }}" style="height: 70px;">
        </td>
        <td style="text-align: left;">
            <h2 style="margin: 0;">PT. BERKAH SEMANGAT SENTOSA</h2>
            <h4 style="margin: 0;">Data Penerimaan - {{ $bulanIndonesia }} {{ $year }}</h4>
        </td>
    </tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="4">
    <thead>
        
        <tr>
            <th rowspan="2">No</th>
            <th rowspan="2">Tanggal</th>
            <th colspan="2" style="text-align: center;">Debit</th>
            <th colspan="2" style="text-align: center;">Kredit</th>
            <th rowspan="2">Keterangan</th>
        </tr>
        <tr>
            <th>Nama&nbsp;Akun</th>
            <th>Jumlah</th>
            <th>Nama&nbsp;Akun</th>
            <th>Jumlah</th>
            
        </tr>
    </thead>
    <tbody>
        @foreach ($data as $row)
        <tr>
            <td>{{ $loop->iteration }}</td>
            <td>{{ \Carbon\Carbon::parse($row->tanggal)->format('d/m/Y') }}</td>
            <td>{{ $row->nama_akun_debet }}</td>
            <td align="right">{{ number_format($row->debet) }}</td>
            <td>{{ $row->nama_akun_kredit }}</td>
            <td align="right">{{ number_format($row->kredit) }}</td>
            <td>{{ $row->keterangan }}</td>
        </tr>
        @endforeach
    </tbody>
</table>
