Two month of work

This commit is contained in:
2026-02-17 10:35:03 +01:00
parent 0ffbeeedff
commit d9fd3d1ccb
158 changed files with 5637 additions and 1512 deletions
+21 -8
View File
@@ -12,21 +12,29 @@
use App\Http\Controllers\UnitController;
use App\Mail\OrderConfirmation;
use App\Services\CaldavService;
use App\Http\Controllers\TimesheetController;
use App\Http\Controllers\TimesheetEntryController;
use App\Http\Controllers\PipelineController;
use App\Http\Controllers\PipelineItemController;
Route::get('/pipeline', [PipelineController::class, 'index']);
Route::post('/pipeline/positions', [PipelineController::class, 'updatePositions']);
Route::get('/pipelineItems', [PipelineItemController::class, 'index']);
Route::get('/pipelineItems/{id}', [PipelineItemController::class, 'single']);
Route::post('/pipelineItems', [PipelineItemController::class, 'store']);
Route::put('/pipelineItems/{id}', [PipelineItemController::class, 'update']);
Route::delete('/pipelineItems/{id}', [PipelineItemController::class, 'delete']);
Route::get('/customers/{id}', [CustomerController::class, 'single']);
Route::get('/customers', [CustomerController::class, 'index']);
Route::get('/customers/{id}/notes', [NoteController::class, 'index'])
->defaults('modelType', 'customer')
->name('customers.notes.index');
Route::post('/customers/{id}/notes', [NoteController::class, 'store'])
->defaults('modelType', 'customer')
Route::get('/notes/{modelType}/{notableId}', [NoteController::class, 'index']);
Route::delete('/notes/{id}', [NoteController::class, 'delete']);
Route::post('/notes', [NoteController::class, 'store'])
->name('customers.notes.store');
Route::delete('/notes/{id}', [NoteController::class, 'delete']);
Route::get('/todo-types', function () {
return \App\Models\TodoType::all();
});
@@ -99,3 +107,8 @@
Route::post('/settings', [SettingController::class, 'update']);
Route::apiResource('/units', UnitController::class);
Route::apiResource('timesheets', TimesheetController::class);
Route::get('timesheets/{timesheet}/entries', [TimesheetEntryController::class, 'getEntriesForTimesheet']);
Route::apiResource('timesheet-entries', TimesheetEntryController::class);
Route::patch('timesheet-entries/{timesheetEntry}/toggle-billed', [TimesheetEntryController::class, 'toggleBilled']);
+6 -10
View File
@@ -9,23 +9,20 @@
use App\Http\Controllers\InvoiceController;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\ProductController;
use App\Models\Setting;
use App\Http\Controllers\TimesheetController;
use App\Http\Controllers\PipelineController;
Route::middleware('auth')->group(function () {
// Dashboard
Route::get('/', function () {
return Inertia::render('Dashboard');
})->name('home');
Route::redirect('/', '/dashboard');
Route::get('dashboard', function () {
return Inertia::render('Dashboard');
})->name('dashboard');
// CRM
Route::get('crm', function () {
return Inertia::render('CRM');
})->name('crm');
Route::get('pipeline', [PipelineController::class, 'show'])->name('pipeline');
// Offers
Route::get('offers', function () {
@@ -55,9 +52,8 @@
// Products
Route::get('products', [ProductController::class, 'show'])->name('products');
Route::get('timesheets', function () {
return Inertia::render('Timesheets');
})->name('timesheets');
// Timesheets
Route::get('timesheets', [TimesheetController::class, 'show'])->name('timesheets');
// Procedural Documentation
Route::get('proceduralDocumentation', function () {