public function padam($id)
 {
     $inbox = Aduan::find($id)->delete();
     $username = Auth::user()->username;
     $sistem = 'e-Aduan';
     $aduans = Aduan::where('pengadu', '=', $username)->where('sistem', '=', $sistem)->get();
     return View::make('admin/aduan/inbox')->with('title', 'Inbox - My Aduan')->with('aduans', $aduans);
 }
 public function index()
 {
     if (Auth::check()) {
         $date = date('d');
         $aduan = Aduan::where('sistem', '=', 'e-Direktori')->where('status', '=', 1)->count();
         $bilAduan = Aduan::where('sistem', '=', 'e-Direktori')->count();
         $date = date('d');
         $hadis = Hadis::find($date);
         return View::make('/admin/dashboard')->with('title', 'Dashboard')->with('hadis', $hadis)->with('aduans', $aduan)->with('bilAduan', $bilAduan);
     } else {
         //            if(\Request::getClientIp() == '10.142.1.46'){
         //                $url = 'http://www.google.com.my';
         //                return Redirect::to($url);
         //            }
         return View::make('/admin/login')->with('title', 'Log Masuk');
     }
 }