Add route and logic to create a new invoice directly from the sidebar

This commit is contained in:
2025-10-22 16:52:16 +02:00
parent 914a085e25
commit a1c56ad5a5
3 changed files with 11 additions and 3 deletions
+4
View File
@@ -40,6 +40,10 @@
return Inertia::render('Invoices');
})->middleware(['auth', 'verified'])->name('invoices');
Route::get('invoices?action=new', function () {
return Inertia::render('Invoices');
})->middleware(['auth', 'verified'])->name('newInvoice');
Route::get('invoice/{id}', [InvoiceController::class, 'preview'])
->middleware(['auth', 'verified'])
->name('invoice.preview');