コード例 #1
0
 public function getDelete($id)
 {
     $data = CompetencyDictionaryLevel::find($id);
     $dictionaryId = $data->dictionary_id;
     $data->delete();
     return Redirect::to('admin/competency/level/dictionary' . $dictionaryId)->with('message', 'hapus data berhasil');
 }
コード例 #2
0
ファイル: type.blade.php プロジェクト: hendrilara/kemenpan
                    <textarea class="form-control ckeditor" name="evidence" rows="2" required min="10   " title="Wajib Di Isi"></textarea>

                </li>
                @endif

                <li class="list-group-item">

                    <input type="hidden" name="kompetensi" value="{{ $rowProfile->competency_dictionary_id }}">

                    <h3>Pilihan Cakupan Kompetensi <img alt src=" {{ URL::asset('img/help.png') }}" data-original-title="Pilih cakupan kompetensi yang sesuai dengan bukti perilaku, kemudian klik tombol di sebelah kiri" data-placement="right" data-trigger="hover" class="popovers"/></h3>

                    <table class="table table-bordered">
                        <tbody>
                        <?php 
$levels = \Meniqa\Competency\Models\CompetencyDictionaryLevel::where('dictionary_id', '=', $rowProfile->competency_dictionary_id)->orderByRaw("RAND()")->get();
//$array = iterator_to_array($optionLevel[0]->leveldimensi,true); shuffle($array);
?>
                        @foreach($levels as $level)
                            <tr>
                                <td rowspan="3">
                                    <input type="radio" name="level" value="{{ $level->id }}" required title="Wajib Di Isi">
                                </td>
                                <td>definisi</td>
                                <td>{{ $level->title }}</td>
                            </tr>
                            <tr>
                                <td>deskripsi</td>
                                <td>{{ $level->description }}</td>
                            </tr>