Example #1
0
 public function index(ProductService $product)
 {
     $this->data['filters'] = $this->getFilters();
     $this->data['new_items'] = $product->newlyAdded();
     $this->data['half_priced'] = $product->halfPriced();
     return view('site.index', $this->data);
 }
Example #2
0
 public function show(ProductService $product, $username)
 {
     $this->member = Member::where('slug', $username)->first();
     $this->data['member']['info'] = $this->getInfo();
     $this->data['member']['rankings'] = $this->getRankings();
     $this->data['member']['feedbacks'] = $this->getFeedbacks();
     $this->data['product']['filters'] = $this->getFilters();
     $this->data['product']['items'] = $this->getFilteredItems();
     $this->data['products'] = $product->merchantProducts($this->member->id);
     return view('membership.index', $this->data);
 }