Skip to content

Commit

Permalink
List of products and side bar with categories was added
Browse files Browse the repository at this point in the history
  • Loading branch information
vilgefortzz committed Apr 19, 2017
1 parent afc74cf commit f6b22aa
Show file tree
Hide file tree
Showing 20 changed files with 1,335 additions and 1,115 deletions.
4 changes: 3 additions & 1 deletion app/Http/Controllers/SubcategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ class SubcategoryController extends Controller
{
public function showAllProducts(Subcategory $subcategory){

$categories = Category::all();
$category = $subcategory->category;
$products = $subcategory->products;

return view('subcategories.subcategory_products', compact('subcategory','products'));
return view('subcategories.subcategory_products', compact('categories','category','subcategory','products'));
}
}
69 changes: 65 additions & 4 deletions public/css/app.css

Large diffs are not rendered by default.

Loading

0 comments on commit f6b22aa

Please sign in to comment.