/**
  * Toggle Status Active
  *
  * @param int $id
  * @return \Illuminate\Http\Response
  */
 public function toggle($id)
 {
     $domain = Domain::findOrFail($id);
     $data = ['status' => !$domain->status];
     $domain = $this->domainRepository->updateDomain($data, $id);
     if ($domain) {
         return redirect()->route('dashboard.domains.index')->with('status', 'Estatus actualizado correctamente')->with('level', 'success');
     } else {
         return redirect()->route('dashboard.domains.index')->with('status', 'Ocurrio una incidencia al actualizar el estatus, intentalo nuevamente')->with('level', 'warning');
     }
 }