Commit b9a1871c by Siti Aisah

translate keyword agenda dan informasi

parent 9ecb5e58
...@@ -116,6 +116,7 @@ class AgendaController extends Controller ...@@ -116,6 +116,7 @@ class AgendaController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -125,6 +126,7 @@ class AgendaController extends Controller ...@@ -125,6 +126,7 @@ class AgendaController extends Controller
$dataEn['agenda_id'] = $agenda->id; $dataEn['agenda_id'] = $agenda->id;
$dataEn['title'] = $title; $dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content; $dataEn['content'] = $content;
$this->repoEn->store($dataEn); $this->repoEn->store($dataEn);
...@@ -134,6 +136,7 @@ class AgendaController extends Controller ...@@ -134,6 +136,7 @@ class AgendaController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -143,6 +146,7 @@ class AgendaController extends Controller ...@@ -143,6 +146,7 @@ class AgendaController extends Controller
$dataDe['agenda_id'] = $agenda->id; $dataDe['agenda_id'] = $agenda->id;
$dataDe['title'] = $title; $dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content; $dataDe['content'] = $content;
$this->repoDe->store($dataDe); $this->repoDe->store($dataDe);
...@@ -152,6 +156,7 @@ class AgendaController extends Controller ...@@ -152,6 +156,7 @@ class AgendaController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -161,6 +166,7 @@ class AgendaController extends Controller ...@@ -161,6 +166,7 @@ class AgendaController extends Controller
$dataSa['agenda_id'] = $agenda->id; $dataSa['agenda_id'] = $agenda->id;
$dataSa['title'] = $title; $dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content; $dataSa['content'] = $content;
$this->repoSa->store($dataSa); $this->repoSa->store($dataSa);
...@@ -170,6 +176,7 @@ class AgendaController extends Controller ...@@ -170,6 +176,7 @@ class AgendaController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -179,6 +186,7 @@ class AgendaController extends Controller ...@@ -179,6 +186,7 @@ class AgendaController extends Controller
$dataZh['agenda_id'] = $agenda->id; $dataZh['agenda_id'] = $agenda->id;
$dataZh['title'] = $title; $dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content; $dataZh['content'] = $content;
$this->repoZh->store($dataZh); $this->repoZh->store($dataZh);
...@@ -255,6 +263,11 @@ class AgendaController extends Controller ...@@ -255,6 +263,11 @@ class AgendaController extends Controller
$request['title_de'] = strip_tags($request->title_de); $request['title_de'] = strip_tags($request->title_de);
$request['title_sa'] = strip_tags($request->title_sa); $request['title_sa'] = strip_tags($request->title_sa);
$request['title_zh'] = strip_tags($request->title_zh); $request['title_zh'] = strip_tags($request->title_zh);
$request['keys'] = strip_tags($request->keys);
$request['keys_en'] = strip_tags($request->keys_en);
$request['keys_de'] = strip_tags($request->keys_de);
$request['keys_sa'] = strip_tags($request->keys_sa);
$request['keys_zh'] = strip_tags($request->keys_zh);
$request->validate([ $request->validate([
'content' => 'required|min:3', 'content' => 'required|min:3',
...@@ -267,7 +280,7 @@ class AgendaController extends Controller ...@@ -267,7 +280,7 @@ class AgendaController extends Controller
'keys.max' => 'Keyword terlalu panjang' 'keys.max' => 'Keyword terlalu panjang'
]); ]);
$data = $request->except(['_token', 'manual', 'id', 'title_en', 'content_en', 'title_de', 'content_de', 'title_sa', 'content_sa', 'title_zh', 'content_zh']); $data = $request->except(['_token', 'manual', 'id', 'title_en', 'keys_en', 'content_en', 'title_de', 'keys_de', 'content_de', 'title_sa', 'keys_sa', 'content_sa', 'title_zh', 'keys_zh', 'content_zh']);
// $data['title'] = htmlspecialchars($request->title); // $data['title'] = htmlspecialchars($request->title);
// $data['content'] = htmlspecialchars($request->content); // $data['content'] = htmlspecialchars($request->content);
...@@ -302,6 +315,7 @@ class AgendaController extends Controller ...@@ -302,6 +315,7 @@ class AgendaController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataEn['title'] = strip_tags($data['title_en']); $dataEn['title'] = strip_tags($data['title_en']);
$dataEn['keys'] = strip_tags($data['keys_en']);
$dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -311,9 +325,11 @@ class AgendaController extends Controller ...@@ -311,9 +325,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataEn['title'] = $title; $dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content; $dataEn['content'] = $content;
} }
...@@ -324,6 +340,7 @@ class AgendaController extends Controller ...@@ -324,6 +340,7 @@ class AgendaController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataDe['title'] = strip_tags($data['title_de']); $dataDe['title'] = strip_tags($data['title_de']);
$dataDe['keys'] = strip_tags($data['keys_de']);
$dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -334,8 +351,11 @@ class AgendaController extends Controller ...@@ -334,8 +351,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataDe['title'] = $title; $dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content; $dataDe['content'] = $content;
} }
...@@ -346,6 +366,7 @@ class AgendaController extends Controller ...@@ -346,6 +366,7 @@ class AgendaController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataSa['title'] = strip_tags($data['title_sa']); $dataSa['title'] = strip_tags($data['title_sa']);
$dataSa['keys'] = strip_tags($data['keys_sa']);
$dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -356,9 +377,11 @@ class AgendaController extends Controller ...@@ -356,9 +377,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataSa['title'] = $title; $dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content; $dataSa['content'] = $content;
} }
...@@ -369,6 +392,7 @@ class AgendaController extends Controller ...@@ -369,6 +392,7 @@ class AgendaController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataZh['title'] = strip_tags($data['title_zh']); $dataZh['title'] = strip_tags($data['title_zh']);
$dataZh['keys'] = strip_tags($data['keys_zh']);
$dataZh['content'] = strip_tags($data['content_zh'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataZh['content'] = strip_tags($data['content_zh'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -379,9 +403,11 @@ class AgendaController extends Controller ...@@ -379,9 +403,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th','span'])); $content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th','span']));
$dataZh['title'] = $title; $dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content; $dataZh['content'] = $content;
} }
......
...@@ -117,6 +117,7 @@ class InformationController extends Controller ...@@ -117,6 +117,7 @@ class InformationController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -126,6 +127,7 @@ class InformationController extends Controller ...@@ -126,6 +127,7 @@ class InformationController extends Controller
$dataEn['information_id'] = $information->id; $dataEn['information_id'] = $information->id;
$dataEn['title'] = $title; $dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content; $dataEn['content'] = $content;
$this->repoEn->store($dataEn); $this->repoEn->store($dataEn);
...@@ -135,6 +137,7 @@ class InformationController extends Controller ...@@ -135,6 +137,7 @@ class InformationController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -144,6 +147,7 @@ class InformationController extends Controller ...@@ -144,6 +147,7 @@ class InformationController extends Controller
$dataDe['information_id'] = $information->id; $dataDe['information_id'] = $information->id;
$dataDe['title'] = $title; $dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content; $dataDe['content'] = $content;
$this->repoDe->store($dataDe); $this->repoDe->store($dataDe);
...@@ -153,6 +157,7 @@ class InformationController extends Controller ...@@ -153,6 +157,7 @@ class InformationController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -162,6 +167,7 @@ class InformationController extends Controller ...@@ -162,6 +167,7 @@ class InformationController extends Controller
$dataSa['information_id'] = $information->id; $dataSa['information_id'] = $information->id;
$dataSa['title'] = $title; $dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content; $dataSa['content'] = $content;
$this->repoSa->store($dataSa); $this->repoSa->store($dataSa);
...@@ -171,6 +177,7 @@ class InformationController extends Controller ...@@ -171,6 +177,7 @@ class InformationController extends Controller
{ {
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
if ($data['content'] == null) { if ($data['content'] == null) {
$data['content'] = 'kosong'; $data['content'] = 'kosong';
...@@ -180,6 +187,7 @@ class InformationController extends Controller ...@@ -180,6 +187,7 @@ class InformationController extends Controller
$dataZh['information_id'] = $information->id; $dataZh['information_id'] = $information->id;
$dataZh['title'] = $title; $dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content; $dataZh['content'] = $content;
$this->repoZh->store($dataZh); $this->repoZh->store($dataZh);
...@@ -254,6 +262,11 @@ class InformationController extends Controller ...@@ -254,6 +262,11 @@ class InformationController extends Controller
$request['title_de'] = strip_tags($request->title_de); $request['title_de'] = strip_tags($request->title_de);
$request['title_sa'] = strip_tags($request->title_sa); $request['title_sa'] = strip_tags($request->title_sa);
$request['title_zh'] = strip_tags($request->title_zh); $request['title_zh'] = strip_tags($request->title_zh);
$request['keys'] = strip_tags($request->keys);
$request['keys_en'] = strip_tags($request->keys_en);
$request['keys_de'] = strip_tags($request->keys_de);
$request['keys_sa'] = strip_tags($request->keys_sa);
$request['keys_zh'] = strip_tags($request->keys_zh);
$request->validate([ $request->validate([
'content' => 'required|min:3', 'content' => 'required|min:3',
...@@ -266,7 +279,7 @@ class InformationController extends Controller ...@@ -266,7 +279,7 @@ class InformationController extends Controller
'keys.max' => 'Keyword terlalu panjang' 'keys.max' => 'Keyword terlalu panjang'
]); ]);
$data = $request->except(['_token', 'manual', 'id', 'title_en', 'content_en', 'title_de', 'content_de', 'title_sa', 'content_sa', 'title_zh', 'content_zh']); $data = $request->except(['_token', 'manual', 'id', 'title_en', 'keys_en', 'content_en', 'title_de', 'keys_de', 'content_de', 'title_sa', 'keys_sa', 'content_sa', 'title_zh', 'keys_zh', 'content_zh']);
$dataEn = $request->except(['_token', 'id', 'manual']); $dataEn = $request->except(['_token', 'id', 'manual']);
// $data['title'] = htmlspecialchars($request->title); // $data['title'] = htmlspecialchars($request->title);
// $data['content'] = htmlspecialchars($request->content); // $data['content'] = htmlspecialchars($request->content);
...@@ -301,6 +314,7 @@ class InformationController extends Controller ...@@ -301,6 +314,7 @@ class InformationController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataEn['title'] = strip_tags($data['title_en']); $dataEn['title'] = strip_tags($data['title_en']);
$dataEn['keys'] = strip_tags($data['keys_en']);
$dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -310,9 +324,11 @@ class InformationController extends Controller ...@@ -310,9 +324,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataEn['title'] = $title; $dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content; $dataEn['content'] = $content;
} }
...@@ -323,6 +339,7 @@ class InformationController extends Controller ...@@ -323,6 +339,7 @@ class InformationController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataDe['title'] = strip_tags($data['title_de']); $dataDe['title'] = strip_tags($data['title_de']);
$dataDe['keys'] = strip_tags($data['keys_de']);
$dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -332,8 +349,11 @@ class InformationController extends Controller ...@@ -332,8 +349,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataDe['title'] = $title; $dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content; $dataDe['content'] = $content;
} }
...@@ -344,6 +364,7 @@ class InformationController extends Controller ...@@ -344,6 +364,7 @@ class InformationController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataSa['title'] = strip_tags($data['title_sa']); $dataSa['title'] = strip_tags($data['title_sa']);
$dataSa['keys'] = strip_tags($data['keys_sa']);
$dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -354,9 +375,11 @@ class InformationController extends Controller ...@@ -354,9 +375,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataSa['title'] = $title; $dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content; $dataSa['content'] = $content;
} }
...@@ -367,6 +390,7 @@ class InformationController extends Controller ...@@ -367,6 +390,7 @@ class InformationController extends Controller
{ {
if($manual==1) { if($manual==1) {
$dataZh['title'] = strip_tags($data['title_zh']); $dataZh['title'] = strip_tags($data['title_zh']);
$dataZh['keys'] = strip_tags($data['keys_zh']);
$dataZh['content'] = strip_tags($data['content_zh'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']); $dataZh['content'] = strip_tags($data['content_zh'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
} }
else{ else{
...@@ -377,9 +401,11 @@ class InformationController extends Controller ...@@ -377,9 +401,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate(); $trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title'])); $title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span'])); $content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataZh['title'] = $title; $dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content; $dataZh['content'] = $content;
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif"> <div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('title')) @if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif @endif
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif"> <div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys')) @if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif @endif
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif"> <div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('title')) @if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif @endif
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif"> <div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys')) @if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif @endif
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<h3 class="panel-title"><strong>@lang('label.create')</strong> @lang('feature.page')</h3> <h3 class="panel-title"><strong>@lang('label.create')</strong> @lang('feature.page')</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row"> {{-- <div class="row">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;"> <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia Bahasa Indonesia
</div> </div>
...@@ -49,16 +49,48 @@ ...@@ -49,16 +49,48 @@
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }} {{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div> </div>
</div> </div>
</div> </div> --}}
<div class="tabs"> <div class="tabs">
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="true">Inggris</a></li> <li class="active"><a href="#indo" role="tab" data-toggle="tab" aria-expanded="true">Indonesia</a></li>
<li class=""><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="false">Inggris</a></li>
<li class=""><a href="#jerman" role="tab" data-toggle="tab" aria-expanded="false">Jerman</a></li> <li class=""><a href="#jerman" role="tab" data-toggle="tab" aria-expanded="false">Jerman</a></li>
<li class=""><a href="#arab" role="tab" data-toggle="tab" aria-expanded="false">Arab</a></li> <li class=""><a href="#arab" role="tab" data-toggle="tab" aria-expanded="false">Arab</a></li>
<li class=""><a href="#cina" role="tab" data-toggle="tab" aria-expanded="false">Cina</a></li> <li class=""><a href="#cina" role="tab" data-toggle="tab" aria-expanded="false">Cina</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="inggris"> <div class="tab-pane active" id="indo">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia
</div>
<div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
</div>
</div>
</div>
<div class="col-md-12">
<div class="block">
{{ Form::textarea('content', null, array('id'=>'content')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="inggris">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;"> <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
English Language English Language
</div> </div>
...@@ -76,6 +108,15 @@ ...@@ -76,6 +108,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_en', $data->rEn ? $data->rEn->content : null, array('id'=>'content_en')) }} {{ Form::textarea('content_en', $data->rEn ? $data->rEn->content : null, array('id'=>'content_en')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_en', $data->rEn ? $data->rEn->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
<div class="tab-pane" id="jerman"> <div class="tab-pane" id="jerman">
...@@ -96,6 +137,15 @@ ...@@ -96,6 +137,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_de', $data->rDe ? $data->rDe->content : null, array('id'=>'content_de')) }} {{ Form::textarea('content_de', $data->rDe ? $data->rDe->content : null, array('id'=>'content_de')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_de', $data->rDe ? $data->rDe->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
<div class="tab-pane" id="arab"> <div class="tab-pane" id="arab">
...@@ -116,6 +166,15 @@ ...@@ -116,6 +166,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_sa', $data->rSa ? $data->rSa->content : null, array('id'=>'content_sa')) }} {{ Form::textarea('content_sa', $data->rSa ? $data->rSa->content : null, array('id'=>'content_sa')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_sa', $data->rSa ? $data->rSa->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
<div class="tab-pane" id="cina"> <div class="tab-pane" id="cina">
...@@ -136,6 +195,15 @@ ...@@ -136,6 +195,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_zh', $data->rZh ? $data->rZh->content : null, array('id'=>'content_zh')) }} {{ Form::textarea('content_zh', $data->rZh ? $data->rZh->content : null, array('id'=>'content_zh')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_zh', $data->rZh ? $data->rZh->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -188,7 +256,7 @@ ...@@ -188,7 +256,7 @@
</div> </div>
</div> </div>
<div class="col-md-12"> {{-- <div class="col-md-12">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">Keywords</h3> <h3 class="panel-title">Keywords</h3>
...@@ -213,7 +281,7 @@ ...@@ -213,7 +281,7 @@
<div class="panel-footer"> <div class="panel-footer">
</div> </div>
</div> </div>
</div> </div> --}}
{!! Form::close() !!} {!! Form::close() !!}
</div> </div>
<!-- page end--> <!-- page end-->
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif"> <div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('title')) @if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif @endif
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif"> <div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys')) @if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif @endif
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif"> <div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;','required')) }}
@if ($errors->has('title')) @if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif @endif
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif"> <div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12"> <div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }} {{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys')) @if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label> <label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif @endif
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<h3 class="panel-title"><strong>@lang('label.edit')</strong> @lang('feature.information')</h3> <h3 class="panel-title"><strong>@lang('label.edit')</strong> @lang('feature.information')</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row"> {{-- <div class="row">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;"> <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia Bahasa Indonesia
</div> </div>
...@@ -49,16 +49,48 @@ ...@@ -49,16 +49,48 @@
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }} {{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div> </div>
</div> </div>
</div> </div> --}}
<div class="tabs"> <div class="tabs">
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="true">Inggris</a></li> <li class="active"><a href="#indo" role="tab" data-toggle="tab" aria-expanded="true">Indonesia</a></li>
<li class=""><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="false">Inggris</a></li>
<li class=""><a href="#jerman" role="tab" data-toggle="tab" aria-expanded="false">Jerman</a></li> <li class=""><a href="#jerman" role="tab" data-toggle="tab" aria-expanded="false">Jerman</a></li>
<li class=""><a href="#arab" role="tab" data-toggle="tab" aria-expanded="false">Arab</a></li> <li class=""><a href="#arab" role="tab" data-toggle="tab" aria-expanded="false">Arab</a></li>
<li class=""><a href="#cina" role="tab" data-toggle="tab" aria-expanded="false">Cina</a></li> <li class=""><a href="#cina" role="tab" data-toggle="tab" aria-expanded="false">Cina</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="inggris"> <div class="tab-pane active" id="indo">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia
</div>
<div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
</div>
</div>
</div>
<div class="col-md-12">
<div class="block">
{{ Form::textarea('content', null, array('id'=>'content')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="inggris">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;"> <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
English Language English Language
</div> </div>
...@@ -76,6 +108,15 @@ ...@@ -76,6 +108,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_en', $data->rEn ? $data->rEn->content : null, array('id'=>'content_en')) }} {{ Form::textarea('content_en', $data->rEn ? $data->rEn->content : null, array('id'=>'content_en')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_en', $data->rEn ? $data->rEn->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
<div class="tab-pane" id="jerman"> <div class="tab-pane" id="jerman">
...@@ -96,6 +137,15 @@ ...@@ -96,6 +137,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_de', $data->rDe ? $data->rDe->content : null, array('id'=>'content_de')) }} {{ Form::textarea('content_de', $data->rDe ? $data->rDe->content : null, array('id'=>'content_de')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_de', $data->rDe ? $data->rDe->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
<div class="tab-pane" id="arab"> <div class="tab-pane" id="arab">
...@@ -116,6 +166,15 @@ ...@@ -116,6 +166,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_sa', $data->rSa ? $data->rSa->content : null, array('id'=>'content_sa')) }} {{ Form::textarea('content_sa', $data->rSa ? $data->rSa->content : null, array('id'=>'content_sa')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_sa', $data->rSa ? $data->rSa->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
<div class="tab-pane" id="cina"> <div class="tab-pane" id="cina">
...@@ -136,6 +195,15 @@ ...@@ -136,6 +195,15 @@
<div class="block"> <div class="block">
{{ Form::textarea('content_zh', $data->rZh ? $data->rZh->content : null, array('id'=>'content_zh')) }} {{ Form::textarea('content_zh', $data->rZh ? $data->rZh->content : null, array('id'=>'content_zh')) }}
</div> </div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_zh', $data->rZh ? $data->rZh->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -190,7 +258,7 @@ ...@@ -190,7 +258,7 @@
</div> </div>
</div> </div>
<div class="col-md-12"> {{-- <div class="col-md-12">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">Keywords</h3> <h3 class="panel-title">Keywords</h3>
...@@ -215,7 +283,7 @@ ...@@ -215,7 +283,7 @@
<div class="panel-footer"> <div class="panel-footer">
</div> </div>
</div> </div>
</div> </div> --}}
{!! Form::close() !!} {!! Form::close() !!}
</div> </div>
<!-- page end--> <!-- page end-->
......
@extends('webprofile.front.jollyany.master')
@section('meta')
<meta name="{{ Str::slug($setting['web_title']) }}" content="custom"/>
<meta name="description" content="{{ $setting['web_title'] }}">
@if(array_key_exists('default_keyword', $setting))
<meta name="keywords" content="{{ $setting['default_keyword'] }}">
@endif
<meta name="author" content="{{ $setting['web_title'] }}">
@endsection
@section('slider')
<section class="slider-wrapper">
<div class="tp-banner-container">
<div class="tp-banner" >
<ul><!-- SLIDE -->
@foreach($slider as $value)
<li data-transition="fade" data-slotamount="7" data-masterspeed="1500" >
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/slider/' . $value->slider }}" data-bgfit="cover" data-bgposition="center center" data-bgrepeat="no-repeat" alt="{!! $value->title !!}">
@else
<img src="{{ url('/storage/slider/' . $value->slider) }}" data-bgfit="cover" data-bgposition="center center" data-bgrepeat="no-repeat" alt="{!! $value->title !!}">
@endif
</li>
@endforeach
</ul>
<div class="tp-bannertimer"></div>
</div>
</div>
</section><!-- end slider-wrapper -->
@endsection
@section('content')
@if(isset($setting['body_position']) && strtolower($setting['body_position']) == 'atas')
@if($body->count() != 0)
<section class="panel-wrapper jt-shadow" style="padding-bottom: 25px;">
@foreach ($body as $value)
<div class="container">
<div class="general-title">
<h2>{!! $value->title_design !!}</h2>
<hr>
</div>
</div>
<!-- end container -->
{!! $value->value_design !!}
@endforeach
<div class="clearfix"></div>
</section>
@endif
@endif
<section class="blog-wrapper">
<div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="title">
<h2>Berita Terbaru
<div style="font-size:12px; float:right"><a href="{!! url('archive') !!}" class="btn btn-box"><i class="fa fa-chevron-circle-right"></i> lihat berita selengkapnya</a></div>
</h2>
</div><!-- end title -->
<div class="row">
<div class="blog-masonry">
<?php $e=1; ?>
@foreach($posts as $value)
<div class="col-lg-6 @if($e%2 != 0) first @else last @endif">
<div class="blog-carousel">
<div class="entry">
@if($value->thumbnail)
<center>
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@endif
</center>
@endif
</div>
<div class="blog-carousel-header">
<h3><a title="{!! $value->title !!}" href="{!! url('post/'.$value->slug) !!}">{!! $value->title !!}</a></h3>
<div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span>
@if($value->comment_status)
<span><i class="fa fa-comment"></i> <a href="#">{!! $value->comment_count !!} Comments</a></span>
@endif
<span><i class="fa fa-eye"></i> <a href="#">{!! $value->viewer !!} Views</a></span>
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
{{-- <p>{!! substr(html_entity_decode($value->content),0 , 250) !!}</p> --}}
<p>{!! strip_tags(substr(html_entity_decode($value->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
{{-- <p>{!! $value->content !!}</p> --}}
</div><!-- end blog-carousel-desc -->
</div><!-- end blog-carousel -->
</div><!-- end col-lg-4 -->
<?php $e++; ?>
@endforeach
</div><!-- end blog-masonry -->
<div class="clearfix"></div>
<hr>
<div class="pagination_wrapper">
<!-- Pagination Normal -->
<ul class="pagination">
{!! $posts->render() !!}
</ul>
</div><!-- end pagination_wrapper -->
</div><!-- end row -->
</div><!-- end content -->
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
{{-- <div class="widget">
<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'id'
}, 'google_translate_element');
}
</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}}
<div class="widget">
<div class="title">
<h2>Agenda</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($agenda as $value)
<li>
<a href="{!! url('agenda/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul>
<a href="{!! url('agendas') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
<div class="title">
<h2>Pengumuman</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($info as $value)
<li>
<a href="{!! url('information/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul>
<a href="{!! url('informations') !!}" class="btn btn-primary">Lihat Pengumuman Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
<div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#recent" data-toggle="tab">Terbaru</a></li>
<li><a href="#new" data-toggle="tab">Populer</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="recent">
<ul class="recent_posts_widget">
@foreach($resend as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">
@if($value->thumbnail)
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive">
@endif
@endif{!! $value->title !!}
</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">
{!! InseoHelper::tglbulanindo2($value->post_date) !!}
</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
<div class="tab-pane" id="new">
<ul class="recent_posts_widget">
@foreach($hot as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">
@if($value->thumbnail)
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" alt="" class="img-responsive" style="height: 150px; width: auto;">
@endif
@endif{!! $value->title !!}
</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
</div><!-- end tab content -->
</div><!-- end tab pane -->
</div><!-- end widget -->
@foreach ($widget_right as $vwidget_right)
<div class="widget">
<div class="title">
<h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title -->
{!! $vwidget_right->value_design !!}
</div><!-- end widget -->
@endforeach
</div><!-- end content -->
</div><!-- end container -->
</section><!--end white-wrapper -->
{{-- Label Body Tambahan --}}
@if(!isset($setting['body_position']) || strtolower($setting['body_position']) == 'bawah')
@if($body->count() != 0)
<section class="panel-wrapper jt-shadow" style="padding-bottom: 25px;">
@foreach ($body as $value)
<div class="container">
<div class="general-title">
<h2>{!! $value->title_design !!}</h2>
<hr>
</div>
</div>
<!-- end container -->
{!! $value->value_design !!}
@endforeach
<div class="clearfix"></div>
</section>
@endif
@endif
{{-- Label Gallery --}}
@if(!isset($setting['gallery']) || strtolower($setting['gallery']) == '1' || strtolower($setting['gallery']) == 'on')
@if ($gallery->count() != 0)
<section class="panel-wrapper jt-shadow" id="galeri">
<div class="container">
<div class="general-title">
<h2>Galeri</h2>
<hr>
</div>
<div class="carousel_wrapper">
<div class="margin-top">
<div id="owl_shop_carousel" class="owl-carousel">
@foreach($gallery as $value)
<div class="shop_carousel">
<div class="shop_item">
<div class="entry">
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" alt="" class="img-responsive">
@else
<img src="{{ url('/storage/gallery/' . $value->thumbnail) }}" alt="" class="img-responsive">
@endif
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" target="_blank">
View
</a>
<h3>{!! $value->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end item -->
</div><!-- end shop carousel -->
@endforeach
</div><!-- end padding-top -->
</div><!-- end carousel_wrapper -->
</div>
<!-- end container -->{{--
<div class="portfolio_wrapper padding-top" style="position: relative; overflow: hidden; height: 372px;">
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 30px); width: 379px;">
<div class="entry">
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[0]->gallery }}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[0]->gallery }}" target="_blank">
View
</a>
<h3>{!! $gallery[0]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@if(isset($gallery[1]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(379px, 30px); width: 379px;">
<div class="entry">
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[1]->gallery }}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[1]->gallery }}" target="_blank">
View
</a>
<h3>{!! $gallery[1]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
@if(isset($gallery[2]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(758px, 30px); width: 379px;">
<div class="entry">
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[2]->gallery }}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[2]->gallery }}" target="_blank">
View
</a>
<h3>{!! $gallery[2]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
@if(isset($gallery[3]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(1137px, 30px); width: 379px;">
<div class="entry">
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[3]->gallery }}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $gallery[3]->gallery }}" target="_blank">
View
</a>
<h3>{!! $gallery[3]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
</div>--}}
<div class="clearfix"></div>
</section>
@endif
@endif
<section class="make-bg-full">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
@foreach ($quote as $value)
<div class="item @if($value->urutan == 1) active @endif">
<div class="calloutbox-full-mini nocontainer">
<div class="long-twitter">
@if($value->title_show == true)
<p class="lead">
{!! $value->value_design !!}
<div style="text-align: center; font-size: 14pt;">{!! $value->title_design !!}</div>
</p>
@endif
</div>
</div>
</div>
@endforeach
</div>
<br>
<br>
<!-- Indicators -->
<ol class="carousel-indicators">
@for($i=0; $i<$quote->count(); $i++)
<li data-target="#myCarousel" data-slide-to="{!! $i !!}" @if($i==0) class="active" @endif></li>
@endfor
</ol>
</div>
</section><!-- make bg -->
@endsection
\ No newline at end of file
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