public function create() { $advertising = Advertising::all()->first(); if ($advertising) { return View::make('admin.advertising.add', ['error' => 'none', 'demographics' => $advertising->demographics, 'rates' => $advertising->rates]); } else { return View::make('admin.advertising.add', ['error' => 'none', 'demographics' => null, 'rates' => null]); } }
public function create() { return View::make('admin.advertising.add', ['advertising' => Advertising::all(), 'add_failed' => 'false']); }