group(function () { // Dashboard Route::get('/', function () { return Inertia::render('Dashboard'); })->name('home'); Route::get('dashboard', function () { return Inertia::render('Dashboard'); })->name('dashboard'); // CRM Route::get('crm', function () { return Inertia::render('CRM'); })->name('crm'); // Offers Route::get('offers', function () { return Inertia::render('Offers'); })->name('offers'); // Customers Route::get('customers', [CustomerController::class, 'show'])->name('customers'); // Leads Route::get('leads', function () { return Inertia::render('Leads'); })->name('leads'); // Achievements Route::get('achievements', function () { return Inertia::render('Achievements'); })->name('achievements'); // Invoices Route::get('invoices', [InvoiceController::class, 'show'])->name('invoices'); Route::get('invoices?action=new', [InvoiceController::class, 'show'])->name('newInvoice'); Route::get('invoice/{id}', [InvoiceController::class, 'preview'])->name('invoicePreview'); Route::get('invoice/{id}/pdf', [InvoiceController::class, 'exportPdf'])->name('invoiceExportPdf'); Route::get('invoice/{id}/xml', [InvoiceController::class, 'exportXml'])->name('invoiceExportXml'); // Products Route::get('products', [ProductController::class, 'show'])->name('products'); Route::get('timesheets', function () { return Inertia::render('Timesheets'); })->name('timesheets'); // Procedural Documentation Route::get('proceduralDocumentation', function () { return Inertia::render('ProceduralDocumentation'); })->name('proceduralDocumentation'); }); require __DIR__ . '/settings.php'; require __DIR__ . '/auth.php';