Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpmw
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
Alfiro Pratama
simpmw
Commits
aa98826a
Commit
aa98826a
authored
Mar 11, 2026
by
Alfiro Pratama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix value data
parent
0dd061db
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
26 additions
and
16 deletions
+26
-16
app/Http/Controllers/Dosen/KelompokController.php
+2
-2
app/Http/Controllers/Dosen/MonevController.php
+1
-1
app/Http/Controllers/Mahasiswa/KelompokController.php
+7
-3
app/Http/Controllers/Mahasiswa/MonevController.php
+1
-1
app/Http/Controllers/Mahasiswa/ProposalController.php
+1
-1
app/Http/Controllers/Operator/DaftarProposalController.php
+2
-2
app/Http/Controllers/Operator/SelectController.php
+1
-1
app/Models/Kelompok.php
+6
-0
resources/views/backend/dosen/kelompok/index.blade.php
+2
-2
resources/views/backend/mahasiswa/kelompok/index.blade.php
+2
-2
resources/views/backend/mahasiswa/kelompok/modalkel.blade.php
+1
-1
No files found.
app/Http/Controllers/Dosen/KelompokController.php
View file @
aa98826a
...
...
@@ -27,11 +27,11 @@ class KelompokController extends Controller
$title
=
'Daftar Kelompok'
;
$bio
=
auth
()
->
user
()
->
rBiodata
;
$getDosen
=
GetDataApiController
::
getDosen
();
// $periode = Periode::where('status',
1
)->first();
// $periode = Periode::where('status',
'1'
)->first();
$periode
=
Periode
::
query
()
->
orderBy
(
'nama'
,
'ASC'
)
->
get
();
$year
=
!
is_null
(
$request
->
year
)
?
$request
->
year
:
now
()
->
year
;
$kelompok
=
Kelompok
::
with
([
'rAnggota'
])
$kelompok
=
Kelompok
::
with
([
'r
Ketua'
,
'r
Anggota'
])
// ->where('nidn_dosen', $bio->noidentitas)
// ->when($bio->noidentitas !== null, function ($query) use ($bio) {
// return $query->where('nidn_dosen', $bio->noidentitas)
...
...
app/Http/Controllers/Dosen/MonevController.php
View file @
aa98826a
...
...
@@ -21,7 +21,7 @@ class MonevController extends Controller
$nidn
=
$bio
->
noidentitas
;
$periode
=
Periode
::
query
()
->
get
();
$year
=
!
is_null
(
$request
->
year
)
?
$request
->
year
:
now
()
->
year
;
$jadwal
=
JadwalKegiatan
::
where
(
'periode_id'
,
$periode
->
where
(
'status'
,
1
)
->
first
()
->
periode_id
)
$jadwal
=
JadwalKegiatan
::
where
(
'periode_id'
,
$periode
->
where
(
'status'
,
'1'
)
->
first
()
->
periode_id
)
->
where
(
'nama'
,
'Monev Internal '
.
$id
)
->
first
();
$title
=
'Monev Internal '
.
$id
;
...
...
app/Http/Controllers/Mahasiswa/KelompokController.php
View file @
aa98826a
...
...
@@ -33,7 +33,7 @@ class KelompokController extends Controller
$periode_aktif
=
Periode
::
where
(
'status'
,
'1'
)
->
first
();
$year
=
!
is_null
(
$request
->
year
)
?
$request
->
year
:
now
()
->
year
;
$kelompok
=
Kelompok
::
with
([
'rAnggota'
])
$kelompok
=
Kelompok
::
with
([
'r
Ketua'
,
'r
Anggota'
])
->
whereHas
(
'rAnggota'
,
function
(
$query
)
use
(
$nim
){
$query
->
where
(
'nim'
,
$nim
);
})
...
...
@@ -41,7 +41,11 @@ class KelompokController extends Controller
->
orderBy
(
'kode'
)
->
get
();
$cekKel
=
$kelompok
->
where
(
'created_user'
,
auth
()
->
user
()
->
id
)
->
where
(
'periode_id'
,
$periode_aktif
->
periode_id
)
->
whereIn
(
'status'
,
[
0
,
1
])
->
count
();
// $cekKel = $kelompok->where('created_user', auth()->user()->id)->where('periode_id', $periode_aktif->periode_id)->whereIn('status', [0,1])->count();
$cekKel
=
$kelompok
->
where
(
'created_user'
,
auth
()
->
user
()
->
id
)
->
where
(
'periode_id'
,
$periode_aktif
->
periode_id
)
->
whereRaw
(
"TRIM(status) IN ('0','1')"
)
->
count
();
// $getMhs = GetDataApiController::getAccount(20030244001);
// dd($getMhs);
...
...
@@ -90,7 +94,7 @@ class KelompokController extends Controller
Session
::
put
(
'ss_kelompokid'
,
$kelompok_id
);
$title
=
'Tambah Kelompok Mahasiswa'
;
$kelompok
=
Kelompok
::
with
(
'rAnggota'
)
->
where
(
'kelompok_id'
,
$kelompok_id
)
->
first
();
$kelompok
=
Kelompok
::
with
(
[
'rKetua'
,
'rAnggota'
]
)
->
where
(
'kelompok_id'
,
$kelompok_id
)
->
first
();
$periode
=
Periode
::
where
(
'status'
,
'1'
)
->
first
();
$getDosen
=
GetDataApiController
::
getDosen
();
...
...
app/Http/Controllers/Mahasiswa/MonevController.php
View file @
aa98826a
...
...
@@ -31,7 +31,7 @@ class MonevController extends Controller
$nim
=
$bio
->
noidentitas
;
$periode
=
Periode
::
query
()
->
get
();
$year
=
!
is_null
(
$request
->
year
)
?
$request
->
year
:
now
()
->
year
;
$jadwal
=
JadwalKegiatan
::
where
(
'periode_id'
,
$periode
->
where
(
'status'
,
1
)
->
first
()
->
periode_id
)
$jadwal
=
JadwalKegiatan
::
where
(
'periode_id'
,
$periode
->
where
(
'status'
,
'1'
)
->
first
()
->
periode_id
)
->
where
(
'nama'
,
'Monev Internal '
.
$id
)
->
first
();
// $jadwal = now();
...
...
app/Http/Controllers/Mahasiswa/ProposalController.php
View file @
aa98826a
...
...
@@ -80,7 +80,7 @@ class ProposalController extends Controller
->
where
(
'periode_id'
,
$periode
->
periode_id
)
->
first
();
$jadwal
=
JadwalKegiatan
::
where
(
'periode_id'
,
$periode
->
where
(
'status'
,
1
)
->
first
()
->
periode_id
)
$jadwal
=
JadwalKegiatan
::
where
(
'periode_id'
,
$periode
->
where
(
'status'
,
'1'
)
->
first
()
->
periode_id
)
->
where
(
'nama'
,
'Upload Proposal Seleksi Internal'
)
->
first
();
// dd($jadwal->tanggal_sekesai);
...
...
app/Http/Controllers/Operator/DaftarProposalController.php
View file @
aa98826a
...
...
@@ -45,7 +45,7 @@ class DaftarProposalController extends Controller
/* AJAX request */
public
function
getData
(
Request
$request
){
// $periode = Periode::where('status',
1
)->first();
// $periode = Periode::where('status',
'1'
)->first();
// $reqPeriodeId = $periode->periode_id;
// parameter
...
...
@@ -789,7 +789,7 @@ class DaftarProposalController extends Controller
private
function
createMonevInternal
(
$proposalId
)
{
$reviewerProposal
=
ReviewerProposal
::
where
(
'proposal_id'
,
$proposalId
)
->
whereIn
(
'urut'
,
[
1
,
2
]);
$count
=
$reviewerProposal
->
where
(
'status_administrasi'
,
1
)
->
count
();
$count
=
$reviewerProposal
->
where
(
'status_administrasi'
,
'1'
)
->
count
();
$monevInternal
=
MonevInternal
::
query
()
->
where
(
'proposal_id'
,
$proposalId
)
->
get
();
// if($count == 2){
...
...
app/Http/Controllers/Operator/SelectController.php
View file @
aa98826a
...
...
@@ -15,7 +15,7 @@ class SelectController extends Controller
{
$nim
=
request
(
'nim'
);
$kelompok_id
=
Session
::
get
(
'ss_kelompokid'
);
$kelompok
=
Kelompok
::
with
(
'rAnggota'
)
->
where
(
'kelompok_id'
,
$kelompok_id
)
->
first
();
$kelompok
=
Kelompok
::
with
(
[
'rKetua'
,
'rAnggota'
]
)
->
where
(
'kelompok_id'
,
$kelompok_id
)
->
first
();
$person
=
GetDataApiController
::
getAccount
(
$nim
);
...
...
app/Models/Kelompok.php
View file @
aa98826a
...
...
@@ -39,6 +39,12 @@ class Kelompok extends Model
return
$this
->
hasMany
(
KelompokDetail
::
class
,
'kelompok_id'
,
'kelompok_id'
)
->
orderBy
(
'status_ketua'
);
}
public
function
rKetua
()
{
return
$this
->
hasOne
(
KelompokDetail
::
class
,
'kelompok_id'
,
'kelompok_id'
)
->
whereRaw
(
"TRIM(status_ketua) = '1'"
);
}
public
function
rBiodata
()
{
return
$this
->
hasOne
(
Biodata
::
class
,
'id'
,
'created_user'
);
...
...
resources/views/backend/dosen/kelompok/index.blade.php
View file @
aa98826a
...
...
@@ -74,8 +74,8 @@
<tr id="
row
-
{{
$token
}}
">
<td>{{
$loop->iteration
}}</td>
<td>{{
$item->kode
}}</td>
<td>{{
$item->r
Anggota
->where('status_ketua', 1)->count() > 0 ?
$item->rAnggota
->where('status_ketua', 1)[0]->nama :
'' }}</td>
<td>{{
$item->r
Anggota
->where('status_ketua', 1)->count() > 0 ?
$item->rAnggota
->where('status_ketua', 1)[0]->nim : ''
}}</td>
<td>{{
$item->r
Ketua
->nama ??
'' }}</td>
<td>{{
$item->r
Ketua
->nim ?? ''
}}</td>
<td>{{
$item->nama_dosen
}}</td>
<td>{{
$item->nidn_dosen
}}</td>
<td>
...
...
resources/views/backend/mahasiswa/kelompok/index.blade.php
View file @
aa98826a
...
...
@@ -82,8 +82,8 @@
<tr id="
row
-
{{
$token
}}
">
<td>{{
$loop->iteration
}}</td>
<td>{{
$item->kode
}}</td>
<td>{{
$item->r
Anggota
->where('status_ketua', 1)->count() > 0 ?
$item->rAnggota
->where('status_ketua', 1)[0]->nama :
'' }}</td>
<td>{{
$item->r
Anggota
->where('status_ketua', 1)->count() > 0 ?
$item->rAnggota
->where('status_ketua', 1)[0]->nim : ''
}}</td>
<td>{{
$item->r
Ketua
->nama ??
'' }}</td>
<td>{{
$item->r
Ketua
->nim ?? ''
}}</td>
<td>{{
$item->nama_dosen
}}</td>
<td>{{
$item->nidn_dosen
}}</td>
<td>
...
...
resources/views/backend/mahasiswa/kelompok/modalkel.blade.php
View file @
aa98826a
...
...
@@ -12,7 +12,7 @@
<div
class=
"col-12"
>
<h5
class=
"font-size-16"
>
Silahkan pilih dosen pembimbing :
</h5>
<p>
<input
type=
"hidden"
name=
"periode"
value=
"{{ $periode->where('status',
1
)->first()->periode_id; }}"
>
<input
type=
"hidden"
name=
"periode"
value=
"{{ $periode->where('status',
'1'
)->first()->periode_id; }}"
>
<select
class=
"form-select"
style=
"width: 100%"
id=
"selectmodal"
name=
"dosen"
>
<option
selected
>
Pilih Dosen
</option>
@foreach($dosen as $item)
...
...
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