change charts corlor, update AFI
This commit is contained in:
@@ -1,17 +1,44 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\ProfileController;
|
||||
use App\Http\Controllers\DashboardController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
|
||||
return auth()->check()
|
||||
? redirect()->route('dashboard')
|
||||
: redirect()->route('login');
|
||||
|
||||
});
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
return view('dashboard');
|
||||
})->middleware(['auth', 'verified'])->name('dashboard');
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
||||
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
||||
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
||||
Route::get('/dashboard', [DashboardController::class, 'overview'])
|
||||
->name('dashboard');
|
||||
Route::get('/dashboard/seq', function () {
|
||||
return view('dashboard.sequencing');
|
||||
});
|
||||
Route::get('/dashboard/{code}', [DashboardController::class, 'detail'])
|
||||
->name('dashboard.detail');
|
||||
|
||||
Route::get('/dashboard/seq', function () {
|
||||
return view('dashboard.sequencing');
|
||||
});
|
||||
Route::get('/dashboard', [DashboardController::class, 'overview']);
|
||||
Route::get('/dashboard/{code}', [DashboardController::class, 'detail']);
|
||||
Route::middleware(['auth', 'role:admin'])->group(function () {
|
||||
|
||||
Route::get('/admin/users', function () {
|
||||
return view('admin.users');
|
||||
});
|
||||
|
||||
Route::get('/admin/settings', function () {
|
||||
return view('admin.settings');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
require __DIR__ . '/auth.php';
|
||||
|
||||
Reference in New Issue
Block a user