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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
17 deletions
+45
-17
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
+13
-7
resources/views/backend/mahasiswa/seleksi/index_belmawa.blade.php
+10
-6
No files found.
app/Http/Controllers/Mahasiswa/SeleksiController.php
View file @
9d9e9568
...
...
@@ -16,6 +16,7 @@ use App\Models\Jenis;
use
Session
;
use
Alert
;
use
App\Models\DaftarProposal
;
use
App\Models\SeleksiBelmawa
;
use
Auth
;
use
DB
;
...
...
@@ -92,7 +93,7 @@ class SeleksiController extends Controller
$periode
=
Periode
::
query
()
->
get
();
$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
){
$query
->
whereHas
(
'rAnggota'
,
function
(
$query
)
use
(
$nim
){
$query
->
where
(
'nim'
,
$nim
);
...
...
@@ -143,13 +144,15 @@ class SeleksiController extends Controller
$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
();
Storage
::
disk
(
'static'
)
->
put
(
'simpkm/proposal/revisi/'
.
$proposal
->
rPeriode
->
nama
.
'/'
.
$file_nama
,
file_get_contents
(
$pro
[
'file'
]
->
getRealPath
()));
$
proposal
->
revisi_filebelmawa
=
$file_nama
;
$
proposal
->
revisi_datebelmawa
=
now
();
$
proposal
->
save
();
$
belmawa
->
upload_dokumen
=
$file_nama
;
$
belmawa
->
date_upload
=
now
();
$
belmawa
->
save
();
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
{
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
protected
$fillable
=
[
'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,18 +76,22 @@
<td>{{
$item->rJenis
->nama }}</td>
<td>{{
$item->judul
}}</td>
<td>
@if(is_null(
$item->status
))
@if(
$item->rReviewProposal
)
@if(
$item->rReviewProposal
->status_final == '1')
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
</td>
<td>
@if(is_null(
$item->revisi_filebelmawa
))
@if(
$item->rReviewProposal
)
@if(is_null(
$item->rBelmawa
->upload_dokumen))
<span class="
badge
bg
-
danger
">Belum Upload Proposal</span>
@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
<div id="
{{
'lihat'
.
$item
->
proposal_id
}}
" class="
modal
fade
" tabindex="
-
1
" role="
dialog
"
aria-labelledby="
lihatLabel
" aria-hidden="
true
">
...
...
@@ -112,18 +116,20 @@
<tr>
<th>Status</th>
<td>
@if(is_null(
$item->status
))
<span class="
badge
bg
-
danger
">Lolos Seleksi Internal</span>
@if(
$item->rReviewProposal
)
@if(
$item->rReviewProposal
->status_final == '1')
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
success
">Tidak Lolos Seleksi Internal</span>
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
</td>
</tr>
<tr>
<th>Proposal</th>
<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>
<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>
<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
Belmawa
->
upload_dokumen
}}
" frameborder="
0
"></iframe>
</td>
</tr>
<tr>
...
...
resources/views/backend/mahasiswa/seleksi/index_belmawa.blade.php
View file @
9d9e9568
...
...
@@ -78,15 +78,17 @@
<td>{{
$item->rJenis
->nama }}</td>
<td>{{
$item->judul
}}</td>
<td>
@if(
$item->status
== '2')
@if(
$item->rReviewProposal
)
@if(
$item->rReviewProposal
->status_final == '1')
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
</td>
<td>
@if(
$item->
status
== '2'
)
@if(is_null(
$item->r
evisi_filebelmawa
))
@if(
$item->
rReviewProposal
)
@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>
@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>
...
...
@@ -116,18 +118,20 @@
<tr>
<th>Status</th>
<td>
@if(is_null(
$item->status
))
@if(
$item->rReviewProposal
)
@if(
$item->rReviewProposal
->status_final == '1')
<span class="
badge
bg
-
success
">Lolos Seleksi Internal</span>
@else
<span class="
badge
bg
-
danger
">Tidak Lolos Seleksi Internal</span>
@endif
@endif
</td>
</tr>
<tr>
<th>Proposal</th>
<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>
<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>
<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
Belmawa
->
upload_dokumen
}}
" frameborder="
0
"></iframe>
</td>
</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