Commit 75d1b329 by Bagus Pambudi

fix bug

parent c2898b70
......@@ -250,7 +250,7 @@ class CategoryController extends Controller
*/
public function destroy($id)
{
$data = $this->repo->findId($id, ['rEn', 'berita']);
$data = $this->repo->findId($id, ['rEn', 'rDe', 'rSa', 'rZh', 'berita']);
if (count($data->berita) <= 0) {
$this->repo->destroy($data);
......
......@@ -35,11 +35,11 @@ class AgendaController extends Controller
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('Agenda');
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('جدول أعمال');
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting);
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('Agenda');
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('议程');
}
}
......
......@@ -30,15 +30,15 @@ class ArchiveController extends Controller
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Archive');
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Archiv');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('Archive');
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('أرشيف');
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting);
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('Archive');
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('封存');
}
}
......
......@@ -22,23 +22,23 @@ class CategoryController extends Controller
if (Session::get('selected_language') == 'id') {
$data = $this->getDataId($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.archive', $data)->withTitle('Arsip');
return view('webprofile.front.'.$setting['theme'].'.archive', $data)->withTitle('Kategori');
} elseif (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Archive');
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Category');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Archive');
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Kategorie');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('Archive');
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('الفئة');
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('Archive');
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('类别');
}
}
......
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