/** * Display a listing of the resource. * * @return Response */ public function index() { $agent = new Agent(); $set = Set::with('media', 'squares.purchase.media', 'content', 'rewards')->where('id', 1)->first(); if ($agent->isMobile() || $agent->isTablet()) { return view('public.mobile.index', ['set' => $set]); } return view('public.index', ['set' => $set]); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { return Set::with('rewards.media')->where('id', $id)->first(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $set = Set::with('squares.purchase')->where('id', 1)->first(); return view('admin.set', ['set' => $set]); }
/** * Display the grid to generate a large image from * /admin/set/content * @return Response */ public function content() { $set = Set::with('squares.purchase.media', 'content', 'rewards')->where('id', 1)->first(); return view('admin.set.content', ['set' => $set]); }
/** * Display a listing of the resource. * * @return Response */ public function thanks($purchase_id) { $purchase = Purchase::find($purchase_id); $set = Set::with('squares.purchase.media')->where('id', 1)->first(); return view('public.thanks', ['set' => $set, 'purchase' => $purchase]); }