middleware('sysadmin'); } public function index() { return view('sys.index'); } public function tool($serve) { switch ($serve) { case 'buyings_products': return BuyingsProducts::show(); break; case 'business_structur': return BusinessStructur::show(); break; case 'sales_members': return Sales::show(); break; case 'customers': return Customers::show(); break; case 'cronjobs': return Cronjobs::show(); break; case 'domainssl': return DomainSSL::show(); break; case 'shopping_orders': return ShoppingOrders::show(); break; case 'import': return Import::show(); break; case 'corrections': return Correction::show(); break; } abort(403, 'not found tool'); } public function store($serve) { switch ($serve) { case 'buyings_products': return BuyingsProducts::store(); break; case 'business_structur': return BusinessStructur::show(); break; case 'sales_members': return Sales::show(); break; case 'customers': return Customers::store(); break; case 'cronjobs': return Cronjobs::store(); break; case 'domainssl': return DomainSSL::store(); break; case 'shopping_orders': return ShoppingOrders::store(); break; case 'import': return Import::store(); break; case 'corrections': return Correction::store(); break; } abort(403, 'not found tool'); } }