konfigurasi_model = new Konfigurasi_model(); $this->galeri_model = new Galeri_model(); $this->berita_model = new Berita_model(); $this->staff_model = new Staff_model(); $this->prestasi_model = new Prestasi_model(); $this->video_model = new Video_model(); $this->client_model = new Client_model(); } // index public function index() { $site = $this->konfigurasi_model->listing(); $galeri = $this->galeri_model->jenis_galeri_pop('Homepage'); $popup = $this->galeri_model->jenis_galeri_pop('Pop Up'); $keunggulan = $this->berita_model->jenis_publish('Keunggulan'); $berita = $this->berita_model->beranda('Berita',6); $staff = $this->staff_model->home(6); $prestasi = $this->prestasi_model->home(6,'Publish'); $video = $this->video_model->home(); $client = $this->client_model->home(); $data = [ 'title' => $site->namaweb.' | '.$site->tagline, 'description' => $site->deskripsi, 'keywords' => $site->keywords, 'site' => $site, 'slider' => $galeri, 'popup' => $popup, 'keunggulan' => $keunggulan, 'berita' => $berita, 'staff' => $staff, 'prestasi' => $prestasi, 'video' => $video, 'client' => $client, 'content' => 'home/index' ]; return view('layout/wrapper',$data); } // oops public function oops() { $m_site = new Konfigurasi_model(); $site = $m_site->listing(); $data = [ 'title' => 'Oops... Mohon Maaf', 'description' => 'Oops... Mohon Maaf', 'keywords' => 'Oops... Mohon Maaf', 'site' => $site, 'content' => 'home/oops' ]; return view('layout/wrapper',$data); } // welcome public function welcome() { return view('welcome_message'); } }