Bewerbungsformular update

This commit is contained in:
Nils Bonorden committed 2025-10-24 15:05:16 +02:00
1 parent 20558065ad
commit bdb62a6ce2
13 files changed
+646 -171

No files matched your search

@@ -0,0 +1,33 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Bewerbung;
use Illuminate\Http\Request;
class BewerbungAdminController extends Controller
{
// Übersicht aller Runden
public function index(Request $request)
{
$bewerbungen = Bewerbung::query()
->withCount('applications')
->orderByDesc('start_at')
->orderBy('name')
->paginate(20);
return view('admin.bewerbungen.index', compact('bewerbungen'));
}
// Detailseite einer Runde mit Bewerbungs-Tabelle
public function show(Bewerbung $bewerbung)
{
$applications = $bewerbung->applications()
->with('band')
->latest()
->paginate(25);
return view('admin.bewerbungen.show', compact('bewerbung','applications'));
}
}