public static function getPan() { $input = array('currentUserIdPk' => Session::get('user_id'), 'currentUserId' => Session::get('user_name'), 'limit' => '0'); $inputencode = json_encode($input); $panrechargeall = Services::panhistory($inputencode); if ($panrechargeall->status == "success") { $panhistory = $panrechargeall->Panhistory; //echo "<pre>"; //print_r($panrechargeall);exit; return View::make('admin.recharge.panhistory')->with('pandata', $panhistory); } elseif ($panrechargeall->status == "failure") { $panhistory = ""; return View::make('admin.recharge.panhistory')->with('pandata', $panhistory)->with('failure', $panrechargeall->message); } else { return Redirect::to('admin/noservice'); } }