Verleih 1.0.0: Verleihsystem für Inhaus
Übersicht mit Status und Standort, Anfragen im Portal (Benachrichtigung + E-Mail ans Team), Zusagen/Absagen mit automatischem Eintrag, Zurücknehmen, Recht „Verleih verwalten“, einstellbare Bezeichnungen und Übernahme aus dem WordPress-Plugin „FL-Verleihsystem“ (WXR mit Bildern). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
14aaa16b30
47 changed files with 4208 additions and 0 deletions
23
routes/web.php
Normal file
23
routes/web.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inhaus\Plugins\Verleih\Http\Controllers\ItemController;
|
||||
use Inhaus\Plugins\Verleih\Http\Controllers\RequestController;
|
||||
|
||||
Route::middleware('auth')->prefix('verleih')->name('verleih.')->group(function () {
|
||||
Route::get('/', [ItemController::class, 'index'])->name('index');
|
||||
Route::get('/neu', [ItemController::class, 'create'])->name('create');
|
||||
Route::post('/', [ItemController::class, 'store'])->name('store');
|
||||
Route::get('/anfragen', [RequestController::class, 'index'])->name('requests');
|
||||
Route::post('/anfragen/{loanRequest}/zusagen', [RequestController::class, 'accept'])->name('requests.accept');
|
||||
Route::post('/anfragen/{loanRequest}/absagen', [RequestController::class, 'decline'])->name('requests.decline');
|
||||
Route::delete('/anfragen/{loanRequest}', [RequestController::class, 'cancel'])->name('requests.cancel');
|
||||
Route::get('/bilder/{item}/{size}', [ItemController::class, 'image'])->whereIn('size', ['thumb', 'full'])->name('image');
|
||||
|
||||
Route::get('/{item}', [ItemController::class, 'show'])->whereNumber('item')->name('show');
|
||||
Route::get('/{item}/bearbeiten', [ItemController::class, 'edit'])->whereNumber('item')->name('edit');
|
||||
Route::post('/{item}', [ItemController::class, 'update'])->whereNumber('item')->name('update'); // POST wegen Foto-Upload
|
||||
Route::delete('/{item}', [ItemController::class, 'destroy'])->whereNumber('item')->name('destroy');
|
||||
Route::post('/{item}/anfragen', [RequestController::class, 'store'])->whereNumber('item')->middleware('throttle:10,60')->name('request');
|
||||
Route::post('/{item}/zurueck', [ItemController::class, 'giveBack'])->whereNumber('item')->name('return');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue