Commit 323e99cd by Farendi Giotivano R.P

Merge branch 'master' of http://git.unesa.ac.id/farendi/simlitabmas into master

parents c24f98cd 7d059620
......@@ -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) {
......
......@@ -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);
}
}
......@@ -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'];
}
<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>
......@@ -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 () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment