35 lines
1.4 KiB
PHP
35 lines
1.4 KiB
PHP
<?php
|
||
|
||
use App\Http\Controllers\PaymentDashboardController;
|
||
use Illuminate\Support\Facades\Route;
|
||
|
||
// ─── Payment Dashboard Routes ─────────────────────────────────────────────────
|
||
// In web.php einbinden mit: require base_path('routes/payment-dashboard.php');
|
||
// Oder direkt in web.php einfügen.
|
||
|
||
Route::prefix('payment-dashboard')->name('payment-dashboard.')->middleware(['auth'])->group(function () {
|
||
|
||
// GF-Ansicht (Alois) – vereinfacht, nur lesen
|
||
Route::get('/management', [PaymentDashboardController::class, 'management'])
|
||
->name('management');
|
||
|
||
// Entwickler-Ansicht (Kevin) – voller Zugriff
|
||
Route::get('/', [PaymentDashboardController::class, 'developer'])
|
||
->name('developer');
|
||
|
||
// Incident Detail
|
||
Route::get('/{incident}', [PaymentDashboardController::class, 'show'])
|
||
->name('show');
|
||
|
||
// Neuen Incident anlegen
|
||
Route::post('/', [PaymentDashboardController::class, 'store'])
|
||
->name('store');
|
||
|
||
// Aktivität zu Incident hinzufügen
|
||
Route::post('/{incident}/activity', [PaymentDashboardController::class, 'addActivity'])
|
||
->name('activity.store');
|
||
|
||
// Status eines Incidents ändern
|
||
Route::patch('/{incident}/status', [PaymentDashboardController::class, 'updateStatus'])
|
||
->name('status.update');
|
||
});
|