Allow printing of blank sheet of cards

This commit is contained in:
Matt Young 2025-11-16 15:29:33 -06:00
parent 5bbcccdc22
commit a5b203af2e
1 changed files with 9 additions and 5 deletions

View File

@ -28,10 +28,14 @@ class PrintCards extends Controller
public function print(\App\Actions\Print\PrintCards $printer) public function print(\App\Actions\Print\PrintCards $printer)
{ {
// dump(request()->all()); // dump(request()->all());
if (request()->audition == null) { // if (request()->audition == null) {
return redirect()->back()->with('error', 'You must specify at least one audition'); // return redirect()->back()->with('error', 'You must specify at least one audition');
} // }
if (request()->audition) {
$selectedAuditionIds = array_keys(request()->audition); $selectedAuditionIds = array_keys(request()->audition);
} else {
$selectedAuditionIds = [];
}
$cardQuery = Entry::whereIn('audition_id', $selectedAuditionIds); $cardQuery = Entry::whereIn('audition_id', $selectedAuditionIds);
// Process Filters // Process Filters