Files
Toiminnanohjaus/app/Modules/Reports/Presentation/Routes/web.php
T
petriandClaude Sonnet 5.5 a57b383e4d Add the unbilled hours report
Hours on customers' billable jobs that no billing material has taken,
by job and work type up to a day, valued at the hourly rates for jobs
billed by the hour, with a chart by service unit and CSV.

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

14 lines
514 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::get('/{report}/csv', DownloadReport::class)->whereIn('report', DownloadReport::REPORTS)->name('csv');
});