/** * Display a listing of the resource. * * @return Response */ public function index() { User::loginCheck([0, 1]); $success = Session::get('th01_success'); $danger = Session::get('th01_danger'); $th01 = new th01(); $data = array("karyawans" => mk01::where("status", "=", "Y")->get(), "hutangs" => $th01->getHutangBlmLunas(), "th01_success" => $success, "th01_danger" => $danger); return View::make('transaksi.trans_hutang', $data); }
/** * Display a listing of the resource. * * @return Response */ public function index() { User::loginCheck([0, 1]); $success = Session::get('tt01_success'); $danger = Session::get('tt01_danger'); $tt01 = new tt01(); $data = array("karyawans" => mk01::where("status", "=", "Y")->get(), "tabungans" => $tt01->getTabungan(), "tt01_success" => $success, "tt01_danger" => $danger); return View::make('transaksi.trans_tabungan', $data); }