public function getCreate($data = null) { // ------------------------------------------------------------------------------------------------------------ // GET TRAVEL AGENTS // ------------------------------------------------------------------------------------------------------------ $travel_agents = \App\TravelAgent::orderBy('name')->get(); // ------------------------------------------------------------------------------------------------------------ // GET DESTINATIONS // ------------------------------------------------------------------------------------------------------------ $destinations = \App\Destination::orderBy('path')->get(); // ------------------------------------------------------------------------------------------------------------ // GET PLACES // ------------------------------------------------------------------------------------------------------------ $places = \App\Place::orderBy('long_name')->get(); // ------------------------------------------------------------------------------------------------------------ // GET TOUR OPTIONS // ------------------------------------------------------------------------------------------------------------ $tour_options = \App\TourOption::orderBy('name')->get(); // ------------------------------------------------------------------------------------------------------------ // GET TAGS // ------------------------------------------------------------------------------------------------------------ $tag_list = \App\Tag::orderBy('tag')->get(); // ------------------------------------------------------------------------------------------------------------ // SHOW DISPLAY // ------------------------------------------------------------------------------------------------------------ $this->layout->page = view($this->page_base_dir . 'create')->with('route_name', $this->route_name)->with('view_name', $this->view_name); $this->layout->page->data = $data; $this->layout->page->travel_agents = $travel_agents; $this->layout->page->destinations = $destinations; $this->layout->page->places = $places; $this->layout->page->tour_options = $tour_options; $this->layout->page->tag_list = $tag_list; $this->layout->page->required_images = $this->required_images; return $this->layout; }
public function getCreate($data = null) { // ------------------------------------------------------------------------------------------------------------ // DESTINATIONS // ------------------------------------------------------------------------------------------------------------ $travel_agents = \App\TravelAgent::orderBy('name')->get(); // ------------------------------------------------------------------------------------------------------------ // SHOW DISPLAY // ------------------------------------------------------------------------------------------------------------ $this->layout->page = view($this->page_base_dir . 'create')->with('route_name', $this->route_name)->with('view_name', $this->view_name); $this->layout->page->data = $data; $this->layout->page->travel_agents = $travel_agents; $this->layout->page->required_images = $this->required_images; $this->layout->page->destinations = $destinations; return $this->layout; }
public function HeadlineCreate($data = null) { $this->required_images = ['LargeImage' => 'Large Image (1400x500px)']; // ------------------------------------------------------------------------------------------------------------ // DESTINATIONS // ------------------------------------------------------------------------------------------------------------ $travel_agents = \App\TravelAgent::orderBy('name')->get(); // ------------------------------------------------------------------------------------------------------------ // SHOW DISPLAY // ------------------------------------------------------------------------------------------------------------ $this->layout->page = view($this->page_base_dir . 'headlines.create')->with('route_name', $this->route_name)->with('view_name', $this->view_name); $this->layout->page->data = $data; $this->layout->page->travel_agents = $travel_agents; $this->layout->page->required_images = $this->required_images; $this->layout->page->destinations = $destinations; return $this->layout; }