@if (is_array($details) && count($details) > 0)
    @php $currentKey = ''; @endphp
    @foreach ($details as $value)
        @foreach ($value as $key => $item)

            @if (!empty($item))
                <tr>
                    <td style="padding: 2px; width:25%;">
                        @if ($currentKey !== $key)
                            {{ formatLabel($key) }}
                        @endif
                        @php
                            if ($currentKey !== $key) {
                                $currentKey = $key;
                            }
                        @endphp
                    </td>
                    <td style="width:1%; padding: 2px; vertical-align: top;">:</td>
                    <td style="padding: 2px;">
                        @if (strpos(strtolower($key), 'tanggal') !== false)
                            {{ formatTanggalIndonesia($item) }}
                        @else
                            {{ $item }}
                            @if ($key == 'luas_bangunan' || $key == 'luas_tanah')
                                <span>m²</span>
                            @endif
                        @endif
                    </td>
                </tr>
            @endif
        @endforeach
    @endforeach
@endif
