users = User::where('warehouse_id', auth()->user()->warehouse_id) ->where('role', RoleEnum::DRIVER) ->get(); } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.select-driver'); } }