29 lines
851 B
PHP
29 lines
851 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Models\PengajuanDpuDpa;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class MonitoringController extends Controller
|
||
|
{
|
||
|
|
||
|
public function caseid($caseid){
|
||
|
$data = PengajuanDpuDpa::where('caseid', $caseid)
|
||
|
->select(
|
||
|
'pengajuan_dpu_dpas.*',
|
||
|
'mahasiswas.nim',
|
||
|
'mahasiswas.nama',
|
||
|
'mahasiswas.judul_seminar_proposal',
|
||
|
'dosen_dpu.nama_gelar as dosen_dpu_nama_gelar',
|
||
|
'dosen_dpa.nama_gelar as dosen_dpa_nama_gelar',
|
||
|
)
|
||
|
->join('mahasiswas','mahasiswas_id','=','mahasiswas.id')
|
||
|
->join('users as dosen_dpu','mahasiswas.dosen_dpu_id','=','dosen_dpu.id')
|
||
|
->join('users as dosen_dpa','mahasiswas.dosen_dpa_id','=','dosen_dpa.id')
|
||
|
->first();
|
||
|
return view('monitoring.dpu_dpa',['title' => 'Monitoring Pengajuan DPU/DPA - '.$caseid,'data' => $data]);
|
||
|
}
|
||
|
|
||
|
}
|