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
dfe1a845
Commit
dfe1a845
authored
May 07, 2024
by
Siti Aisah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tarik saku
parent
b702422a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
16 deletions
+84
-16
app/Http/Controllers/Admin/SakuController.php
+3
-5
app/Http/Controllers/Admin/TransaksiController.php
+12
-11
resources/views/saku/index.blade.php
+69
-0
No files found.
app/Http/Controllers/Admin/SakuController.php
View file @
dfe1a845
...
...
@@ -16,14 +16,12 @@ class SakuController extends Controller
{
public
function
index
()
{
$pengusul
=
DB
::
table
(
'bantuan_pengusul'
)
->
get
();
$kategori
=
DB
::
table
(
'ms_kategori'
)
->
orderBy
(
'kode_kategori'
,
'asc'
)
->
get
();
$penelaah
=
DB
::
table
(
'tr_penelaah'
)
->
get
();
$data
=
[
'pengusul'
=>
$pengusul
,
'kategori'
=>
$kategori
'penelaah'
=>
$penelaah
];
return
view
(
'
transaksi
.index'
,
$data
);
return
view
(
'
saku
.index'
,
$data
);
}
}
app/Http/Controllers/Admin/TransaksiController.php
View file @
dfe1a845
...
...
@@ -61,22 +61,23 @@ public function store(Request $request){
Pengajuan
::
query
()
->
create
(
$transaksi
);
$hasil
=
DB
::
table
(
'tr_pengajuan'
)
->
where
(
'id_pengajuan'
,
$request
->
idpengajuan
)
->
ge
t
();
$hasil
=
DB
::
table
(
'tr_pengajuan'
)
->
where
(
'id_pengajuan'
,
$request
->
idpengajuan
)
->
firs
t
();
$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
();
$saku
=
[
'id_pengajuan'
=>
$hasil
->
id
,
'nik'
=>
$r
->
nik
,
'nama'
=>
$isdm
->
namalengkap
,
'nip'
=>
$isdm
->
nip
];
$isdm
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
where
(
'noktp'
,
$r
->
nik
)
->
select
(
'namalengkap'
,
'nip'
)
->
first
();
$saku
=
[
'id_pengajuan'
=>
$hasil
->
id
,
'nik'
=>
$r
->
nik
,
'nama'
=>
$isdm
->
namalengkap
,
'nip'
=>
$isdm
->
nip
];
Penelaah
::
query
()
->
create
(
$saku
);
}
Penelaah
::
query
()
->
create
(
$saku
);
}
DB
::
commit
();
...
...
resources/views/saku/index.blade.php
0 → 100644
View file @
dfe1a845
@
extends
(
'layouts.master'
)
@
section
(
'content'
)
<
div
class
="
row
">
<div class="
col
-
md
-
12
">
<div class="
card
">
<div class="
card
-
header
">
<h4 class="
card
-
title
">Daftar Reviewer</h4>
</div>
<div class="
card
-
body
">
<div class="
card
-
text
">
<div class="
row
">
<div class="
col
-
md
-
8
">
{{-- @livewire('admin.masters.registrasi.add-registrasi-component') --}}
</div>
<div class="
col
-
md
-
4
text
-
right
">
{{-- <div class="
row
">
<label class="
col
-
sm
-
3
col
-
form
-
label
"></label>
<label class="
col
-
sm
-
3
col
-
form
-
label
">Cari : </label>
<div class="
col
-
sm
-
6
">
<input type="
text
" class="
form
-
control
align
-
right
" placeholder="
Search
" wire:model="
keyword
">
</div>
</div> --}}
</div>
</div>
</div>
</div>
<div class="
table
-
responsive
mb
-
4
">
<table id="
zero
-
config
" class="
table
table
-
hover
" style="
width
:
100
%
">
<thead>
<tr>
<th>No. Pengajuan</th>
<th style="
text
-
align
:
left
">File SK</th>
<th style="
text
-
align
:
left
">Nama</th>
<th style="
text
-
align
:
left
">Judul</th>
<th style="
text
-
align
:
left
">Tahun</th>
<th style="
text
-
align
:
left
">Klasifikasi</th>
<th style="
text
-
align
:
left
">File EC</th>
<th style="
text
-
align
:
left
">Kategori</th>
</tr>
</thead>
<tbody>
@foreach(
$penelaah
as
$item
)
@php
$pengajuan
= DB::table('tr_pengajuan')->where('id',
$item->id_pengajuan
)->first();
@endphp
<tr>
<td>{{
$pengajuan->id_pengajuan
}}</td>
<td style="
text
-
align
:
left
">SURAT</td>
<td style="
text
-
align
:
left
">{{
$item->nama
}}</td>
<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>
@php
$kategori
= DB::table('ms_kategori')->where('id',
$pengajuan->id_kategori
)->first();
@endphp
<td style="
text
-
align
:
left
">{{
$kategori->nama_kategori
}}</td>
</tr>
@endforeach
</tbody>
</table>
</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