コード例 #1
0
ファイル: peers.blade.php プロジェクト: hendrilara/kemenpan
                            <td>Nomor</td>
                            <td>Nama</td>
                            <td colspan="6">Pilihan</td>
                        </tr>
                        </thead>
                        <tbody>
                        <?php 
$i = 1;
?>
                        @foreach($users as $user)
                            <tr>
                                <td>{{ $i++ }}</td>
                                <td> {{ $user->pegawai->nama_cetak }} </td>
                                <?php 
//mencari value dari jawaban sebelum nya
$answer = \Meniqa\Competency\Models\CompetencyTest::where('competency_id', '=', $competencyId)->where('rater_id', '=', Auth::user()->nip)->where('user_id', '=', $user->pegawai->nip)->where('competency_dictionary_id', '=', $profiles->competencyDictionary->id)->first();
?>
                                @foreach($profiles->competency_dictionary->level as $level)
                                    <td><input type="radio" name="level[{{ $user->pegawai->nip }}]" value="{{ $level->value }}" required  @if((!is_null($answer)) && (!is_null($answer->level)) && ($answer->level == $level->value)) checked="checked" @endif /> {{ $level->id }}</td>
                                @endforeach
                            </tr>
                        @endforeach
                        </tbody>
                    </table>

                </li>

                <li class="list-group-item">
                    <button type="submit" class="btn btn-primary"> Selanjutnya </button>
                </li>
コード例 #2
0
ファイル: check.blade.php プロジェクト: hendrilara/kemenpan
                <div class="tab-pane" id="hard">
                    <table class="table table-bordered table-responsive table-striped">
                        <thead>
                        <tr>
                            <th>Kode Kompetensi</th>
                            <th>Nama Kompetensi</th>
                            <th>Level</th>
                            <th>Evidence</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($hardProfiles as $profile)
                        <tr>
                            <th><a href="{{ url('competency/dictionary/detail/'.$profile->competency_dictionary->id.'') }}">{{ $profile->competency_dictionary->code }}</a></th>
                            <th>{{ $profile->competency_dictionary->title }}</th>
                            <?php 
$test = \Meniqa\Competency\Models\CompetencyTest::where('user_id', '=', $userId)->where('rater_id', '=', $userId)->where('competency_dictionary_id', '=', $profile->competency_dictionary->id)->first();
?>
                            <th>@if(is_null($test)) - @else {{ $test->level }}@endif</th>
                            <th>@if(is_null($test)) - @else {{ $test->evidence }}@endif</th>
                        </tr>
                        @endforeach
                        </tbody>
                    </table>
                </div>
            </div>

        </div>
    </section>
</div>
@stop