Commit 565c22a6 by Aan Choesni Herlingga

frontend bahasa arab

parent 9f66ba1f
...@@ -32,6 +32,10 @@ class AgendaController extends Controller ...@@ -32,6 +32,10 @@ class AgendaController extends Controller
$data = $this->getDataDe($setting); $data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Agenda'); return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Agenda');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('Agenda');
} }
} }
...@@ -115,4 +119,31 @@ class AgendaController extends Controller ...@@ -115,4 +119,31 @@ class AgendaController extends Controller
return $data; return $data;
} }
public function getDataSa($setting)
{
$setting = webprofilesetting();
$data = Information::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$resend = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rSa'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rSa'])->where('is_active', '1')->get();
$menu = Menu::with(['rSa'])->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;
}
} }
...@@ -31,6 +31,10 @@ class ArchiveController extends Controller ...@@ -31,6 +31,10 @@ class ArchiveController extends Controller
$data = $this->getDataDe($setting); $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('Archive');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('Archive');
} }
} }
...@@ -114,4 +118,31 @@ class ArchiveController extends Controller ...@@ -114,4 +118,31 @@ class ArchiveController extends Controller
return $data; return $data;
} }
public function getDataSa($setting)
{
$setting = webprofilesetting();
$data = Posts::where('post_status', '1')->orderBy('post_date', 'desc')->paginate($setting['post_per_page']);
$resend = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rSa'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rSa'])->where('is_active', '1')->get();
$menu = Menu::with(['rSa'])->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;
}
} }
...@@ -31,6 +31,10 @@ class CategoryController extends Controller ...@@ -31,6 +31,10 @@ class CategoryController extends Controller
$data = $this->getDataDe($setting, $category); $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('Archive');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('Archive');
} }
} }
...@@ -117,4 +121,32 @@ class CategoryController extends Controller ...@@ -117,4 +121,32 @@ class CategoryController extends Controller
return $data; return $data;
} }
public function getDataSa($setting, $category)
{
$setting = webprofilesetting();
$findCategory = Categories::where('name', $category)->first();
$data = Posts::with(['rSa'])->where('categories', $findCategory->id)->where('post_status', '1')->orderBy('post_date', 'desc')->paginate($setting['post_per_page']);
$resend = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rSa'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rSa'])->where('is_active', '1')->get();
$menu = Menu::with(['rSa'])->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;
}
} }
...@@ -30,6 +30,10 @@ class ErrorController extends Controller ...@@ -30,6 +30,10 @@ class ErrorController extends Controller
$data = $this->getDataDe($setting); $data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.page', $data); return view('webprofile.front.'.$setting['theme'].'.page', $data);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
return view('webprofile.front.'.$setting['theme'].'.page', $data);
} }
} }
...@@ -98,4 +102,26 @@ class ErrorController extends Controller ...@@ -98,4 +102,26 @@ class ErrorController extends Controller
return $data; return $data;
} }
public function getDataSa($setting)
{
$setting = webprofilesetting();
$data = new Pages();
$data->title = 'Page Not Found';
$menu = Menu::with(['rSa'])->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;
}
} }
...@@ -33,6 +33,10 @@ class FrontController extends Controller ...@@ -33,6 +33,10 @@ class FrontController extends Controller
$data = $this->getDataDe($setting); $data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.de.index', $data); return view('webprofile.front.'.$setting['theme'].'.de.index', $data);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
return view('webprofile.front.'.$setting['theme'].'.ar.index', $data);
} }
} }
...@@ -137,4 +141,38 @@ class FrontController extends Controller ...@@ -137,4 +141,38 @@ class FrontController extends Controller
return $data; return $data;
} }
private function getDataSa($setting)
{
$posts = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->paginate($setting['post_per_page']);
$resend = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rSa'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$info = Information::with(['rSa'])->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(['rSa'])->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;
}
} }
...@@ -32,6 +32,10 @@ class InformationController extends Controller ...@@ -32,6 +32,10 @@ class InformationController extends Controller
$data = $this->getDataDe($setting, $title); $data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.information', $data); return view('webprofile.front.'.$setting['theme'].'.de.information', $data);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.ar.information', $data);
} }
} }
...@@ -124,4 +128,34 @@ class InformationController extends Controller ...@@ -124,4 +128,34 @@ class InformationController extends Controller
return $data; return $data;
} }
public function getDataSa($setting, $title)
{
$setting = webprofilesetting();
$data = Information::where('slug', $title)->first();
$resend = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rSa'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rSa'])->where('is_active', '1')->get();
$menu = Menu::with(['rSa'])->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;
}
} }
...@@ -30,6 +30,10 @@ class PageController extends Controller ...@@ -30,6 +30,10 @@ class PageController extends Controller
$data = $this->getDataDe($setting, $title); $data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.page', $data); return view('webprofile.front.'.$setting['theme'].'.de.page', $data);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.ar.page', $data);
} }
} }
...@@ -95,4 +99,25 @@ class PageController extends Controller ...@@ -95,4 +99,25 @@ class PageController extends Controller
return $data; return $data;
} }
public function getDataSa($setting, $title)
{
$setting = webprofilesetting();
$data = Pages::with(['rSa'])->where('slug', $title)->first();
$menu = Menu::with(['rSa'])->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;
}
} }
...@@ -31,6 +31,10 @@ class PersonController extends Controller ...@@ -31,6 +31,10 @@ class PersonController extends Controller
$data = $this->getDataDe($setting, $name); $data = $this->getDataDe($setting, $name);
return view('webprofile.front.'.$setting['theme'].'.de.team', $data); return view('webprofile.front.'.$setting['theme'].'.de.team', $data);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $name);
return view('webprofile.front.'.$setting['theme'].'.ar.team', $data);
} }
} }
...@@ -100,6 +104,28 @@ class PersonController extends Controller ...@@ -100,6 +104,28 @@ class PersonController extends Controller
return $data; return $data;
} }
public function getDataSa($setting, $name)
{
$setting = webprofilesetting();
$data = $this->getData($name);
$menu = Menu::with(['rSa'])->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();
......
...@@ -31,6 +31,10 @@ class PostController extends Controller ...@@ -31,6 +31,10 @@ class PostController extends Controller
$data = $this->getDataDe($setting, $title); $data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.post', $data); return view('webprofile.front.'.$setting['theme'].'.de.post', $data);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.ar.post', $data);
} }
} }
...@@ -129,4 +133,36 @@ class PostController extends Controller ...@@ -129,4 +133,36 @@ class PostController extends Controller
return $data; return $data;
} }
public function getDataSa($setting, $title)
{
$setting = webprofilesetting();
$data = Posts::with(['rSa'])->where('slug', $title)->first();
$terkait = Posts::with(['rSa'])->where('categories', $data->categories)->orderBy('created_at', 'desc')->limit('4')->get();
$resend = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rSa'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rSa'])->where('is_active', '1')->get();
$menu = Menu::with(['rSa'])->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->rSa)
<h2><a href="{!! url('post/'.$value->slug) !!}">{!! $value->rSa->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->rSa)
<p>{!! strip_tags(substr(html_entity_decode($value->rSa->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
<br>
@endif
<a class="pull-right" style="padding-right: 20px;" href="{!! url('post/'.$value->slug) !!}">قراءة المزيد &raquo;&raquo;</a>
</div>
</div>
@else
<div class="row">
<div class="headline">
@if ($value->rSa)
<h2><a target="_blank" href="{!! url('info/'.$value->slug) !!}">{!! $value->rSa->title !!}</a></h2>
@endif
</div>
<div class="news-text">
<strong> {!! InseoHelper::tglbulanindo2($value->event_date) !!}</strong> —
{!! strip_tags(substr(html_entity_decode($value->rSa->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}
<br><a class="pull-right" style="padding-right: 20px;" target="_blank" href="{!! url('info/'.$value->slug) !!}">
قراءة المزيد »»</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.ar.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>جدول أعمال - {!! $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 !!} الآراء</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->rSa) {!! $value->rSa->name !!} @endif</a></li>
@else
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rSa) {!! $value->rSa->name !!} @endif<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->rSa)
<li><a href="{!! url((string)$valuec->url) !!}">@if ($valuec->rSa) {!! $valuec->rSa->name !!}@endif</a></li>
@endif
@else
<li class="dropdown-submenu">
@if ($valuec->rSa)
<a href="#">{!! $valuec->rSa->name !!}</a>
@endif
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
@if ($valuec2->rSa)
<li><a href="{!! url((string)$valuec2->url) !!}">@if ($valuec2->rSa) {!! $valuec2->rSa->name !!} @endif</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->rSa)
<h2>{!! $data->rSa->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->rSa)
{!! $data->rSa->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->rSa)
<h2>{!! $data->rSa->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->rSa)
<h1>{!! $data->rSa->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->rSa) {!! $data->rCategory->rSa->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>أخبار مماثلة </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->rSa)
<li><strong><a title="{!! $valTerkait->rSa->title !!}" href="{!! url('post/'.$valTerkait->slug) !!}">{!! $valTerkait->rSa->title !!}</a></strong></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
@if ($data->rSa)
{!! $data->rSa->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.ar.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>اسم</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>الفئة</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($categories as $value)
@if ($value->rSa)
<li><a class="unesa-link" href="{!! url('category/'.$value->name) !!}">{!! $value->rSa->name !!}</a></li>
@endif
@endforeach
</ul>
<h2>آخر المقالات</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($hot as $value)
@if ($value->rSa)
<li><a class="unesa-link" href="{!! url('post/'.$value->slug) !!}">{!! $value->rSa->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>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<p>{!! strip_tags(substr(html_entity_decode($value->rDe->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p> <p>{!! strip_tags(substr(html_entity_decode($value->rDe->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
<br> <br>
@endif @endif
<a class="pull-right" style="padding-right: 20px;" href="{!! url('post/'.$value->slug) !!}">Read more &raquo;&raquo;</a> <a class="pull-right" style="padding-right: 20px;" href="{!! url('post/'.$value->slug) !!}">Weiterlesen &raquo;&raquo;</a>
</div> </div>
</div> </div>
@else @else
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<span class="topbar-cart"><i class="fa fa-globe"></i> <a href="https://www.unesa.ac.id" target="_blank">UNESA</a></span> <span class="topbar-cart"><i class="fa fa-globe"></i> <a href="https://www.unesa.ac.id" target="_blank">UNESA</a></span>
<span class="topbar-cart"> <span class="topbar-cart">
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'style'=>'display:inline')) !!} {!! Form::open(array('url' => route('language'), 'method' => 'POST', 'style'=>'display:inline')) !!}
{{ Form::select('language', ['id'=>'Indonesia', 'en'=>'English', 'de'=>'German'], session('selected_language'), ['class'=>'custom-select form-control', 'style'=>'border-style:none; border-radius: 10px; border-color: white, height: 15px;', 'onChange'=>'form.submit()']) }} {{ Form::select('language', ['id'=>'Indonesia', 'en'=>'English', 'de'=>'German', 'ar'=>'Arabic'], session('selected_language'), ['class'=>'custom-select form-control', 'style'=>'border-style:none; border-radius: 10px; border-color: white, height: 15px;', 'onChange'=>'form.submit()']) }}
{!! Form::close() !!} {!! Form::close() !!}
</span> </span>
</div><!-- end top menu --> </div><!-- end top menu -->
...@@ -121,6 +121,9 @@ ...@@ -121,6 +121,9 @@
@if (Session::get('selected_language') == 'de') @if (Session::get('selected_language') == 'de')
@include('webprofile.front.jollyany.de.menu') @include('webprofile.front.jollyany.de.menu')
@endif @endif
@if (Session::get('selected_language') == 'ar')
@include('webprofile.front.jollyany.ar.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