Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simlitabmas
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
simlitabmas
Commits
67fd160d
Commit
67fd160d
authored
3 years ago
by
Muhammad Iskandar Java
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add jenis
parent
56ea712a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
app/Http/Controllers/User/PenelitianSumberDanaController.php
+11
-1
app/Models/Biodata.php
+1
-1
app/Repositories/BiodataRepository.php
+1
-0
resources/views/user/penelitiansumber/row_anggota.blade.php
+1
-0
No files found.
app/Http/Controllers/User/PenelitianSumberDanaController.php
View file @
67fd160d
...
...
@@ -3,6 +3,7 @@
namespace
App\Http\Controllers\User
;
use
App\Http\Controllers\Controller
;
use
App\Models\Biodata
;
use
Illuminate\Http\Request
;
class
PenelitianSumberDanaController
extends
Controller
...
...
@@ -87,8 +88,17 @@ class PenelitianSumberDanaController extends Controller
$data
[
'nama'
]
=
$request
->
nama
;
$data
[
'keanggotaan'
]
=
$request
->
keanggotaan
;
$data
[
'prodi'
]
=
$request
->
prodi
;
$data
[
'nidn'
]
=
$request
->
nidn
;
$data
[
'nidn'
]
=
encrypt
(
$request
->
nidn
);
$dosen
=
Biodata
::
query
()
->
where
(
'nidn'
,
$request
->
nidn
)
->
first
();
if
(
!
is_null
(
$dosen
)
&&
$request
->
name
==
'dosen'
)
{
$data
[
'name'
]
=
$request
->
name
;
$data
[
'jenis'
]
=
encrypt
(
$dosen
->
jenis
);
}
elseif
(
is_null
(
$dosen
)
&&
$request
->
name
==
'non_dosen'
)
{
$data
[
'name'
]
=
$request
->
name
;
$data
[
'jenis'
]
=
encrypt
(
'l'
);
}
return
view
(
'user.penelitiansumber.row_anggota'
,
$data
);
}
...
...
This diff is collapsed.
Click to expand it.
app/Models/Biodata.php
View file @
67fd160d
...
...
@@ -10,5 +10,5 @@ class Biodata extends Model
use
HasFactory
;
protected
$table
=
'biodata'
;
public
$incrementing
=
false
;
protected
$fillable
=
[
'id'
,
'user_id'
,
'nip'
,
'nidn'
,
'name'
,
'fakultas'
,
'prodi'
,
'telephone'
,
'phone'
,
'email'
,
'web'
,
'userid_created'
,
'userid_updated'
];
protected
$fillable
=
[
'id'
,
'user_id'
,
'nip'
,
'nidn'
,
'name'
,
'fakultas'
,
'prodi'
,
'telephone'
,
'phone'
,
'email'
,
'web'
,
'userid_created'
,
'userid_updated'
,
'jenis'
];
}
This diff is collapsed.
Click to expand it.
app/Repositories/BiodataRepository.php
View file @
67fd160d
...
...
@@ -38,6 +38,7 @@ class BiodataRepository
$data
[
'nidn'
]
=
$isdm
[
0
]
->
nidn
?
$isdm
[
0
]
->
nidn
:
$isdm
[
0
]
->
nip
;
$data
[
'fakultas'
]
=
$isdm
[
0
]
->
namahomebase
;
$data
[
'prodi'
]
=
$isdm
[
0
]
->
namasatker
;
$data
[
'jenis'
]
=
$isdm
[
0
]
->
isdosen
?
'd'
:
't'
;
return
$data
;
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/user/penelitiansumber/row_anggota.blade.php
View file @
67fd160d
...
...
@@ -6,6 +6,7 @@
@if ($name == 'non_dosen')
<input
type=
"text"
name=
"{{ $name }}[{{ $no }}][institusi]"
value=
"{{ $prodi }}"
hidden
>
@endif
<input
type=
"text"
name=
"{{ $name }}[{{ $no }}][jenis]"
value=
"{{ encrypt($jenis) }}"
hidden
>
</td>
<td
class=
"text-center"
><span
class=
"text-success"
><input
type=
"text"
name=
"{{ $name }}[{{ $no }}][peran]"
value=
"{{ $keanggotaan }}"
hidden
>
{{ $keanggotaan }}
</span></td>
</tr>
This diff is collapsed.
Click to expand it.
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