Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sipeka
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
sipeka
Commits
d01b8225
Commit
d01b8225
authored
May 16, 2024
by
Siti Aisah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tampilan gagal update nik kosong
parent
48464d45
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
15 deletions
+37
-15
app/Http/Controllers/Admin/TransaksiController.php
+18
-15
resources/views/transaksi-gagal.blade.php
+19
-0
No files found.
app/Http/Controllers/Admin/TransaksiController.php
View file @
d01b8225
...
...
@@ -98,26 +98,29 @@ public function store(Request $request){
$reviewer
=
DB
::
table
(
'bantuan_penelaah'
)
->
where
(
'id_pengajuan'
,
$request
->
idpengajuan
)
->
get
();
foreach
(
$reviewer
as
$r
){
$isdm
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
where
(
'noktp'
,
$r
->
nik
)
->
select
(
'namalengkap'
,
'nip'
)
->
first
();
// if(!empty($isdm)){
$rev
[
$r
->
nik
]
=
$r
->
nik
;
}
$isdm
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
whereIn
(
'noktp'
,
$rev
)
->
select
(
'namalengkap'
,
'nip'
,
'noktp'
)
->
get
();
if
(
count
(
$isdm
)
>=
2
){
foreach
(
$isdm
as
$sdm
){
$saku
=
[
'id_pengajuan'
=>
$hasil
->
id
,
'nik'
=>
$r
->
nik
,
'nama'
=>
$i
sdm
->
namalengkap
,
'nip'
=>
$i
sdm
->
nip
'nik'
=>
$sdm
->
noktp
,
'nama'
=>
$
sdm
->
namalengkap
,
'nip'
=>
$
sdm
->
nip
];
// } 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
);
}
else
{
foreach
(
$isdm
as
$sdm
){
$data
[
'kosong'
]
=
DB
::
table
(
'bantuan_penelaah'
)
->
where
(
'id_pengajuan'
,
$request
->
idpengajuan
)
->
where
(
'nik'
,
'!='
,
$sdm
->
noktp
)
->
first
();
}
return
view
(
'transaksi-gagal'
,
$data
);
}
DB
::
commit
();
...
...
@@ -130,7 +133,7 @@ public function store(Request $request){
DB
::
rollBack
();
return
Redirect
::
route
(
'transaksi.index'
)
->
with
(
'error'
,
'
NIK tidak terdaftar, silakan update di ISDM
'
);
->
with
(
'error'
,
'
Data Kategori gagal diupdate
'
);
}
}
}
resources/views/transaksi-gagal.blade.php
0 → 100644
View file @
d01b8225
@
extends
(
'layouts.master'
)
@
section
(
'content'
)
<
div
class
="
row
">
<div class="
col
-
md
-
12
">
<div class="
card
">
<div class="
card
-
header
">
<h3 class="
card
-
title
">Notifikasi</h3>
</div>
<div class="
card
-
body
">
<h4>{{
$kosong->penelaah
}} gagal update karena:<br>
NIK {{
$kosong->nik
}} belum terdaftar di ISDM. Silakan update ke Kepegawaian.</h4><br>
<a href="
{{
route
(
'transaksi.index'
)
}}
">Kembali</a>
</div>
</div>
</div>
</div>
@push('js')
@endpush
@stop
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment