This repository has been archived on 2025-12-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Caramel-CRM-Backup/routes/web.php
T
2025-11-26 10:05:43 +01:00

68 lines
2.0 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use App\Http\Controllers\InvoiceController;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\ProductController;
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');
// 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';