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
ecaad90b
Commit
ecaad90b
authored
May 17, 2024
by
Siti Aisah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix create penelaah
parent
d01b8225
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
app/Http/Controllers/Admin/TransaksiController.php
+11
-7
No files found.
app/Http/Controllers/Admin/TransaksiController.php
View file @
ecaad90b
...
@@ -101,22 +101,25 @@ public function store(Request $request){
...
@@ -101,22 +101,25 @@ public function store(Request $request){
$rev
[
$r
->
nik
]
=
$r
->
nik
;
$rev
[
$r
->
nik
]
=
$r
->
nik
;
}
}
$isdm
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
whereIn
(
'noktp'
,
$rev
)
->
select
(
'namalengkap'
,
'nip'
,
'noktp'
)
->
get
();
$count
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
whereIn
(
'noktp'
,
$rev
)
->
select
(
'namalengkap'
,
'nip'
,
'noktp'
)
->
get
();
if
(
count
(
$count
)
>=
2
){
foreach
(
$count
as
$sdm
){
$isdm
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
where
(
'noktp'
,
$sdm
->
noktp
)
->
select
(
'namalengkap'
,
'nip'
)
->
first
();
if
(
count
(
$isdm
)
>=
2
){
foreach
(
$isdm
as
$sdm
){
$saku
=
[
$saku
=
[
'id_pengajuan'
=>
$hasil
->
id
,
'id_pengajuan'
=>
$hasil
->
id
,
'nik'
=>
$sdm
->
noktp
,
'nik'
=>
$sdm
->
noktp
,
'nama'
=>
$sdm
->
namalengkap
,
'nama'
=>
$
i
sdm
->
namalengkap
,
'nip'
=>
$sdm
->
nip
'nip'
=>
$
i
sdm
->
nip
];
];
}
Penelaah
::
query
()
->
create
(
$saku
);
Penelaah
::
query
()
->
create
(
$saku
);
}
}
else
{
}
else
{
foreach
(
$
isdm
as
$sdm
){
foreach
(
$
count
as
$sdm
){
$data
[
'kosong'
]
=
DB
::
table
(
'bantuan_penelaah'
)
->
where
(
'id_pengajuan'
,
$request
->
idpengajuan
)
->
where
(
'nik'
,
'!='
,
$sdm
->
noktp
)
->
first
();
$data
[
'kosong'
]
=
DB
::
table
(
'bantuan_penelaah'
)
->
where
(
'id_pengajuan'
,
$request
->
idpengajuan
)
->
where
(
'nik'
,
'!='
,
$sdm
->
noktp
)
->
first
();
}
}
...
@@ -129,6 +132,7 @@ public function store(Request $request){
...
@@ -129,6 +132,7 @@ public function store(Request $request){
->
with
(
'success'
,
'Data kategori berhasil diupdate'
);
->
with
(
'success'
,
'Data kategori berhasil diupdate'
);
}
}
catch
(
Exception
$e
){
catch
(
Exception
$e
){
dd
(
$e
);
Log
::
error
(
$e
);
Log
::
error
(
$e
);
DB
::
rollBack
();
DB
::
rollBack
();
...
...
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