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