2025-10-20 08:57:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
use Inertia\Inertia;
|
2025-12-02 17:32:52 +01:00
|
|
|
use App\Http\Controllers\TodoController;
|
2025-10-20 08:57:51 +02:00
|
|
|
use App\Http\Controllers\InvoiceController;
|
2025-11-18 10:27:49 +01:00
|
|
|
use App\Http\Controllers\CustomerController;
|
2025-11-26 10:05:43 +01:00
|
|
|
use App\Http\Controllers\ProductController;
|
2025-11-18 10:27:49 +01:00
|
|
|
|
|
|
|
|
Route::middleware('auth')->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');
|
|
|
|
|
|
2025-11-26 10:05:43 +01:00
|
|
|
// Products
|
|
|
|
|
Route::get('products', [ProductController::class, 'show'])->name('products');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-18 10:27:49 +01:00
|
|
|
Route::get('timesheets', function () {
|
|
|
|
|
return Inertia::render('Timesheets');
|
|
|
|
|
})->name('timesheets');
|
2025-11-26 10:05:43 +01:00
|
|
|
|
2025-11-21 08:36:31 +01:00
|
|
|
// Procedural Documentation
|
|
|
|
|
Route::get('proceduralDocumentation', function () {
|
|
|
|
|
return Inertia::render('ProceduralDocumentation');
|
|
|
|
|
})->name('proceduralDocumentation');
|
2025-11-18 10:27:49 +01:00
|
|
|
});
|
2025-10-20 08:57:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
require __DIR__ . '/settings.php';
|
|
|
|
|
require __DIR__ . '/auth.php';
|