コード例 #1
0
ファイル: peers.blade.php プロジェクト: hendrilara/kemenpan
                                            <div class="tab-pane @if($j == 0)active@endif" id="type{{ $rowData['type']['id'] }}">
                                                <table class="table table-bordered table-striped table-advance table-hover">
                                                    <thead>
                                                    <tr>
                                                        <th>Kode</th>
                                                        <th>Judul</th>
                                                        <th>Evidence</th>
                                                        <th>Level</th>
                                                        <th>Aksi</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    @if(count($rowData['profile']) > 0)
                                                        @foreach($rowData['profile'] as $rowProfile)
                                                            <?php 
$answer = \Meniqa\Competency\Models\CompetencyTest::checkTest($rowProfile->competency_dictionary_id, $key['nip'], Auth::user()->nip);
?>
                                                            <tr>
                                                                <td>{{ $rowProfile->code }}</td>
                                                                <td>{{ $rowProfile->title }}</td>
                                                                <td>@if(!is_null($answer)){{ $answer->evidence }}@else -- @endif</td>
                                                                <td>@if(!is_null($answer)){{ $answer->dictionarylevel->title }}@else -- @endif</td>
                                                                <td>
                                                                    @if(is_null($answer))
                                                                        <a href="{{ url('competency/test/prs/update/'.$rowProfile->competency_dictionary_id.'/'.$key['nip']) }}" class="btn btn-primary"><i class="fa fa-edit"></i> Isi Data</a>
                                                                    @endif
                                                                </td>
                                                            </tr>
                                                        @endforeach
                                                    @endif
                                                    </tbody>