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
323e99cd
Commit
323e99cd
authored
Apr 20, 2021
by
Farendi Giotivano R.P
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.unesa.ac.id/farendi/simlitabmas
into master
parents
c24f98cd
7d059620
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
14 deletions
+36
-14
app/Http/Controllers/GetDataController.php
+1
-0
app/Http/Controllers/User/PenelitianSumberDanaController.php
+21
-13
app/Models/Biodata.php
+1
-0
resources/views/user/penelitiansumber/create.blade.php
+0
-0
resources/views/user/penelitiansumber/row_anggota.blade.php
+11
-0
routes/web.php
+2
-1
No files found.
app/Http/Controllers/GetDataController.php
View file @
323e99cd
...
...
@@ -12,6 +12,7 @@ class GetDataController extends Controller
{
try
{
$biodata
=
Biodata
::
query
()
->
where
(
'nidn'
,
$request
->
nidn
)
->
first
();
$biodata
->
id
=
encrypt
(
$biodata
->
id
);
return
response
()
->
json
(
$biodata
);
}
catch
(
Exception
$ex
)
{
...
...
app/Http/Controllers/User/PenelitianSumberDanaController.php
View file @
323e99cd
...
...
@@ -14,7 +14,6 @@ class PenelitianSumberDanaController extends Controller
*/
public
function
index
()
{
//
return
view
(
'user.penelitiansumber.index'
);
}
...
...
@@ -25,63 +24,72 @@ class PenelitianSumberDanaController extends Controller
*/
public
function
create
()
{
//
return
view
(
'user.penelitiansumber.create'
);
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public
function
store
(
Request
$request
)
{
//
dd
(
$request
->
all
());
}
/**
* Display the specified resource.
*
* @param int $id
* @param int $id
*
* @return \Illuminate\Http\Response
*/
public
function
show
(
$id
)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @param int $id
*
* @return \Illuminate\Http\Response
*/
public
function
edit
(
$id
)
{
//
}
/**
* Update the specified resource in storage.
*
* @param
\Illuminate\Http\Request $request
*
@param int $id
* @param
int $id
*
* @return \Illuminate\Http\Response
*/
public
function
update
(
Request
$request
,
$id
)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @param int $id
*
* @return \Illuminate\Http\Response
*/
public
function
destroy
(
$id
)
{
//
}
public
function
getRowAnggota
(
Request
$request
)
{
$data
[
'no'
]
=
$request
->
no
;
$data
[
'nama'
]
=
$request
->
nama
;
$data
[
'keanggotaan'
]
=
$request
->
keanggotaan
;
$data
[
'prodi'
]
=
$request
->
prodi
;
$data
[
'nidn'
]
=
$request
->
nidn
;
$data
[
'name'
]
=
$request
->
name
;
return
view
(
'user.penelitiansumber.row_anggota'
,
$data
);
}
}
app/Models/Biodata.php
View file @
323e99cd
...
...
@@ -9,5 +9,6 @@ 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'
];
}
resources/views/user/penelitiansumber/create.blade.php
View file @
323e99cd
This diff is collapsed.
Click to expand it.
resources/views/user/penelitiansumber/row_anggota.blade.php
0 → 100644
View file @
323e99cd
<tr>
<td><input
type=
"text"
name=
"{{ $name }}[{{ $no }}][nidn]"
value=
"{{ $nidn }}"
hidden
>
{{ $no }}
</td>
<td>
{{ $nama }}
</td>
<td>
{{ $prodi }}
@if ($name == 'non_dosen')
<input
type=
"text"
name=
"{{ $name }}[{{ $no }}][institusi]"
value=
"{{ $prodi }}"
hidden
>
@endif
</td>
<td
class=
"text-center"
><span
class=
"text-success"
><input
type=
"text"
name=
"{{ $name }}[{{ $no }}][peran]"
value=
"{{ $keanggotaan }}"
hidden
>
{{ $keanggotaan }}
</span></td>
</tr>
routes/web.php
View file @
323e99cd
...
...
@@ -34,7 +34,8 @@ Route::get('login', [LoginController::class, 'index'])->name('login');
Route
::
get
(
'sso/{email}/{sessionid}'
,
[
LoginController
::
class
,
'sso'
]);
Route
::
middleware
([
'auth:sanctum'
,
'verified'
])
->
group
(
function
()
{
Route
::
get
(
'/get-biodata'
,
[
GetDataController
::
class
,
'getBiodata'
]);
Route
::
get
(
'/get-biodata'
,
[
GetDataController
::
class
,
'getBiodata'
])
->
name
(
'get-biodata'
);
Route
::
get
(
'/get-row-anggota'
,
[
PenelitianSumberDanaController
::
class
,
'getRowAnggota'
])
->
name
(
'get-row-anggota'
);
});
Route
::
group
([
'middleware'
=>
[
'auth:sanctum'
,
'verified'
]],
function
()
{
...
...
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