| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function page($category_id=null){ |
||
| 15 | $products = Template::getProducts($category_id); |
||
| 16 | $category = Category::find($category_id); |
||
| 17 | $category_name = ''; |
||
| 18 | $category_description = ''; |
||
| 19 | if($category){ |
||
| 20 | $category_name = $category->name; |
||
| 21 | }; |
||
| 22 | return view('mongicommerce.pages.shop',compact('products','category_name','category_description')); |
||
| 23 | } |
||
| 25 |