Files
petriandClaude Sonnet 5.5 bc3dbf16a4 Show a monthly fee job's billed periods on a page of its own
The new billing::job-months page lists the months that created billing
materials have billed for a monthly fee job, with links to the materials
and the total, and the months still to bill up to the current month,
counted the same way as a new material counts them. The job page links
to it next to the payment basis for those who manage billing.

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

15 lines
627 B
PHP

<?php
use App\Modules\Billing\Presentation\Http\Controllers\DownloadBillingCsv;
use Illuminate\Support\Facades\Route;
Route::middleware(['web', 'auth', 'can:billing.manage'])
->prefix('billing')
->name('billing.')
->group(function () {
Route::livewire('/', 'billing::index')->name('index');
Route::livewire('/{export}', 'billing::export')->whereNumber('export')->name('export');
Route::get('/{export}/csv', DownloadBillingCsv::class)->whereNumber('export')->name('csv');
Route::livewire('/jobs/{job}/months', 'billing::job-months')->whereNumber('job')->name('job-months');
});