public function index()
 {
     $title = "Designs";
     $portraitRowIndex = 2;
     $landscapeRowIndex = 3;
     $designCollection = Designs::where('visible', true)->get();
     $total = count($designCollection);
     return view('frontend.designIndex', compact('designCollection', 'landscapeRowIndex', 'portraitRowIndex', 'title', 'total'));
 }
 public function index()
 {
     $title = 'Thinner | Colder';
     $featuredProducts = Products::where('featured', true)->get();
     $featuredDesigns = Designs::where('featured', true)->get();
     for ($index = 0; $index < $featuredProducts->count(); $index++) {
         //$prices = Pricing::where('product_id', $featuredProducts[$index]->id)->get();
         //$ordered = $prices->sortBy('pricing');
         //$lowest = $ordered->first();
         $id = $featuredProducts[$index]->id;
         $featuredProducts[$index]->lowestPrice = Pricing::LowestPrice($id);
     }
     return view('frontend.home', compact('title', 'featuredDesigns', 'featuredProducts'));
 }