Management's reports (spec 13) get their own module that reads the other modules through ports. The first report sums hours by person in a period, narrowed by service unit or customer, with breakdowns, a chart and CSV. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
13 lines
437 B
PHP
13 lines
437 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::get('/{report}/csv', DownloadReport::class)->whereIn('report', DownloadReport::REPORTS)->name('csv');
|
|
});
|