Great question — answering as the UphillTech team:
Both of those errors mean that properties that you are trying to access can't be accessed because the object on which you are trying to access them is null or non-existent. So, for the first screenshot in blade file you probably don't have $product variable available, or on $product (if it is available) category is not defined. In the second screenshot $product->category is not available again, which probably means that on $product you don't have category available. Make sure you are providing category together with $product from the controller. You can do something like $products->with('category') . Also, to debug if you have or don't have category on the product try doing {{ dd($product)...
Full answer by Ben: https://stackoverflow.stackexchange.com/a/66619829 (CC BY-SA 4.0).
Need it done for your business? UphillTech.