/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('mapel.index', ['mapels' => Mapel::orderBy('kode', 'ASC')->paginate(10)]); }