<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;

class AlertsController extends Controller
{
  /**
   *
   */
  public function index()
  {
    $stats = [
      'mbp-user-import: MBP_UserCSVfileTools: gatherIMAP attachment: Niche',
      'mbp-user-import: MBP_UserCSVfileTools: gatherIMAP attachment: AfterSchool'
    ];
    return view('alerts.index')->with('stats', $stats);
  }
}

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;


class AlertsController extends Controller
{
  /**
   *
   */
  public function index()
  {
    $alerts = DB::table('alerts')->get();
    return view('alerts.index')->with('alerts', $alerts);
  }
}

Move to listing database values
Move to listing database values
