public function getIndex() { $jsonresult = Icash::cardhistory(); //print_r($jsonresult); exit; if ($jsonresult && $jsonresult->status == "success") { return View::make('admin.icash.card')->with('carddetails', $jsonresult->cardhistory); } else { return Redirect::to('admin/noservice'); } }