Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpkm
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
Farendi Giotivano R.P
simpkm
Commits
9d9e9568
Commit
9d9e9568
authored
Oct 03, 2023
by
Farendi Giotivano R.P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update seleksi belmawa
parent
27e19bc4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
30 deletions
+58
-30
app/Http/Controllers/Mahasiswa/SeleksiController.php
+7
-4
app/Models/Proposal.php
+10
-0
app/Models/SeleksiBelmawa.php
+5
-0
resources/views/backend/dosen/seleksi/index_belmawa.blade.php
+20
-14
resources/views/backend/mahasiswa/seleksi/index_belmawa.blade.php
+16
-12
No files found.
app/Http/Controllers/Mahasiswa/SeleksiController.php
View file @
9d9e9568
...
@@ -16,6 +16,7 @@ use App\Models\Jenis;
...
@@ -16,6 +16,7 @@ use App\Models\Jenis;
use
Session
;
use
Session
;
use
Alert
;
use
Alert
;
use
App\Models\DaftarProposal
;
use
App\Models\DaftarProposal
;
use
App\Models\SeleksiBelmawa
;
use
Auth
;
use
Auth
;
use
DB
;
use
DB
;
...
@@ -92,7 +93,7 @@ class SeleksiController extends Controller
...
@@ -92,7 +93,7 @@ class SeleksiController extends Controller
$periode
=
Periode
::
query
()
->
get
();
$periode
=
Periode
::
query
()
->
get
();
$year
=
!
is_null
(
$request
->
year
)
?
$request
->
year
:
now
()
->
year
;
$year
=
!
is_null
(
$request
->
year
)
?
$request
->
year
:
now
()
->
year
;
$proposal
=
Proposal
::
with
([
'rKelompok'
,
'rJenis'
,
'rNilai'
])
$proposal
=
Proposal
::
with
([
'rKelompok'
,
'rJenis'
,
'rNilai'
,
'rReviewProposal'
,
'rBelmawa'
])
->
whereHas
(
'rKelompok'
,
function
(
$query
)
use
(
$nim
){
->
whereHas
(
'rKelompok'
,
function
(
$query
)
use
(
$nim
){
$query
->
whereHas
(
'rAnggota'
,
function
(
$query
)
use
(
$nim
){
$query
->
whereHas
(
'rAnggota'
,
function
(
$query
)
use
(
$nim
){
$query
->
where
(
'nim'
,
$nim
);
$query
->
where
(
'nim'
,
$nim
);
...
@@ -143,13 +144,15 @@ class SeleksiController extends Controller
...
@@ -143,13 +144,15 @@ class SeleksiController extends Controller
$proposal
=
Proposal
::
with
([
'rPeriode'
])
->
find
(
$pro
[
'proposal_id'
]);
$proposal
=
Proposal
::
with
([
'rPeriode'
])
->
find
(
$pro
[
'proposal_id'
]);
$belmawa
=
SeleksiBelmawa
::
where
(
'proposal_id'
,
$pro
[
'proposal_id'
])
->
first
();
$file_nama
=
$proposal
->
rPeriode
->
nama
.
'_'
.
$proposal
->
proposal_id
.
'.'
.
$pro
[
'file'
]
->
getClientOriginalExtension
();
$file_nama
=
$proposal
->
rPeriode
->
nama
.
'_'
.
$proposal
->
proposal_id
.
'.'
.
$pro
[
'file'
]
->
getClientOriginalExtension
();
Storage
::
disk
(
'static'
)
->
put
(
'simpkm/proposal/revisi/'
.
$proposal
->
rPeriode
->
nama
.
'/'
.
$file_nama
,
file_get_contents
(
$pro
[
'file'
]
->
getRealPath
()));
Storage
::
disk
(
'static'
)
->
put
(
'simpkm/proposal/revisi/'
.
$proposal
->
rPeriode
->
nama
.
'/'
.
$file_nama
,
file_get_contents
(
$pro
[
'file'
]
->
getRealPath
()));
$
proposal
->
revisi_filebelmawa
=
$file_nama
;
$
belmawa
->
upload_dokumen
=
$file_nama
;
$
proposal
->
revisi_datebelmawa
=
now
();
$
belmawa
->
date_upload
=
now
();
$
proposal
->
save
();
$
belmawa
->
save
();
return
redirect
()
->
route
(
'mahasiswa.seleksi-belmawa'
)
->
with
(
'success'
,
'Proposal Berhasil revisi'
);
return
redirect
()
->
route
(
'mahasiswa.seleksi-belmawa'
)
->
with
(
'success'
,
'Proposal Berhasil revisi'
);
}
}
...
...
app/Models/Proposal.php
View file @
9d9e9568
...
@@ -97,5 +97,15 @@ class Proposal extends Model
...
@@ -97,5 +97,15 @@ class Proposal extends Model
{
{
return
$this
->
hasOne
(
DaftarProposal
::
class
,
'proposal_id'
,
'proposal_id'
);
return
$this
->
hasOne
(
DaftarProposal
::
class
,
'proposal_id'
,
'proposal_id'
);
}
}
public
function
rReviewProposal
()
{
return
$this
->
hasOne
(
ReviewerProposal
::
class
,
'proposal_id'
,
'proposal_id'
);
}
public
function
rBelmawa
()
{
return
$this
->
hasOne
(
SeleksiBelmawa
::
class
,
'proposal_id'
,
'proposal_id'
);
}
}
}
app/Models/SeleksiBelmawa.php
View file @
9d9e9568
...
@@ -15,4 +15,9 @@ class SeleksiBelmawa extends Model
...
@@ -15,4 +15,9 @@ class SeleksiBelmawa extends Model
protected
$fillable
=
[
protected
$fillable
=
[
'seleksi_belmawa_id'
,
'proposal_id'
,
'upload_dokumen'
,
'date_upload'
,
'status'
,
'komentar'
,
'date_approval'
,
'created_user'
,
'created_at'
,
'updated_user'
,
'updated_at'
'seleksi_belmawa_id'
,
'proposal_id'
,
'upload_dokumen'
,
'date_upload'
,
'status'
,
'komentar'
,
'date_approval'
,
'created_user'
,
'created_at'
,
'updated_user'
,
'updated_at'
];
];
public
function
rBelmawa
()
{
return
$this
->
hasOne
(
Proposal
::
class
,
'proposal_id'
,
'proposal_id'
);
}
}
}
resources/views/backend/dosen/seleksi/index_belmawa.blade.php
View file @
9d9e9568
...
@@ -76,17 +76,21 @@
...
@@ -76,17 +76,21 @@
<td>{{
$item->rJenis
->nama }}</td>
<td>{{
$item->rJenis
->nama }}</td>
<td>{{
$item->judul
}}</td>
<td>{{
$item->judul
}}</td>
<td>
<td>
@if(is_null(
$item->status
))
@if(
$item->rReviewProposal
)
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
@if(
$item->rReviewProposal
->status_final == '1')
@else
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
@endif
</td>
</td>
<td>
<td>
@if(is_null(
$item->revisi_filebelmawa
))
@if(
$item->rReviewProposal
)
<span class="
badge
bg
-
danger
">Belum Upload Proposal</span>
@if(is_null(
$item->rBelmawa
->upload_dokumen))
@else
<span class="
badge
bg
-
danger
">Belum Upload Proposal</span>
<button data-bs-toggle="
modal
" data-bs-target="
{{
'#lihat'
.
$item
->
proposal_id
}}
" href="
{{
URL
::
to
(
'mahasiswa/kelompok-new'
,
encrypt
(
$item
->
proposal_id
))
}}
" class="
btn
btn
-
info
btn
-
sm
">Lihat</button>
@else
<button data-bs-toggle="
modal
" data-bs-target="
{{
'#lihat'
.
$item
->
proposal_id
}}
" href="
{{
URL
::
to
(
'mahasiswa/kelompok-new'
,
encrypt
(
$item
->
proposal_id
))
}}
" class="
btn
btn
-
info
btn
-
sm
">Lihat</button>
@endif
@endif
@endif
<div id="
{{
'lihat'
.
$item
->
proposal_id
}}
" class="
modal
fade
" tabindex="
-
1
" role="
dialog
"
<div id="
{{
'lihat'
.
$item
->
proposal_id
}}
" class="
modal
fade
" tabindex="
-
1
" role="
dialog
"
...
@@ -112,18 +116,20 @@
...
@@ -112,18 +116,20 @@
<tr>
<tr>
<th>Status</th>
<th>Status</th>
<td>
<td>
@if(is_null(
$item->status
))
@if(
$item->rReviewProposal
)
<span class="
badge
bg
-
danger
">Lolos Seleksi Internal</span>
@if(
$item->rReviewProposal
->status_final == '1')
@else
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
<span class="
badge
bg
-
success
">Tidak Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
@endif
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<th>Proposal</th>
<th>Proposal</th>
<td>
<td>
<a href="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
evisi_filebelmawa
}}
" target="
_blank
" class="
btn
btn
-
success
btn
-
sm
"> <i class="
far
fa
-
eye
"></i> Lihat Proposal</a>
<a href="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
Belmawa
->
upload_dokumen
}}
" target="
_blank
" class="
btn
btn
-
success
btn
-
sm
"> <i class="
far
fa
-
eye
"></i> Lihat Proposal</a>
<iframe id="
view
-
pdf
" width="
100
%
" height="
200
px
" src="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
evisi_filebelmawa
}}
" frameborder="
0
"></iframe>
<iframe id="
view
-
pdf
" width="
100
%
" height="
200
px
" src="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
Belmawa
->
upload_dokumen
}}
" frameborder="
0
"></iframe>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
resources/views/backend/mahasiswa/seleksi/index_belmawa.blade.php
View file @
9d9e9568
...
@@ -78,15 +78,17 @@
...
@@ -78,15 +78,17 @@
<td>{{
$item->rJenis
->nama }}</td>
<td>{{
$item->rJenis
->nama }}</td>
<td>{{
$item->judul
}}</td>
<td>{{
$item->judul
}}</td>
<td>
<td>
@if(
$item->status
== '2')
@if(
$item->rReviewProposal
)
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
@if(
$item->rReviewProposal
->status_final == '1')
@else
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
@endif
</td>
</td>
<td>
<td>
@if(
$item->
status
== '2'
)
@if(
$item->
rReviewProposal
)
@if(is_null(
$item->r
evisi_filebelmawa
))
@if(is_null(
$item->r
Belmawa
->upload_dokumen
))
<a href="
{{
URL
::
to
(
'mahasiswa/seleksi-belmawa/revisi'
,
$item
->
proposal_id
)
}}
" type="
button
" class="
btn
btn
-
warning
btn
-
sm
waves
-
effect
waves
-
light
"> <i class="
fas
fa
-
edit
"></i> Edit</a>
<a href="
{{
URL
::
to
(
'mahasiswa/seleksi-belmawa/revisi'
,
$item
->
proposal_id
)
}}
" type="
button
" class="
btn
btn
-
warning
btn
-
sm
waves
-
effect
waves
-
light
"> <i class="
fas
fa
-
edit
"></i> Edit</a>
@else
@else
<button data-bs-toggle="
modal
" data-bs-target="
{{
'#lihat'
.
$item
->
proposal_id
}}
" href="
{{
URL
::
to
(
'mahasiswa/kelompok-new'
,
encrypt
(
$item
->
proposal_id
))
}}
" class="
btn
btn
-
info
btn
-
sm
">Lihat</button>
<button data-bs-toggle="
modal
" data-bs-target="
{{
'#lihat'
.
$item
->
proposal_id
}}
" href="
{{
URL
::
to
(
'mahasiswa/kelompok-new'
,
encrypt
(
$item
->
proposal_id
))
}}
" class="
btn
btn
-
info
btn
-
sm
">Lihat</button>
...
@@ -116,18 +118,20 @@
...
@@ -116,18 +118,20 @@
<tr>
<tr>
<th>Status</th>
<th>Status</th>
<td>
<td>
@if(is_null(
$item->status
))
@if(
$item->rReviewProposal
)
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
@if(
$item->rReviewProposal
->status_final == '1')
@else
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
@endif
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<th>Proposal</th>
<th>Proposal</th>
<td>
<td>
<a href="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
evisi_filebelmawa
}}
" target="
_blank
" class="
btn
btn
-
success
btn
-
sm
"> <i class="
far
fa
-
eye
"></i> Lihat Proposal</a>
<a href="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
Belmawa
->
upload_dokumen
}}
" target="
_blank
" class="
btn
btn
-
success
btn
-
sm
"> <i class="
far
fa
-
eye
"></i> Lihat Proposal</a>
<iframe id="
view
-
pdf
" width="
100
%
" height="
400
px
" src="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
evisi_filebelmawa
}}
" frameborder="
0
"></iframe>
<iframe id="
view
-
pdf
" width="
100
%
" height="
400
px
" src="
https
://
statik
.
unesa
.
ac
.
id
/
simpkm
/
proposal
/
revisi
/
{{
$item
->
rPeriode
->
nama
}}
/
{{
$item
->
r
Belmawa
->
upload_dokumen
}}
" frameborder="
0
"></iframe>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
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