	{
		if (!empty($_POST)) {
			$this->m_mahasiswa->update_entry();
			redirect('mahasiswa');
		}

		$data = $this->m_mahasiswa->get_entries_by_id($id);
		$this->load->view('layout/header');
		$this->load->view('layout/sidebar');
		$this->load->view('mahasiswa/update', ['data' => $data]);
		$this->load->view('layout/footer', ['js' => 'mahasiswa/updatejs']);