<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;

class stag_app_pro_access_Controller extends Controller
{
    public $selfName = 'stag_app_pro_access_Controller';
    public $dashboardName = 'dashboard';

	// GET /stag_app_pro_access
	public function index(Request $request) {
		$records = DB::table('stag_app_pro_access')->get();
		return response()->view('admin/stag_app_pro_access/index', compact('records'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
	}

	// GET /stag_app_pro_access/view/{uid}
	public function view(Request $request, $uid) {
		return redirect("/stag_app_pro_access/view/$uid/SUB_dashboard");
	}
}
