<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 Pembelian - {{ $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 rowspan="2">No.&nbsp;Faktur</th>
            <th rowspan="2">Keterangan</th>
            <th rowspan="2">Pos&nbsp;Ref</th>
            <th colspan="4" style="text-align: center;">Debit</th>
            <th colspan="1" style="text-align: center;">Kredit</th>
            

        </tr>
        <tr>
            <th>Biaya&nbsp;Angkut</th>
            <th>PPN&nbsp;Masukan</th>
            <th>Pembelian</th>
            <th>Discount</th>
            <th>Hutang&nbsp;Dagang</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->no_faktur }}</td>
            <td>{{ $row->keterangan }}</td>
            <td>{{ $row->ref }}</td>
            <td align="right">{{ number_format($row->biaya_angkut) }}</td>
            <td align="right">{{ number_format($row->ppn_masukan) }}</td>
            <td align="right">{{ number_format($row->persediaan_barang) }}</td>
            <td align="right">{{ number_format($row->discount).' %' }}</td>
            <td align="right">{{ number_format($row->hutang_dagang) }}</td>
        </tr>
        @endforeach
    </tbody>
</table>
