Feat: Updating Home, Product and Category Controllers and veiws to utilize the product service

This commit is contained in:
2026-08-27 00:55:56 +03:00
parent 65205e2760
commit b3405c1b60
7 changed files with 83 additions and 93 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ public function index(string $locale)
'name' => $product->translateAttribute('name'),
'price' => $product->variants->first()?->prices->first()?->price->decimal,
'image' => $product->media->first()?->getUrl(),
'href' => route('product.show', ['product' => $product]),
'href' => route('product.show', ['id' => $product->id]),
]);
return view('home', [