<div class="row">
    <div class="col-md-12">
        <div class="card card-round">
            <div class="card-header">
                <div class="card-head-row card-tools-still-right">
                    <h4 class="card-title">Dokumen Permohonan Lesen Penjaja</h4>
                </div>
            </div>
            <div class="card-body">
                <div class="row">   
                    <div class="col-md-6">
                        @if(!is_null($doc_kad_pengenalan))
                            <h6>Salinan Kad Pengenalan</h6>
                            @if ($doc_kad_pengenalan->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kad_pengenalan->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kad_pengenalan->pivot->path]) }}" alt="Gambar Passport" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>     
                    <div class="col-md-6">
                        @if(!is_null($doc_gambar))
                            <h6>Gambar Berukuran Passport</h6>
                            @if ($doc_gambar->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_gambar->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_gambar->pivot->path]) }}" alt="Gambar Passport" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>
                    <div class="col-md-6">
                        @if(!is_null($doc_lokasi))
                            <h6>Gambar Lokasi / Pelan</h6>
                            @if ($doc_lokasi->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_lokasi->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_lokasi->pivot->path]) }}" alt="Gambar Lokasi" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>
                    <div class="col-md-6">
                        @if(!is_null($doc_kebenaran))
                            <h6>Surat kebenaran pemilik tanah / pemegang rezab /perjanjian yang sah</h6>
                            @if ($doc_kebenaran->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kebenaran->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kebenaran->pivot->path]) }}" alt="Surat Kebenaran" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>
                    <div class="col-md-6">
                        @if(!is_null($doc_kenderaan))
                            <h6>Gambar Kenderaan</h6>
                            @if ($doc_kenderaan->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kenderaan->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kenderaan->pivot->path]) }}" alt="Gambar Kenderaan" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>
                    <div class="col-md-6">
                        @if(!is_null($doc_kenderaan_geran))
                            <h6>Salinan Geran Kenderaan</h6>
                            @if ($doc_kenderaan_geran->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kenderaan_geran->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kenderaan_geran->pivot->path]) }}" alt="Gambar Kenderaan" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>
                    <div class="col-md-6">
                        @if(!is_null($doc_suntikan_ty2))
                            <h6>Salinan Sijil Suntikan TY2 (Pengendali makanan sahaja)</h6>
                            @if ($doc_suntikan_ty2->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_suntikan_ty2->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_suntikan_ty2->pivot->path]) }}" alt="Salinan Suntikan" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>
                    <div class="col-md-6">
                        @if(!is_null($doc_kursus_makanan))
                            <h6>Salinan Sijil Kursus Pengendalian Makanan</h6>
                            @if ($doc_kursus_makanan->pivot->jenis_dokumen === 'pdf')
                                <a href="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kursus_makanan->pivot->path]) }}" target="_blank"><i class="fa fa-file-pdf"></i></a>
                            @else
                                <img src="{{ route('dokumen.penjaja_view', [$permohonan?->id, $doc_kursus_makanan->pivot->path]) }}" alt="Salinan Sijil Kursus Pengendalian Makanan" style="max-width: 100px;">
                            @endif
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>