public function index()
 {
     if (Auth::user()->hasRole('admin')) {
         $data = Dashboard::getCountUsers();
         return view('dashboard::dashboard_admin', compact('data'));
     }
 }
 public function index()
 {
     if (Auth::user()->hasRole('admin')) {
         $data = Dashboard::getCountUsers();
         return view('dashboard::dashboard_admin', compact('data'));
     }
     if (Auth::user()->hasRole('comercial')) {
         $agreements = Dashboard::getUnfulfilledAgreements();
         return view('dashboard::dashboard_comercial', compact('agreements'));
     }
 }