/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $i = 1; $makuls = Matakuliah::all(); return view('makul.index', compact('makuls', 'i')); }