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

58 lines
1.7 KiB
PHP
Raw Normal View History

2025-10-20 08:57:51 +02:00
<?php
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use App\Http\Controllers\InvoiceController;
2025-11-18 10:27:49 +01:00
use App\Http\Controllers\CustomerController;
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');
// Timesheets
Route::get('timesheets', function () {
return Inertia::render('Timesheets');
})->name('timesheets');
});
2025-10-20 08:57:51 +02:00
require __DIR__ . '/settings.php';
require __DIR__ . '/auth.php';