public function onContact()
 {
     $setting = Setting::first();
     $data = \Request::all();
     Contact::create($data);
     \Mail::send('genius.base::contact', $data, function ($message) use($setting, $data) {
         $message->to($setting->form_email);
         $message->replyTo($data['email'], $data['name']);
     });
     return 1;
 }
 /**
  * Deleted checked settings.
  */
 public function index_onDelete()
 {
     if (($checkedIds = post('checked')) && is_array($checkedIds) && count($checkedIds)) {
         foreach ($checkedIds as $settingId) {
             if (!($setting = Setting::find($settingId))) {
                 continue;
             }
             $setting->delete();
         }
         Flash::success(Lang::get('genius.contacts::lang.settings.delete_selected_success'));
     } else {
         Flash::error(Lang::get('genius.contacts::lang.settings.delete_selected_empty'));
     }
     return $this->listRefresh();
 }