public function show($id)
 {
     $design_collection = Designs::all();
     $art_collection = Products::all();
     $displayed_design = Designs::findorfail($id);
     return view('backend.admin.design.edit', compact('design_collection', 'art_collection', 'displayed_design', 'displayed_art'));
 }
 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'));
 }
 public function create()
 {
     $disign_collection = Designs::all();
     $art_collection = Products::all();
     return view('backend.admin.artwork.create', compact('art_collection'));
 }
 public function index()
 {
     $art_collection = Products::all();
     $design_collection = Designs::all();
     return view('backend.admin.dashboard', compact('art_collection', 'design_collection'));
 }