<div class="card">
    <div class="card-header bg-white header-elements-inline">
        <h6 class="card-title">Informasi Penerbit</h6>
    </div>
    <table class="table">
        <tbody>
            <tr>
                <th class="text-nowrap" scope="row">Penerbit</th>
                <td> {{$profile_penerbit->namalengkap}} </td>
            </tr>
            <tr>
                <th class="text-nowrap" scope="row">Email</th>
                <td> {{$profile_penerbit->email}}</td>
            </tr>
            <tr>
                <th class="text-nowrap" scope="row">Telepon</th>
                <td> {{$profile_penerbit->telepon}}</td>
            </tr>
        </tbody>
    </table>
</div>
<div class="card">
    <div class="card-header bg-white header-elements-inline">
        <h6 class="card-title">Data Asesor</h6>
    </div>
    <table class="table">
        <tbody>
            <tr>
                <th class="text-nowrap" scope="row">Nama </th>
                <td>Hasil Penilaian</td>
            </tr>
            @foreach($listAkreditasiASessor as $a)
            <tr>
                <th class="text-nowrap" scope="row">{{$a->namalengkap}}</th>
                <td> {{ $a->rate }} %</td>
            </tr>
            @endforeach
        </tbody>
    </table>
</div>

<hr>

<div class="card" style="margin-top: 20px;">
    <div class="row width-100">
        <table class="table table-bordered table-full">
            <thead>
                <tr>
                    <th width="0%" hidden class="text-center">No</th>
                    <th width="5%" class="text-center">No</th>
                    <th width="25%">Indikator Asesmen</th>
                    <th width="15%">Memenuhi Penilaian</th>
                    <th width="30%">Catatan</th>

                </tr>
            </thead>
            <tbody>
                @php $no = ""; $rowspan=""; $number=""; $grup=""; $group_indikator=""; $numberx=1; @endphp
                @foreach($formPenerbit as $i)

                @foreach($i['detail'] as $d)

                @if($no != $i['no'])
                @php $rowspan = count($i['detail']);@endphp
                @else
                @php $rowspan= 0; @endphp
                @endif

                <tr>
                    <input type="hidden" name="item_id[]" value="{{$d->item_id}}">
                    @if($rowspan > 0)
                    <td width="0%" rowspan="{{$rowspan}}" valign="top" class="text-left" style="float: left;">{{ $numberx }}</td>
                    @php $numberx++; @endphp
                    @endif
                    <td width="5%" class="text-center"> @if($group_indikator != $d->group_indikator) {{$d->group_indikator}} @endif</td>
                    <td width="25%">@if(!empty($d->no_indikator)) {{$d->no_indikator}}) @endif {{$d->indikator_asesmen}}</td>
                    <td width="15%">
                        {{$d->memenuhi_penilaian}}
                    </td>
                    <td width="30%">
                        <textarea rows="3" class="form-control" name="catatan[]" readonly>{{$d->catatan}}</textarea>
                    </td>
                </tr>

                @php $no = $i['no']; $number=""; $group_indikator=$d->group_indikator; @endphp
                @endforeach
                @endforeach
            </tbody>
        </table>
    </div>
</div>
