Commit a17f469a by Bagus Pambudi

fix bug information

parent 8c79c027
......@@ -23,23 +23,23 @@ class InformationController extends Controller
if (Session::get('selected_language') == 'id') {
$data = $this->getDataId($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.information', $data)->withTitle('Informasi');
return view('webprofile.front.'.$setting['theme'].'.information', $data)->withTitle('Pengumuman');
} elseif (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.en.information', $data)->withTitle('Informasi');
return view('webprofile.front.'.$setting['theme'].'.en.information', $data)->withTitle('Information');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.information', $data)->withTitle('Informasi');
return view('webprofile.front.'.$setting['theme'].'.de.information', $data)->withTitle('Information');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.ar.information', $data)->withTitle('Informasi');
return view('webprofile.front.'.$setting['theme'].'.ar.information', $data)->withTitle('معلومة');
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.zh.information', $data)->withTitle('Informasi');
return view('webprofile.front.'.$setting['theme'].'.zh.information', $data)->withTitle('信息');
}
}
......
......@@ -104,6 +104,7 @@ class InformationController2 extends Controller
{
$setting = webprofilesetting();
$data = Information::with(['rDe'])->where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$resend = Posts::with(['rDe'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rDe'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$informations = Information::with(['rDe'])->where('info_status', '1')->orderBy('event_date', 'desc')->limit('5')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment