updated version 1.0.3
This commit is contained in:
@@ -130,6 +130,9 @@ $helptopic = App\Model\helpdesk\Manage\Help_topic::get();
|
||||
{!! Form::textarea('Details',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
{{-- Event fire --}}
|
||||
<?php Event::fire(new App\Events\ClientTicketForm()); ?>
|
||||
|
||||
<div class="col-md-12" id="response"> </div>
|
||||
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}"> </div>
|
||||
</div>
|
||||
|
||||
@@ -10,47 +10,56 @@
|
||||
|
||||
@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>{!! Lang::get('lang.frequently_asked_questions') !!}</li>
|
||||
<li>{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allarticle') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="content" class="site-content col-md-9 archive-list archive-article">
|
||||
@foreach($article as $arti)
|
||||
<h3><a href="{{route('show',$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
<hr>
|
||||
<ul class="col-md-10" id="article1">
|
||||
<li class="pull-left"><img src="{{asset('lb-faveo/Img/icon/time.png')}}"> <?php $utc = $arti->created_at;
|
||||
$time = UTC::usertimezone($utc);
|
||||
?>{!! $time !!}
|
||||
<?php
|
||||
$category_id = App\Model\kb\Relationship::where('article_id', $arti->id)->lists('category_id');
|
||||
foreach ($category_id as $id) {
|
||||
$category = App\Model\kb\Category::where('id', $id)->first();
|
||||
?>
|
||||
<a href="{{asset('category-list/'.$category->slug)}}"><img src="{{asset('lb-faveo/Img/icon/category.png')}}"> {{$category->name}}</a> </li>
|
||||
<?php }
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 300) ?>
|
||||
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{route('show',$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
|
||||
|
||||
<article class="hentry">
|
||||
<header class="entry-header">
|
||||
<i class="fa fa-list-alt fa-2x fa-fw pull-left text-muted"></i>
|
||||
<h2 class="entry-title h4"><a href="{{url('show/'.$arti->slug)}}" onclick="toggle_visibility('foo');">{{$arti->name}}</a></h2>
|
||||
</header><!-- .entry-header -->
|
||||
<?php $str = $arti->description; ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 200); ?>
|
||||
<blockquote class="archive-description">
|
||||
<?php $content = trim(preg_replace("/<img[^>]+\>/i", "", $excerpt), " \t.") ?>
|
||||
{!! strip_tags($content) !!}
|
||||
<p><a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
</blockquote>
|
||||
|
||||
<footer class="entry-footer">
|
||||
<div class="entry-meta text-muted">
|
||||
<span class="date"><i class="fa fa-clock-o fa-fw"></i> <time datetime="2013-10-22T20:01:58+00:00">{{$arti->created_at->format('l, d-m-Y')}}</time></span>
|
||||
</div><!-- .entry-meta -->
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- .hentry -->
|
||||
{{-- <hr> --}}
|
||||
@endforeach
|
||||
<div class="pagination">
|
||||
<?php echo $article->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
@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">
|
||||
|
||||
@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
|
||||
@@ -7,26 +7,28 @@
|
||||
@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.allcategory') !!}</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-12">
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<header class="archive-header">
|
||||
@foreach($categorys as $category)
|
||||
|
||||
<h1 >{!! $category->name !!}</h1>
|
||||
</header><!-- .archive-header -->
|
||||
<blockquote class="archive-description" style="display: none;">
|
||||
<p>{!! $category->description !!}</p>
|
||||
</blockquote>
|
||||
@endforeach
|
||||
<div class="archive-list archive-article">
|
||||
<?php foreach ($article_id as $id) { ?>
|
||||
<?php $article = App\Model\kb\Article::where('id', $id)->get(); ?>
|
||||
@@ -39,7 +41,8 @@
|
||||
<?php $str = $arti->description; ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 400); ?>
|
||||
<blockquote class="archive-description">
|
||||
<p>{!!$excerpt!!}</p><br/>
|
||||
<?php $content = trim(preg_replace("/<img[^>]+\>/i", "", $excerpt), " \t.") ?>
|
||||
<p>{!! strip_tags($content) !!}</p>
|
||||
<a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</blockquote>
|
||||
<footer class="entry-footer">
|
||||
@@ -51,7 +54,7 @@
|
||||
@endforeach
|
||||
<?php
|
||||
}
|
||||
echo $all->render();
|
||||
//echo $all->render();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -70,3 +73,18 @@
|
||||
@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">
|
||||
@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
|
||||
@@ -14,8 +14,8 @@
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here')!!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.frequently_asked_questions') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allcategory') !!}</li>
|
||||
<li>{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.category') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@@ -41,7 +41,7 @@
|
||||
?>
|
||||
|
||||
<section class="articles-list">
|
||||
<h3><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a> <span>({{count($all)}})</span></h3>
|
||||
<h3><i class="fa fa-folder-open-o fa-fw text-muted"></i> <a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a> <span>({{count($all)}})</span></h3>
|
||||
<ul class="articles">
|
||||
<hr>
|
||||
<?php foreach ($article_id as $id) {
|
||||
@@ -55,7 +55,7 @@
|
||||
@foreach($article as $arti)
|
||||
<li class="article-entry image" style="margin-left: 50px;">
|
||||
<h4><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h4>
|
||||
<span class="article-meta">{{$arti->created_at}}
|
||||
<span class="article-meta">{{$arti->created_at->format('l, d-m-Y')}}
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 55) ?>
|
||||
|
||||
@@ -72,10 +72,8 @@
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
<div>
|
||||
{!! $categorys->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of page content -->
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
@@ -28,22 +28,24 @@
|
||||
@endif
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<div class="container">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li class="active">{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
|
||||
<li>{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<div class="row">
|
||||
<?php $categories = App\Model\kb\Category::paginate('4');
|
||||
<?php $categories = App\Model\kb\Category::all();
|
||||
?>
|
||||
@foreach($categorys as $category)
|
||||
{{-- get the article_id where category_id == current category --}}
|
||||
<?php
|
||||
$all = App\Model\kb\Relationship::where('category_id', '=',$category->id)->get();
|
||||
$all = App\Model\kb\Relationship::all();
|
||||
/* from whole attribute pick the article_id */
|
||||
$page = App\Model\kb\Relationship::where('category_id', '=',$category->id)->paginate('3');
|
||||
/* from whole attribute pick the article_id */
|
||||
@@ -59,19 +61,19 @@
|
||||
</h1>
|
||||
<ul class="fa-ul">
|
||||
<?php foreach ($article_id as $id) {
|
||||
?>
|
||||
<?php
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->get();
|
||||
?>
|
||||
@foreach($article as $arti)
|
||||
<li>
|
||||
<i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
|
||||
<h3 class="h5"><a href="#"><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
<span class="article-meta">{{$arti->created_at}}</span>
|
||||
<?php $str = $arti->description;
|
||||
$len = strlen($str); ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50); ?>
|
||||
<p >{!!$excerpt!!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
<span class="article-meta">{{$arti->created_at->format('l, d-m-Y')}}</span>
|
||||
<?php $str = $arti->description;
|
||||
$len = strlen($str);
|
||||
|
||||
$excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50); ?>
|
||||
{!!$excerpt!!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
<?php } ?>
|
||||
@@ -80,7 +82,7 @@
|
||||
</section>
|
||||
</div>
|
||||
@endforeach
|
||||
{!! $categories->setPath('show/'); !!}
|
||||
|
||||
</div>
|
||||
<section class="section">
|
||||
<div class="banner-wrapper banner-horizontal clearfix">
|
||||
@@ -92,8 +94,10 @@
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('category')
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}</h2>
|
||||
<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">
|
||||
@foreach($categorys as $category)
|
||||
<?php
|
||||
@@ -105,5 +109,3 @@ $numcount = count($article_id);
|
||||
@endforeach
|
||||
</ul>
|
||||
@stop
|
||||
|
||||
@stop
|
||||
|
||||
@@ -9,31 +9,52 @@
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="content" class="site-content col-md-9">
|
||||
@foreach($result as $arti)
|
||||
<article class="format-standard type-post hentry clearfix">
|
||||
|
||||
<header class="clearfix">
|
||||
<h3 class="post-title">
|
||||
<small><i class="fa fa-list-alt fa-2x fa-fw pull-left text-muted"></i></small>
|
||||
<a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a>
|
||||
</h3>
|
||||
<div class="post-meta clearfix">
|
||||
<span class="date">{{$arti->created_at->format('l, d-m-Y')}}</span>
|
||||
<span class="category"><a href="#" title="View all posts in Server & Database">Server & Database</a></span>
|
||||
</div><!-- end of post meta -->
|
||||
|
||||
</header>
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 100) ?>
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{url('show/'.$arti->slug)}}">Read more</a></p>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 200) ?>
|
||||
<blockquote class="archive-description">
|
||||
<p>{!! strip_tags($excerpt) !!} </p>
|
||||
<a class="readmore-link" href="{{url('show/'.$arti->slug)}}">Read more</a>
|
||||
</blockquote>
|
||||
|
||||
<div class="post-meta clearfix">
|
||||
<span class="date"><i class="fa fa-clock-o fa-fw"></i> {{$arti->created_at->format('l, d-m-Y')}}</span>
|
||||
</div><!-- end of post meta -->
|
||||
<hr>
|
||||
@endforeach
|
||||
|
||||
</article>
|
||||
|
||||
<!-- end of page content -->
|
||||
|
||||
<div class="pagination">
|
||||
<?php echo $result->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@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">
|
||||
|
||||
@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
|
||||
@@ -14,14 +14,14 @@ $category_id = $all->lists('category_id');
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<?php $category = App\Model\kb\Category::where('id', $category_id)->first(); ?>
|
||||
<li><a href="{{url('/')}}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
<li><a href="{{url('category-list')}}">{!! Lang::get('lang.allcategory') !!}</a></li>
|
||||
<li><a href="{{url('category-list')}}">{!! Lang::get('lang.category') !!}</a></li>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a></li>
|
||||
<li class="active">{{$arti->name}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<!--
|
||||
<article class=" type-post format-standard hentry clearfix">
|
||||
<h1 class="post-title"><a href="#">{{$arti->name}}</a></h1>
|
||||
@@ -64,7 +64,7 @@ $category_id = $all->lists('category_id');
|
||||
|
||||
<div class="comment-metadata">
|
||||
<small class="date text-muted">
|
||||
<time datetime="2013-10-23T01:50:50+00:00">{!! $comment->created_at !!}</time>
|
||||
<time datetime="2013-10-23T01:50:50+00:00">{!! $comment->created_at->format('l, d-m-Y') !!}</time>
|
||||
</small>
|
||||
</div><!-- .comment-metadata -->
|
||||
</footer><!-- .comment-meta -->
|
||||
@@ -133,3 +133,19 @@ $category_id = $all->lists('category_id');
|
||||
{!! $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
|
||||
@@ -10,7 +10,7 @@
|
||||
$title_name = "SUPPORT CENTER";
|
||||
}
|
||||
?>
|
||||
<title> @yield('title') {!! $title_name !!} </title>
|
||||
<title> @yield('title') {!! strip_tags($title_name) !!} </title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<!-- Bootstrap 3.3.2 -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
@@ -266,7 +266,7 @@ $footer4 = App\Model\helpdesk\Theme\Footer4::whereId('1')->first();
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="site-info col-md-6">
|
||||
<p class="text-muted">{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/">Faveo</a></p>
|
||||
<p class="text-muted">{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/" target="_blank">Faveo</a></p>
|
||||
</div>
|
||||
<div class="site-social text-right col-md-6">
|
||||
<?php $social = App\Model\kb\Social::where('id', '1')->first(); ?>
|
||||
|
||||
Reference in New Issue
Block a user