Commit 48464d45 by Triyah Fatmawati

Merge branch 'master' of http://git.unesa.ac.id/aisah/sipeka

parents 2c948ecf 8fbeaac1
......@@ -99,7 +99,7 @@ public function store(Request $request){
foreach($reviewer as $r){
$isdm = DB::connection('isdm')->table('v_detil_pegawai')->where('noktp',$r->nik)->select('namalengkap','nip')->first();
if(!empty($isdm)){
// if(!empty($isdm)){
$saku = [
'id_pengajuan' => $hasil->id,
......@@ -108,14 +108,14 @@ public function store(Request $request){
'nip' => $isdm->nip
];
} else {
$saku = [
'id_pengajuan' => $hasil->id,
'nik' => $r->nik,
'nama' => $r->penelaah,
'nip' => 'NIK belum terdaftar di ISDM. Silakan update ke Kepegawaian.'
];
}
// } else {
// $saku = [
// 'id_pengajuan' => $hasil->id,
// 'nik' => $r->nik,
// 'nama' => $r->penelaah,
// 'nip' => 'NIK belum terdaftar di ISDM. Silakan update ke Kepegawaian.'
// ];
// }
Penelaah::query()->create($saku);
}
......@@ -130,7 +130,7 @@ public function store(Request $request){
DB::rollBack();
return Redirect::route('transaksi.index')
->with('error', 'Data kategori gagal diupdate');
->with('error', 'NIK tidak terdaftar, silakan update di ISDM');
}
}
}
......@@ -52,7 +52,11 @@
<td style="text-align: left">{{ $pengajuan->judul }}</td>
<td style="text-align: left">{{ $pengajuan->tahun }}</td>
<td style="text-align: left">{{ $pengajuan->klasifikasi }}</td>
<td style="text-align: left">FILE EC</td>
<td style="text-align: left">
@if(!empty($pengajuan->file_ec))
<strong><a href="https://sipeka.unesa.ac.id/sipeka/file/{!!$pengajuan->file_ec!!}" target="_blank" class="btn btn-success btn-md">Lihat</a></strong>
@endif
</td>
@php
$kategori = DB::table('ms_kategori')->where('id',$pengajuan->id_kategori)->first();
@endphp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment