Commit 0c11a2f2 by Aan Choesni Herlingga

front bahasa jerman

parent 586291a3
...@@ -8,7 +8,12 @@ class TranslateController extends Controller ...@@ -8,7 +8,12 @@ class TranslateController extends Controller
{ {
public function changeLocale(Request $request) public function changeLocale(Request $request)
{ {
$language = $request->language == 'en' ? 'en' : 'id'; if ($request->language == null) {
$language = 'id';
} else {
$language = $request->language;
}
session(['selected_language' => $language]); session(['selected_language' => $language]);
return redirect()->back(); return redirect()->back();
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace App\Http\Controllers\Webprofile\Front; namespace App\Http\Controllers\Webprofile\Front;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Models\Webprofile\Design;
use App\Models\Webprofile\Categories; use App\Models\Webprofile\Categories;
use App\Models\Webprofile\Design;
use App\Models\Webprofile\Information; use App\Models\Webprofile\Information;
use App\Models\Webprofile\Menu; use App\Models\Webprofile\Menu;
use App\Models\Webprofile\Posts; use App\Models\Webprofile\Posts;
...@@ -28,6 +28,10 @@ class AgendaController extends Controller ...@@ -28,6 +28,10 @@ class AgendaController extends Controller
$data = $this->getDataEn($setting); $data = $this->getDataEn($setting);
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Agenda'); return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Agenda');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Agenda');
} }
} }
...@@ -84,4 +88,31 @@ class AgendaController extends Controller ...@@ -84,4 +88,31 @@ class AgendaController extends Controller
return $data; return $data;
} }
public function getDataDe($setting)
{
$setting = webprofilesetting();
$data = Information::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();
$categories = Categories::with(['rDe'])->where('is_active', '1')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
} }
...@@ -27,6 +27,10 @@ class ArchiveController extends Controller ...@@ -27,6 +27,10 @@ class ArchiveController extends Controller
$data = $this->getDataEn($setting); $data = $this->getDataEn($setting);
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Archive'); return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Archive');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Archive');
} }
} }
...@@ -83,4 +87,31 @@ class ArchiveController extends Controller ...@@ -83,4 +87,31 @@ class ArchiveController extends Controller
return $data; return $data;
} }
public function getDataDe($setting)
{
$setting = webprofilesetting();
$data = Posts::where('post_status', '1')->orderBy('post_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();
$categories = Categories::with(['rDe'])->where('is_active', '1')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
} }
...@@ -5,8 +5,8 @@ namespace App\Http\Controllers\Webprofile\Front; ...@@ -5,8 +5,8 @@ namespace App\Http\Controllers\Webprofile\Front;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Models\Webprofile\Categories; use App\Models\Webprofile\Categories;
use App\Models\Webprofile\Design; use App\Models\Webprofile\Design;
use App\Models\Webprofile\Posts;
use App\Models\Webprofile\Menu; use App\Models\Webprofile\Menu;
use App\Models\Webprofile\Posts;
use Session; use Session;
class CategoryController extends Controller class CategoryController extends Controller
...@@ -27,6 +27,10 @@ class CategoryController extends Controller ...@@ -27,6 +27,10 @@ class CategoryController extends Controller
$data = $this->getDataEn($setting, $category); $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('Archive');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Archive');
} }
} }
...@@ -85,4 +89,32 @@ class CategoryController extends Controller ...@@ -85,4 +89,32 @@ class CategoryController extends Controller
return $data; return $data;
} }
public function getDataDe($setting, $category)
{
$setting = webprofilesetting();
$findCategory = Categories::where('name', $category)->first();
$data = Posts::with(['rDe'])->where('categories', $findCategory->id)->where('post_status', '1')->orderBy('post_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();
$categories = Categories::with(['rDe'])->where('is_active', '1')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
} }
...@@ -26,6 +26,10 @@ class ErrorController extends Controller ...@@ -26,6 +26,10 @@ class ErrorController extends Controller
$data = $this->getDataEn($setting); $data = $this->getDataEn($setting);
return view('webprofile.front.'.$setting['theme'].'.page', $data); return view('webprofile.front.'.$setting['theme'].'.page', $data);
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.page', $data);
} }
} }
...@@ -72,4 +76,26 @@ class ErrorController extends Controller ...@@ -72,4 +76,26 @@ class ErrorController extends Controller
return $data; return $data;
} }
public function getDataDe($setting)
{
$setting = webprofilesetting();
$data = new Pages();
$data->title = 'Page Not Found';
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'footer' => $footer,
];
return $data;
}
} }
...@@ -29,6 +29,10 @@ class FrontController extends Controller ...@@ -29,6 +29,10 @@ class FrontController extends Controller
$data = $this->getDataEn($setting); $data = $this->getDataEn($setting);
return view('webprofile.front.'.$setting['theme'].'.en.index', $data); return view('webprofile.front.'.$setting['theme'].'.en.index', $data);
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.de.index', $data);
} }
} }
...@@ -99,4 +103,38 @@ class FrontController extends Controller ...@@ -99,4 +103,38 @@ class FrontController extends Controller
return $data; return $data;
} }
private function getDataDe($setting)
{
$posts = Posts::with(['rDe'])->where('post_status', '1')->orderby('post_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();
$info = Information::with(['rDe'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$quote = Design::where('name_design', 'quote')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$body = Design::where('name_design', 'body')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'posts' => $posts,
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
'quote' => $quote,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'body' => $body,
'setting' => $setting,
'footer' => $footer,
];
return $data;
}
} }
...@@ -28,6 +28,10 @@ class InformationController extends Controller ...@@ -28,6 +28,10 @@ class InformationController extends Controller
$data = $this->getDataEn($setting, $title); $data = $this->getDataEn($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.en.information', $data); return view('webprofile.front.'.$setting['theme'].'.en.information', $data);
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.information', $data);
} }
} }
...@@ -90,4 +94,34 @@ class InformationController extends Controller ...@@ -90,4 +94,34 @@ class InformationController extends Controller
return $data; return $data;
} }
public function getDataDe($setting, $title)
{
$setting = webprofilesetting();
$data = Information::where('slug', $title)->first();
$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();
$categories = Categories::with(['rDe'])->where('is_active', '1')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$viewer['viewer'] = (int) $data->viewer + 1;
$data->update($viewer);
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
} }
...@@ -26,6 +26,10 @@ class PageController extends Controller ...@@ -26,6 +26,10 @@ class PageController extends Controller
$data = $this->getDataEn($setting, $title); $data = $this->getDataEn($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.en.page', $data); return view('webprofile.front.'.$setting['theme'].'.en.page', $data);
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.page', $data);
} }
} }
...@@ -70,4 +74,25 @@ class PageController extends Controller ...@@ -70,4 +74,25 @@ class PageController extends Controller
return $data; return $data;
} }
public function getDataDe($setting, $title)
{
$setting = webprofilesetting();
$data = Pages::with(['rDe'])->where('slug', $title)->first();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'footer' => $footer,
];
return $data;
}
} }
...@@ -27,6 +27,10 @@ class PersonController extends Controller ...@@ -27,6 +27,10 @@ class PersonController extends Controller
$data = $this->getDataEn($setting, $name); $data = $this->getDataEn($setting, $name);
return view('webprofile.front.'.$setting['theme'].'.en.team', $data); return view('webprofile.front.'.$setting['theme'].'.en.team', $data);
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $name);
return view('webprofile.front.'.$setting['theme'].'.de.team', $data);
} }
} }
...@@ -74,6 +78,28 @@ class PersonController extends Controller ...@@ -74,6 +78,28 @@ class PersonController extends Controller
return $data; return $data;
} }
public function getDataDe($setting, $name)
{
$setting = webprofilesetting();
$data = $this->getData($name);
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'footer' => $footer,
'name' => $name,
];
return $data;
}
public function getData($name) public function getData($name)
{ {
$pick = Setting::where('name_setting', 'team')->first(); $pick = Setting::where('name_setting', 'team')->first();
......
...@@ -27,6 +27,10 @@ class PostController extends Controller ...@@ -27,6 +27,10 @@ class PostController extends Controller
$data = $this->getDataEn($setting, $title); $data = $this->getDataEn($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.en.post', $data); return view('webprofile.front.'.$setting['theme'].'.en.post', $data);
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.post', $data);
} }
} }
...@@ -93,4 +97,36 @@ class PostController extends Controller ...@@ -93,4 +97,36 @@ class PostController extends Controller
return $data; return $data;
} }
public function getDataDe($setting, $title)
{
$setting = webprofilesetting();
$data = Posts::with(['rDe'])->where('slug', $title)->first();
$terkait = Posts::with(['rDe'])->where('categories', $data->categories)->orderBy('created_at', 'desc')->limit('4')->get();
$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();
$categories = Categories::with(['rDe'])->where('is_active', '1')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$viewer['viewer'] = (int) $data->viewer + 1;
$data->update($viewer);
$data = [
'setting' => $setting,
'data' => $data,
'terkait' => $terkait,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
} }
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>{!! $title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="">
<div class="flexslider">
@foreach($data as $value)
@if ($title != 'Agenda')
<div class="row">
<div class="headline">
@if ($value->rDe)
<h2><a href="{!! url('post/'.$value->slug) !!}">{!! $value->rDe->title !!}</a></h2>
@endif
</div>
<div class="news-text">
<div class="col-lg-4">
<a href="{!! url('post/'.str_replace(' ', '-', $value->title)) !!}">
@if($value->thumbnail)
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $value->thumbnail }}" style="max-width:200px" align="left" class="img-responsive">
@else
<img src="{{ url('/storage/thumbnail/' . $value->thumbnail) }}" style="max-width:200px" align="left" class="img-responsive">
@endif
@else
<img style="max-width:200px" align="left" class="img-responsive" src="https://www.unesa.ac.id/assets/switcher/images/logo.png">
@endif
</a>
</div>
<strong>{!! InseoHelper::tglbulanindo2($value->post_date) !!}</strong>
@if ($value->rDe)
<p>{!! strip_tags(substr(html_entity_decode($value->rDe->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
<br>
@endif
<a class="pull-right" style="padding-right: 20px;" href="{!! url('post/'.$value->slug) !!}">Read more &raquo;&raquo;</a>
</div>
</div>
@else
<div class="row">
<div class="headline">
@if ($value->rDe)
<h2><a target="_blank" href="{!! url('info/'.$value->slug) !!}">{!! $value->rDe->title !!}</a></h2>
@endif
</div>
<div class="news-text">
<strong> {!! InseoHelper::tglbulanindo2($value->event_date) !!}</strong> —
{!! strip_tags(substr(html_entity_decode($value->rDe->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}
<br><a class="pull-right" style="padding-right: 20px;" target="_blank" href="{!! url('info/'.$value->slug) !!}">
Weiterlesen »»</a>
</div>
</div>
@endif
@endforeach
</div>
<div class="clearfix"></div>
<hr>
{!! $data->render() !!}
</div><!-- end post-slider -->
</div><!-- end entry -->
</div><!-- end blog-carousel -->
</div><!-- end blog-masonry -->
</div><!-- end widget -->
</div><!-- end left-sidebar -->
@include('webprofile.front.jollyany.de.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Agenda - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="blog-carousel-header">
@if ($data->rDe)
<h1>{!! $data->rDe->title !!}</h1>
@endif
<div class="blog-carousel-meta">
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Ansichten</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
@if ($data->rDe)
{!! $data->rDe->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.de.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
@foreach ($menu as $value)
@if(!$value->parent)
@if($value->url)
<li><a href="{!! url((string)$value->url) !!}">@if ($value->rDe) {!! $value->rDe->name !!} @endif</a></li>
@else
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rDe->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec)
@if($valuec->parent == $value->id)
@if($valuec->url)
@if ($valuec->rDe)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rDe->name !!}</a></li>
@endif
@else
<li class="dropdown-submenu">
@if ($valuec->rDe)
<a href="#">{!! $valuec->rDe->name !!}</a>
@endif
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
@if ($valuec2->rDe)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rDe->name !!}</a></li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
@if ($data->rDe)
<h2>{!! $data->rDe->title !!}</h2>
@endif
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-md-12" role="main" align="justify">
@if ($data->rDe)
{!! $data->rDe->content !!}
@endif
</div>
</div>
</div><!-- end title -->
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
@if ($data->rDe)
<h2>{!! $data->rDe->title !!}</h2>
@endif
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="blog-carousel-header">
@if ($data->rDe)
<h1>{!! $data->rDe->title !!}</h1>
@endif
<div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i>
<time title="{!! $data->post_data !!}" datetime="{!! $data->post_data !!}">{!! InseoHelper::tglbulanindo2($data->post_date) !!}</time> - kategori <a href="#">@if ($data->rCategory->rDe) {!! $data->rCategory->rDe->name !!} @endif</a></span>
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
@if ($data->thumbnail)
@if($data->cover_status == 1)
<center>
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $data->thumbnail }}" alt="" style="max-width:708px">
@else
<img src="{{ url('/storage/thumbnail/' . $data->thumbnail) }}" alt="" style="max-width:708px">
@endif
</center>
@endif
@endif
<br>
<div class="widget col-md-4 pull-right related hidden-sm hidden-xs kaitan" style="margin-bottom: 5px;">
<h4 class="h4_kaitan"><strong>ähnliche Neuigkeiten </strong></h4>
<div class="isi_kaitan">
<div class="content_kaitan">
<ul class="ul_kaitan nav nav-tabs nav-stacked">
@foreach($terkait as $valTerkait)
@if ($valTerkait->rDe)
<li><strong><a title="{!! $valTerkait->rDe->title !!}" href="{!! url('post/'.$valTerkait->slug) !!}">{!! $valTerkait->rDe->title !!}</a></strong></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
@if ($data->rDe)
{!! $data->rDe->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.de.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
@extends('webprofile.front.jollyany.master')
@section('meta')
<meta name="{!! Str::slug(app('translator')->getFromJson('label.'.$name)) !!}" content="custom"/>
<meta name="description" content="">
<meta name="author" content="{{ $setting['header_admin'] }}">
@endsection
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>@lang('label.'.$name)</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-md-12" role="main" align="justify">
<table class="table table-bordered" style="vertical-align: baseline;">
<thead>
<tr>
<th style="width: 5%;">NO</th>
<th style="width: 15%;">PHOTO</th>
<th>INFORMATION</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach ($data as $value)
<tr>
<td style="text-align: center; color: black;">{{ $no++ }}</td>
<td style="color: black; text-align:center;">
<img style="width: 200px; height: auto;" src="https://i-sdm.unesa.ac.id/assets/images/kepegawaian/pegawai//{!! $value['nip'] !!}.jpg" class="user-image" alt="{{ $value['namalengkap'] }}"><br>
</td>
<td style="color: black;">
<table width="100%">
<tr>
<td width="10%">NIP</td>
<td>: {{ $value['nip'] }}</td>
</tr>
<tr>
<td>NAMA</td>
<td>: {{ $value['namalengkap'] }}</td>
</tr>
</table>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div><!-- end title -->
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>Kategorie</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($categories as $value)
@if ($value->rDe)
<li><a class="unesa-link" href="{!! url('category/'.$value->name) !!}">{!! $value->rDe->name !!}</a></li>
@endif
@endforeach
</ul>
<h2>Neuster Artikel</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($hot as $value)
@if ($value->rDe)
<li><a class="unesa-link" href="{!! url('post/'.$value->slug) !!}">{!! $value->rDe->title !!}</a></li>
@endif
@endforeach
</ul>
@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>
</div>
</div>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
@endif @endif
<br> <br>
<div class="widget col-md-4 pull-right related hidden-sm hidden-xs kaitan" style="margin-bottom: 5px;"> <div class="widget col-md-4 pull-right related hidden-sm hidden-xs kaitan" style="margin-bottom: 5px;">
<h4 class="h4_kaitan"><strong>berita terkait </strong></h4> <h4 class="h4_kaitan"><strong>related news </strong></h4>
<div class="isi_kaitan"> <div class="isi_kaitan">
<div class="content_kaitan"> <div class="content_kaitan">
<ul class="ul_kaitan nav nav-tabs nav-stacked"> <ul class="ul_kaitan nav nav-tabs nav-stacked">
......
...@@ -92,6 +92,11 @@ ...@@ -92,6 +92,11 @@
<input type="hidden" value="id" name="language"> <input type="hidden" value="id" name="language">
<a href="javascript:;" onclick="document.getElementById('id').submit();"><img src="https://www.unesa.ac.id/assets2/images/id.png"></a> <a href="javascript:;" onclick="document.getElementById('id').submit();"><img src="https://www.unesa.ac.id/assets2/images/id.png"></a>
{!! Form::close() !!} {!! Form::close() !!}
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'style'=>'display:inline', 'id'=>'de')) !!}
<input type="hidden" value="de" name="language">
<a href="javascript:;" onclick="document.getElementById('de').submit();"><img src="https://www.unesa.ac.id/assets2/images/de.png"></a>
{!! Form::close() !!}
</div> </div>
</div><!-- end top menu --> </div><!-- end top menu -->
<div class="callus"> <div class="callus">
...@@ -124,6 +129,9 @@ ...@@ -124,6 +129,9 @@
@if (Session::get('selected_language') == 'en') @if (Session::get('selected_language') == 'en')
@include('webprofile.front.jollyany.en.menu') @include('webprofile.front.jollyany.en.menu')
@endif @endif
@if (Session::get('selected_language') == 'de')
@include('webprofile.front.jollyany.de.menu')
@endif
</ul><!-- end navbar-nav --> </ul><!-- end navbar-nav -->
</div><!-- #navbar-collapse-1 --> </div><!-- #navbar-collapse-1 -->
</nav><!-- end navbar yamm navbar-default --> </nav><!-- end navbar yamm navbar-default -->
......
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