芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/public_html/app/Http/Controllers/Frontend/PageController.php
id)->where('page_name', 'page-detail-show')->first(); if ($page_builder === null) { $page_builder = PageBuilder::where('page_name', 'page-detail-show')->first(); } // Retrieve models $header_info_style1 = HeaderInfo::where('language_id', $language->id)->where('style', 'style1')->first(); $socials = Social::where('status', 1)->get(); $header_image_style1 = HeaderImage::where('style', 'style1')->first(); $external_url = ExternalUrl::where('language_id', $language->id)->first(); $contact_info_widget_style1 = ContactInfoWidget::where('language_id', $language->id)->where('style', 'style1')->first(); $menus = Menu::with('submenus') ->where('language_id', $language->id) ->where('status', 'published') ->orderBy('order', 'asc') ->get(); $page = Page::where('pages.page_slug', '=', $page_slug) ->first(); if (!isset($page)) { abort(404); } $footer_image_style1 = FooterImage::where('style', 'style1')->first(); $site_info = SiteInfo::where('language_id', $language->id)->first(); $footers = Footer::join("footer_categories", 'footer_categories.id', '=', 'footers.category_id') ->where('footer_categories.language_id', $language->id) ->where('footer_categories.status', 1) ->where('footers.status', 'published') ->orderBy('footers.id', 'asc') ->get(); $footer_categories = FooterCategory::where('language_id', $language->id) ->where('footer_categories.status', 1) ->orderBy('order', 'asc') ->get(); return view('frontend.page.show', compact('preloader', 'favicon', 'seo', 'google_analytic', 'tawk_to', 'bottom_button_widget', 'side_button_widget', 'color_option', 'breadcrumb_image', 'font','draft_view', 'socials', 'external_url', 'contact_info_widget_style1', 'menus', 'page', 'header_info_style1', 'header_image_style1', 'footer_image_style1', 'site_info', 'footers', 'footer_categories', 'page_builder')); } }