Exemple #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id
  *
  * @return Response
  */
 public function edit(Ad $ad)
 {
     $adtype = $ad->adtype;
     $fields = getAdFields($ad);
     return ['data' => compact('ad', 'adtype', 'fields')];
 }
Exemple #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id
  *
  * @return Response
  */
 public function edit(Ad $ad)
 {
     $adtype = $ad->adtype;
     $fields = getAdFields($ad);
     return view_backend('ad.edit', compact('ad', 'adtype', 'fields'));
 }
Exemple #3
0
 /**
  * Display widget.
  *
  * @return Response
  */
 public function run()
 {
     $ad = Request::route()->parameter('adValidated') ?: Request::route()->parameter('adPreview');
     return view('widget_frontend_theme_addetails::index', ['ad' => $ad, 'fields' => getAdFields($ad)]);
 }