Allow printing of blank sheet of cards
This commit is contained in:
parent
5bbcccdc22
commit
a5b203af2e
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue