/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $directHire = parent::getDirectHire(null, 0);
     $directHireAnnual = parent::getDirectHireAnnual(null, 0);
     $directHireTarget = parent::getDirectHireTarget(null, 0);
     $gmp = parent::getGMP(null, 0);
     $gmpAnnual = parent::getGMPAnnual(null, 0);
     $pointMonthly = parent::getPointMonthly(null, 0);
     $pointDaily = parent::getPointDaily(null, 0);
     //        $gmpTarget = parent::getGMPTarget( null );
     //        $recruitingData = parent::getRecruitingPoints( null );
     //        $recruitingGoal = parent::getRecruitingGoal( null );
     //        return view('prodSales.report', compact('recruitingData', 'recruitingGoal', 'directHire', 'directHireAnnual', 'directHireTarget', 'gmp', 'gmpAnnual', 'gmpTarget'));
     return view('prodSales.report', compact('directHireTarget', 'directHireAnnual', 'directHire', 'gmp', 'gmpAnnual', 'pointMonthly', 'pointDaily'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $requested = Input::get('request');
     $message = '';
     if ($requested == null || $requested == '' || $requested == 'showAll') {
         $keyword = '';
         $users = $this->getActiveCompanyUsers(null);
     } else {
         $keyword = Input::get('keyword');
         $users = $this->getActiveCompanyUsers($keyword);
     }
     $cont = 0;
     foreach ($users as $user) {
         $users[$cont]->cont = $cont;
         $directHire[] = parent::getDirectHire($user->id, 0);
         $directHireTarget[] = parent::getDirectHireTarget($user->id);
         $gmp[] = parent::getGMP($user->id, 0);
         $gmpAnnual[] = parent::getGMPAnnual($user->id, 0);
         $recruiting[] = parent::getRecruiting($user->id, 0);
         $clientDev[] = parent::getClientDev($user->id, 0);
         $clientDevOut[] = parent::getClientDevOut($user->id, 0);
         $pointMonthly[] = parent::getPointMonthly($user->id, 0);
         $pointDaily[] = parent::getPointDaily($user->id, 0);
         $today_total[] = parent::getTodaysStats2($user->id, 0);
         $avg[] = parent::getAvgPoints($user->id, 0);
         $directHireAnnual[] = parent::getDirectHireAnnual($user->id, 0);
         $cont++;
     }
     $activeTab = 'users';
     $directHireAll = parent::getDirectHire(0, 1);
     $directHireTargetAll = parent::getDirectHireTarget(0);
     $gmpAll = parent::getGMP(0, 1);
     $gmpAnnualAll = parent::getGMPAnnual(0, 1);
     $recruitingAll = parent::getRecruiting(0, 1);
     $clientDevAll = parent::getClientDev(0, 1);
     $clientDevOutAll = parent::getClientDevOut(0, 1);
     $pointMonthlyAll = parent::getPointMonthly(0, 1);
     $pointDailyAll = parent::getPointDaily(0, 1);
     $todayTotalAll = parent::getTodaysStats2(0, 1);
     $directHireAnnualAll = parent::getDirectHireAnnual(0, 1);
     $avgAll = parent::getAvgPoints(0, 1);
     /* echo '<pre>';
        print_r($pointDaily);
        echo '</pre>';
        exit(); */
     return view('companyUser.list', compact('users', 'keyword', 'message', 'directHire', 'directHireTarget', 'gmp', 'gmpAnnual', 'recruiting', 'clientDev', 'clientDevOut', 'pointMonthly', 'pointDaily', 'today_total', 'avg', 'activeTab', 'directHireAll', 'directHireTargetAll', 'gmpAll', 'gmpAnnualAll', 'recruitingAll', 'clientDevAll', 'clientDevOutAll', 'pointMonthlyAll', 'pointDailyAll', 'todayTotalAll', 'avgAll', 'directHireAnnual', 'directHireAnnualAll'));
 }