pintu2/app/Http/Controllers/LayananSeminarProposal.php

35 lines
844 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\PengajuanSempro;
use Illuminate\Http\Request;
class LayananSeminarProposal extends Controller
{
public function index(){
$data = PengajuanSempro::
select('pengajuan_sempros.*',
'mahasiswas.nim as nim',
'mahasiswas.nama as nama',
'dosen_dpu.nama_gelar as dpu_nama_gelar',
'dosen_dpa.nama_gelar as 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')
->get();
return view('layanan-sempro.index',['title' => 'Pengajuan Seminar Proposal | Admin Dashboard','data' => $data]);
}
public function destroy(Request $request){
}
public function terima(Request $request){
}
}