mivita/dev/payment-dashboard/routes/payment-dashboard.php
2026-04-14 18:07:45 +02:00

35 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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');
});