mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
88c0c334e9
columns in the project table
86 lines
2.4 KiB
PHP
86 lines
2.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Http\Controllers\Web\DashboardController;
|
|
use App\Http\Controllers\Web\HomeController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Inertia\Inertia;
|
|
use Laravel\Jetstream\Jetstream;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', [HomeController::class, 'index']);
|
|
|
|
Route::get('/shared-report', function () {
|
|
return Inertia::render('SharedReport');
|
|
})->name('shared-report');
|
|
|
|
Route::middleware([
|
|
'auth:web',
|
|
config('jetstream.auth_session'),
|
|
'verified',
|
|
])->group(function (): void {
|
|
Route::get('/dashboard', [DashboardController::class, 'dashboard'])->name('dashboard');
|
|
|
|
Route::get('/time', function () {
|
|
return Inertia::render('Time');
|
|
})->name('time');
|
|
|
|
Route::get('/calendar', function () {
|
|
return Inertia::render('Calendar');
|
|
})->name('calendar');
|
|
|
|
Route::get('/timesheet', function () {
|
|
return Inertia::render('Timesheet');
|
|
})->name('timesheet');
|
|
|
|
Route::get('/reporting', function () {
|
|
return Inertia::render('Reporting');
|
|
})->name('reporting');
|
|
|
|
Route::get('/reporting/detailed', function () {
|
|
return Inertia::render('ReportingDetailed');
|
|
})->name('reporting.detailed');
|
|
|
|
Route::get('/reporting/shared', function () {
|
|
return Inertia::render('ReportingShared');
|
|
})->name('reporting.shared');
|
|
|
|
Route::get('/projects', function () {
|
|
return Inertia::render('Projects');
|
|
})->name('projects');
|
|
|
|
Route::get('/projects/{project}', function () {
|
|
return Inertia::render('ProjectShow');
|
|
})->name('projects.show');
|
|
|
|
Route::get('/clients', function () {
|
|
return Inertia::render('Clients');
|
|
})->name('clients');
|
|
|
|
Route::get('/members', function () {
|
|
return Inertia::render('Members', [
|
|
'availableRoles' => array_values(Jetstream::$roles),
|
|
]);
|
|
})->name('members');
|
|
|
|
Route::get('/tags', function () {
|
|
return Inertia::render('Tags');
|
|
})->name('tags');
|
|
|
|
Route::get('/import', function () {
|
|
return Inertia::render('Import');
|
|
})->name('import');
|
|
|
|
});
|