<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>Laporan Dokumen</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="{{ asset('css/report.css') }}" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="{{ favico_desa() }}" />
    <!-- TODO: Pindahkan ke external css -->
    <style>
        .textx {
            mso-number-format: "\@";
        }

        td,
        th {
            font-size: 6.5pt;
        }
    </style>
</head>

<body>
    <div id="container">
        <div id="body">
            <div class="header" align="center">
                <label align="left">{{ get_identitas() }}</label>
                <h3> DAFTAR {{ strtoupper($kategori) }} {{ empty($tahun) ? '' : 'TAHUN ' . $tahun }}</h3>
                <br>
            </div>
            <table class="border thick">
                <thead>
                    <tr class="border thick">
                        <th>No</th>
                        <th colspan="3">Judul / Tentang</th>
                        @if ($kat == 1)
                            <th colspan="2">Tahun</th>
                        @elseif ($kat == 2)
                            <th>Nomor Dan Tanggal Keputusan</th>
                            <th>Uraian Singkat</th>
                        @elseif ($kat == 3)
                            <th>Nomor Dan Tanggal Ditetapkan</th>
                            <th>Uraian Singkat</th>
                        @endif
                    </tr>
                </thead>
                <tbody>
                    @foreach ($main as $data)
                        <tr>
                            <td>{{ $data['no'] }}</td>
                            <td colspan="3">{{ $data['nama'] }}</td>
                            @if ($kat == 1)
                                <td colspan="2" align="center">{{ $data['tahun'] }}</td>
                            @elseif ($kat == 2)
                                <td>{{ $data['attr']['no_kep_kades'] . ' / ' . $data['attr']['tgl_kep_kades'] }}</td>
                                <td>{{ $data['attr']['uraian'] }}</td>
                            @elseif ($kat == 3)
                                <td>{{ $data['attr']['no_ditetapkan'] . ' / ' . $data['attr']['tgl_ditetapkan'] }}</td>
                                <td>{{ $data['attr']['uraian'] }}</td>
                            @endif
                        </tr>
                    @endforeach
                </tbody>
            </table>
            @include('admin.layouts.components.blok_ttd_pamong', ['total_col' => 6, 'spasi_kiri' => 1, 'spasi_tengah' => 2])
        </div>
    </div>
</body>

</html>
