forked from TFMM/silent-auction
fix: pass judges and vehicles data to judgingentry view
This commit is contained in:
@@ -378,7 +378,9 @@ class PagesController extends Controller
|
|||||||
public function judgingentry(Request $judgingentry_req)
|
public function judgingentry(Request $judgingentry_req)
|
||||||
{
|
{
|
||||||
if (!$judgingentry_req->vehnum) {
|
if (!$judgingentry_req->vehnum) {
|
||||||
return view('judgingentry');
|
$judges = \App\Models\Judges::all();
|
||||||
|
$vehicles = \App\Models\Vehicles::all();
|
||||||
|
return view('judgingentry', ['judges' => $judges, 'vehicles' => $vehicles]);
|
||||||
}
|
}
|
||||||
$vehicle = $judgingentry_req->vehnum;
|
$vehicle = $judgingentry_req->vehnum;
|
||||||
$judge = $judgingentry_req->judgenum;
|
$judge = $judgingentry_req->judgenum;
|
||||||
|
|||||||
Reference in New Issue
Block a user