public function saveEdit()
 {
     $all = Input::all();
     $id = $all['id'];
     unset($all['id']);
     //Lets update the table
     Bankentry::find($id)->update($all);
     //Lets fetch the updated data and return it through ajax
     //$update = Bankentry::where('id', $id)->get()->toArray();
     $all['id'] = $id;
     if (isset($all['deposit_date'])) {
         $all['deposit_date'] = custom_date_format('M j, Y', $all['deposit_date']);
     }
     if (isset($all['amount'])) {
         $all['amount'] = format_money($all['amount']);
     }
     $data['status'] = 'success';
     $data['message'] = $all;
     return Response::json($data);
 }