Files
Toiminnanohjaus/app/Modules/Reports/Presentation/Routes/web.php
T
petriandClaude Sonnet 5.5 8079c272d2 Add the expense reimbursements report
The expenses employees paid themselves in a period, by person with
kilometres and amounts, printable and as CSV for payroll.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:46:22 +02:00

16 lines
677 B
PHP

<?php
use App\Modules\Reports\Presentation\Http\Controllers\DownloadReport;
use Illuminate\Support\Facades\Route;
Route::middleware(['web', 'auth', 'can:reports.view'])
->prefix('reports')
->name('reports.')
->group(function () {
Route::livewire('/hours', 'reports::hours')->name('hours');
Route::livewire('/unbilled', 'reports::unbilled')->name('unbilled');
Route::livewire('/sales', 'reports::sales')->name('sales');
Route::livewire('/reimbursements', 'reports::reimbursements')->name('reimbursements');
Route::get('/{report}/csv', DownloadReport::class)->whereIn('report', DownloadReport::REPORTS)->name('csv');
});