Commit 9aafb0c6 by Bagus Pambudi

perbaikan kategori

parent 3ec0314c
......@@ -21,24 +21,25 @@ class CategoryController extends Controller
if (Session::get('selected_language') == 'id') {
$data = $this->getDataId($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.archive', $data)->withTitle('Kategori');
return view('webprofile.front.'.$setting['theme'].'.archive', $data)->withTitle($category);
} elseif (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle($category);
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Category');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Kategorie');
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle($category);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('الفئة');
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle($category);
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting, $category);
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('类别');
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle($category);
}
}
......
......@@ -4,8 +4,15 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>{!! $title !!}</h2>
</div>
@foreach($categories as $value)
@if ($value->rSa)
<h2 style="text-transform: capitalize;">{!! $value->rSa->name !!}</h2>
<ul class="breadcrumb pull-right">
<li><a href="{{'/'}}" style="text-transform: capitalize;">الصفحة الرئيسية</a></li>
<li style="text-transform: capitalize;">الفئة</li>
</ul>
@endif
@endforeach
</div>
</section><!-- end post-wrapper-top -->
......
......@@ -13,7 +13,11 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>{!! $title !!}</h2>
<h2 style='text-transform: capitalize;'>{!! $title !!}</h2>
<ul class="breadcrumb pull-right">
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li style="text-transform: capitalize;">kategori</li>
</ul>
</div>
</div>
</section><!-- end post-wrapper-top -->
......
......@@ -4,7 +4,15 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>{!! $title !!}</h2>
@foreach($categories as $value)
@if ($value->rDe)
<h2 style="text-transform: capitalize;">{!! $value->rDe->name !!}</h2>
<ul class="breadcrumb pull-right">
<li><a href="{{'/'}}" style="text-transform: capitalize;">Heim</a></li>
<li style="text-transform: capitalize;">Kategorie</li>
</ul>
@endif
@endforeach
</div>
</div>
</section><!-- end post-wrapper-top -->
......
......@@ -4,7 +4,15 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>{!! $title !!}</h2>
@foreach($categories as $value)
@if ($value->rEn)
<h2 style="text-transform: capitalize;">{!! $value->rEn->name !!}</h2>
<ul class="breadcrumb pull-right">
<li><a href="{{'/'}}" style="text-transform: capitalize;">Home</a></li>
<li style="text-transform: capitalize;">Category</li>
</ul>
@endif
@endforeach
</div>
</div>
</section><!-- end post-wrapper-top -->
......
......@@ -4,7 +4,15 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>{!! $title !!}</h2>
@foreach($categories as $value)
@if ($value->rZh)
<h2 style="text-transform: capitalize;">{!! $value->rZh->name !!}</h2>
<ul class="breadcrumb pull-right">
<li><a href="{{'/'}}" style="text-transform: capitalize;">家</a></li>
<li style="text-transform: capitalize;">类别</li>
</ul>
@endif
@endforeach
</div>
</div>
</section><!-- end post-wrapper-top -->
......
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