Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp into master
This commit is contained in:
@@ -164,7 +164,10 @@ class WashingReservationController extends Controller
|
||||
|
||||
$machines = WashingMachine::all();
|
||||
|
||||
$reservations = WashingReservation::query()->where("time", "LIKE", substr($date, 1, strpos($date, "T"))."%")->get();
|
||||
if($request->machine_id == 0)
|
||||
$request->machine_id = WashingMachine::all()->first()->id;
|
||||
|
||||
$reservations = WashingReservation::query()->where("machine_id", "=", $request->machine_id)->where("time", "LIKE", substr($date, 1, strpos($date, "T"))."%")->get();
|
||||
|
||||
$times = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user