@extends('themes.default1.client.layout.client') @section('title') All Category - @stop @section('kb') class = "active" @stop <?php $category = App\Model\kb\Category::where('id', '=', $id)->first(); ?> @section('breadcrumb') <div class="site-hero clearfix"> <ol class="breadcrumb breadcrumb-custom"> <li class="text">{!! Lang::get('lang.you_are_here') !!}: </li> <li>{!! Lang::get('lang.home') !!}</li> <li class="active">{!! Lang::get('lang.knowledge_base') !!}</li> <li class="active">{!! Lang::get('lang.category') !!}</li> <li class="active">{!! $category->name !!}</li> </ol> </div> @stop @section('content') <div id="content" class="site-content col-md-9"> <header class="archive-header"> <h1 >{!! $category->name !!}</h1> </header><!-- .archive-header --> <blockquote class="archive-description" style="display: none;">
<script type="text/javascript"> $(function () { $("textarea").wysihtml5(); }); </script> @stop @section('title') @if(isset($category->name)) {!! $category->name !!} - @endif @stop @section('category') <h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}<small class="pull-right"><i class="fa fa-hdd-o fa-fw"></i></small></h2> <ul class="nav nav-pills nav-stacked nav-categories"> <?php $categorys = App\Model\kb\Category::all(); ?> @foreach($categorys as $category) <?php $num = \App\Model\kb\Relationship::where('category_id', '=', $category->id)->get(); $article_id = $num->lists('article_id'); $numcount = count($article_id); ?> <li><a href="{{url('category-list/'.$category->slug)}}"><span class="badge pull-right">{{$numcount}}</span>{{$category->name}}</a></li> @endforeach </ul> @stop
</section><!-- #section-about --> </div> </div> <div class="col-md-3"> <div class="widget-area"> <section id="section-latest-news" class="section"> <?php $footer2 = App\Model\kb\Footer2::whereId('1')->first(); ?> @if($footer2->title) <h2 class="section-title h4 clearfix">{{$footer2->title}}</h2> <p>{!!$footer2->footer!!}</p> @else <h2 class="section-title h4 clearfix">Categories</h2> <?php $categorys = App\Model\kb\Category::get(); ?> @foreach($categorys as $category) <p><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a> </p> @endforeach @endif </section><!-- #section-latest-news --> </div> </div> <div class="col-md-3"> <div class="widget-area"> <section id="section-newsletter" class="section"> <?php $footer3 = App\Model\kb\Footer3::whereId('1')->first(); ?> <h2 class="section-title h4 clearfix">{{$footer3->title}}</h2>