コード例 #1
0
 /**
  * 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]);
 }
コード例 #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     return Set::with('rewards.media')->where('id', $id)->first();
 }
コード例 #3
0
 /**
  * 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]);
 }
コード例 #4
0
 /**
  * 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]);
 }
コード例 #5
0
 /**
  * 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]);
 }