42 lines
831 B
PHP
42 lines
831 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\SAdmin;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\SyS\AboOrdersOverview;
|
|
|
|
class SAdminController extends Controller
|
|
{
|
|
protected $userRepo;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->middleware('superadmin');
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
return view('sys.index');
|
|
}
|
|
|
|
public function tool($serve)
|
|
{
|
|
switch ($serve) {
|
|
|
|
case 'abo_orders_overview':
|
|
return AboOrdersOverview::show();
|
|
break;
|
|
}
|
|
abort(403, 'not found tool');
|
|
}
|
|
|
|
public function store($serve)
|
|
{
|
|
switch ($serve) {
|
|
case 'abo_orders_overview':
|
|
// return AboOrdersOverview::store();
|
|
break;
|
|
}
|
|
abort(403, 'not found tool');
|
|
}
|
|
}
|