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
40b7e7c7
Commit
40b7e7c7
authored
Feb 10, 2023
by
Farendi Giotivano R.P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tambahan
parent
3d359ced
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
53 additions
and
3 deletions
+53
-3
app/Http/Controllers/Dosen/KelompokController.php
+1
-0
app/Http/Controllers/Mahasiswa/LuaranController.php
+10
-0
app/Http/Controllers/Mahasiswa/MonevController.php
+9
-0
app/Http/Controllers/Mahasiswa/ProposalController.php
+19
-2
app/Http/Controllers/Mahasiswa/SeleksiController.php
+9
-0
resources/views/backend/dosen/kelompok/index.blade.php
+1
-1
resources/views/backend/mahasiswa/luaran/index.blade.php
+1
-0
resources/views/backend/mahasiswa/monev/upload_monev.blade.php
+1
-0
resources/views/backend/mahasiswa/proposal/create.blade.php
+1
-0
resources/views/backend/mahasiswa/seleksi/revisi_belmawa.blade.php
+1
-0
No files found.
app/Http/Controllers/Dosen/KelompokController.php
View file @
40b7e7c7
...
...
@@ -33,6 +33,7 @@ class KelompokController extends Controller
$kelompok
=
Kelompok
::
with
([
'rAnggota'
])
->
where
(
'nidn_dosen'
,
$bio
->
noidentitas
)
->
where
(
'kirim'
,
'1'
)
->
whereYear
(
'created_at'
,
$year
)
->
orderBy
(
'kode'
)
->
get
();
...
...
app/Http/Controllers/Mahasiswa/LuaranController.php
View file @
40b7e7c7
...
...
@@ -50,6 +50,16 @@ class LuaranController extends Controller
$proposal
=
Proposal
::
with
([
'rPeriode'
])
->
find
(
$luaran
[
'proposal_id'
]);
$this
->
validate
(
$request
,
[
'file'
=>
'required|mimes:pdf|max:5000'
],
[
'file.required'
=>
'Tidak ada file yang di upload'
,
'file.mimes'
=>
'File harus pdf'
,
'file.max'
=>
'File tidak boleh lebih dari 5 mb'
,
]);
$file_nama
=
$proposal
->
rPeriode
->
nama
.
'_'
.
$proposal
->
proposal_id
.
'_'
.
$luaran
[
'jenis_luaran'
]
.
'.'
.
$luaran
[
'file'
]
->
getClientOriginalExtension
();
Storage
::
disk
(
'static'
)
->
put
(
'simpkm/luaran/'
.
$luaran
[
'jenis_luaran'
]
.
'/'
.
$file_nama
,
file_get_contents
(
$luaran
[
'file'
]
->
getRealPath
()));
...
...
app/Http/Controllers/Mahasiswa/MonevController.php
View file @
40b7e7c7
...
...
@@ -107,6 +107,15 @@ class MonevController extends Controller
//
$pro
=
$request
->
except
(
'_token'
);
$this
->
validate
(
$request
,
[
'file'
=>
'required|mimes:pdf|max:5000'
],
[
'file.required'
=>
'Tidak ada file yang di upload'
,
'file.mimes'
=>
'File harus pdf'
,
'file.max'
=>
'File tidak boleh lebih dari 5 mb'
,
]);
$proposal
=
MonevInternal
::
with
([
'rProposal'
])
->
find
(
$pro
[
'monev_id'
]);
$file_nama
=
$proposal
->
rProposal
->
rPeriode
->
nama
.
'_'
.
$proposal
->
rProposal
->
proposal_id
.
'.'
.
$pro
[
'file'
]
->
getClientOriginalExtension
();
...
...
app/Http/Controllers/Mahasiswa/ProposalController.php
View file @
40b7e7c7
...
...
@@ -70,7 +70,7 @@ class ProposalController extends Controller
$kelompok
=
Kelompok
::
where
(
'created_user'
,
auth
()
->
user
()
->
id
)
->
where
(
'periode_id'
,
$periode
->
periode_id
)
->
where
(
'
status'
,
'0
'
)
->
where
(
'
kirim'
,
'1
'
)
->
first
();
if
(
is_null
(
$kelompok
)){
...
...
@@ -101,6 +101,15 @@ class ProposalController extends Controller
//
$proposal
=
$request
->
except
(
'_token'
);
$this
->
validate
(
$request
,
[
'file'
=>
'required|mimes:pdf|max:5000'
],
[
'file.required'
=>
'Tidak ada file yang di upload'
,
'file.mimes'
=>
'File harus pdf'
,
'file.max'
=>
'File tidak boleh lebih dari 5 mb'
,
]);
$periode
=
Periode
::
where
(
'status'
,
1
)
->
first
();
$uuid
=
Str
::
uuid
();
...
...
@@ -171,10 +180,18 @@ class ProposalController extends Controller
{
//
$proposal
=
$request
->
except
(
'_token'
);
// dd($proposal);
$this
->
validate
(
$request
,
[
'file'
=>
'mimes:pdf|max:5000'
],
[
'file.mimes'
=>
'File harus pdf'
,
'file.max'
=>
'File tidak boleh lebih dari 5 mb'
,
]);
$pro
=
Proposal
::
with
([
'rPeriode'
])
->
find
(
$id
);
if
(
is_null
(
$proposal
[
'file'
])){
if
(
!
isset
(
$proposal
[
'file'
])){
$file_nama
=
$pro
->
upload_dokumen
;
}
else
{
// Storage::disk('static')->delete('simpkm/proposal/'.$pro->rPeriode->nama.'/'.$pro->upload_dokumen);
...
...
app/Http/Controllers/Mahasiswa/SeleksiController.php
View file @
40b7e7c7
...
...
@@ -130,6 +130,15 @@ class SeleksiController extends Controller
//
$pro
=
$request
->
except
(
'_token'
);
$this
->
validate
(
$request
,
[
'file'
=>
'required|mimes:pdf|max:5000'
],
[
'file.required'
=>
'Tidak ada file yang di upload'
,
'file.mimes'
=>
'File harus pdf'
,
'file.max'
=>
'File tidak boleh lebih dari 5 mb'
,
]);
$proposal
=
Proposal
::
with
([
'rPeriode'
])
->
find
(
$pro
[
'proposal_id'
]);
$file_nama
=
$proposal
->
rPeriode
->
nama
.
'_'
.
$proposal
->
proposal_id
.
'.'
.
$pro
[
'file'
]
->
getClientOriginalExtension
();
...
...
resources/views/backend/dosen/kelompok/index.blade.php
View file @
40b7e7c7
...
...
@@ -54,7 +54,7 @@
</div>
</form>
<br>
<table id="
datatable
" class="
table
table
-
bordered
dt
-
responsive
nowrap
" style="
border
-
collapse
:
collapse
;
border
-
spacing
:
0
;
width
:
100
%
;
">
<table id="
datatable
" class="
table
table
-
bordered
dt
-
responsive
" style="
border
-
collapse
:
collapse
;
border
-
spacing
:
0
;
width
:
100
%
;
">
<thead>
<tr>
<th>No</th>
...
...
resources/views/backend/mahasiswa/luaran/index.blade.php
View file @
40b7e7c7
...
...
@@ -96,6 +96,7 @@
<h5 class="
font
-
size
-
16
">Upload File : </h5>
<p>
<input type="
file
" name="
file
" class="
form
-
control
" id="
input
-
file
">
@if (
$errors->has
('file')) <span class="
text
-
danger
">{{
$errors->first
('file') }}</span> @endif
</p>
<div class="
col
-
12
">
<h5 class="
font
-
size
-
16
">Keterangan : </h5>
...
...
resources/views/backend/mahasiswa/monev/upload_monev.blade.php
View file @
40b7e7c7
...
...
@@ -57,6 +57,7 @@
<div class="
row
mb
-
3
" class="
dropzone
">
<label for="
kode
" class="
col
-
sm
-
2
col
-
form
-
label
">Upload Revisi Proposal</label>
<div class="
col
-
sm
-
10
">
@if (
$errors->has
('file')) <span class="
text
-
danger
">{{
$errors->first
('file') }}</span> @endif
<input type="
file
" name="
file
" class="
form
-
control
" id="
input
-
file
">
<iframe id="
view
-
pdf
" width="
80
%
" height="
80
%
" src="" frameborder="
0
"></iframe>
</div>
...
...
resources/views/backend/mahasiswa/proposal/create.blade.php
View file @
40b7e7c7
...
...
@@ -59,6 +59,7 @@
<div class="
row
mb
-
3
" class="
dropzone
">
<label for="
kode
" class="
col
-
sm
-
2
col
-
form
-
label
">Upload Proposal</label>
<div class="
col
-
sm
-
10
">
@if (
$errors->has
('file')) <span class="
text
-
danger
">{{
$errors->first
('file') }}</span> @endif
<input type="
file
" name="
file
" class="
form
-
control
" id="
input
-
file
">
<iframe id="
view
-
pdf
" width="
80
%
" height="
80
%
" frameborder="
0
" src="
{{
$proposal
?
'https://statik.unesa.ac.id/simpkm/proposal/'
.
$proposal
->
rPeriode
->
nama
.
'/'
.
$proposal
->
upload_dokumen
:
''
}}
"></iframe>
</div>
...
...
resources/views/backend/mahasiswa/seleksi/revisi_belmawa.blade.php
View file @
40b7e7c7
...
...
@@ -55,6 +55,7 @@
<div class="
row
mb
-
3
" class="
dropzone
">
<label for="
kode
" class="
col
-
sm
-
2
col
-
form
-
label
">Upload Revisi Proposal</label>
<div class="
col
-
sm
-
10
">
@if (
$errors->has
('file')) <span class="
text
-
danger
">{{
$errors->first
('file') }}</span> @endif
<input type="
file
" name="
file
" class="
form
-
control
" id="
input
-
file
">
<iframe id="
view
-
pdf
" width="
80
%
" height="
80
%
" src="" frameborder="
0
"></iframe>
</div>
...
...
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