public function getIndex() { $penduduk = Penduduk::all(); $data = array('title' => 'Penduduk', 'new' => URL::to('penduduk/new'), 'penduduk' => $penduduk, 'pendudukCount' => $penduduk->count(), 'deleteUrl' => URL::to('penduduk/delete'), 'editUrl' => URL::to('penduduk/edit')); return View::make('penduduk.index', $data); }