update v 1.0.7.5
This commit is contained in:
@@ -8,17 +8,6 @@
|
||||
class = "active"
|
||||
@stop
|
||||
|
||||
@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.knowledge_base') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.article') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-9 archive-list archive-article">
|
||||
@foreach($article as $arti)
|
||||
@@ -33,8 +22,7 @@
|
||||
<?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>
|
||||
|
||||
</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>
|
||||
|
||||
@@ -1,28 +1,17 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
<?php $category = App\Model\kb\Category::where('id', '=', $id)->first(); ?>
|
||||
@section('title')
|
||||
All Category -
|
||||
{!! $category->name !!} -
|
||||
@stop
|
||||
|
||||
@section('kb')
|
||||
class = "active"
|
||||
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">{!! $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;">
|
||||
@@ -51,7 +40,7 @@
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- .hentry -->
|
||||
@endforeach
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
//echo $all->render();
|
||||
?>
|
||||
@@ -78,11 +67,11 @@
|
||||
<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);
|
||||
?>
|
||||
<?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>
|
||||
|
||||
@@ -1,79 +1,59 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('title')
|
||||
Category List -
|
||||
Category List -
|
||||
@stop
|
||||
|
||||
@section('kb')
|
||||
class = "active"
|
||||
@stop
|
||||
|
||||
@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.knowledge_base') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.category') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
class = "active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<!-- Start of Page Container -->
|
||||
<div class="row home-listing-area">
|
||||
<div class="span8">
|
||||
<h2>{!! Lang::get('lang.categories') !!}</h2>
|
||||
<!-- Start of Page Container -->
|
||||
<div class="row home-listing-area">
|
||||
<div class="span8">
|
||||
<h2>{!! Lang::get('lang.categories') !!}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row separator">
|
||||
@foreach($categorys as $category)
|
||||
<div class="col-xs-6">
|
||||
{{-- get the article_id where category_id == current category --}}
|
||||
<?php
|
||||
$all = App\Model\kb\Relationship::where('category_id', $category->id)->get();
|
||||
//dd($all);
|
||||
/* from whole attribute pick the article_id */
|
||||
$article_id = $all->lists('article_id');
|
||||
?>
|
||||
|
||||
<section class="articles-list">
|
||||
<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) {
|
||||
?>
|
||||
<?php
|
||||
$article = App\Model\kb\Article::where('id', $id)->get();
|
||||
$article = $article->where('status', 1);
|
||||
$article = $article->where('type', 1);
|
||||
//dd($article);
|
||||
<div class="row separator">
|
||||
@foreach($categorys as $category)
|
||||
<div class="col-xs-6">
|
||||
{{-- get the article_id where category_id == current category --}}
|
||||
<?php
|
||||
$all = App\Model\kb\Relationship::where('category_id', $category->id)->get();
|
||||
/* from whole attribute pick the article_id */
|
||||
$article_id = $all->lists('article_id');
|
||||
?>
|
||||
<section class="articles-list">
|
||||
<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) {
|
||||
?>
|
||||
<?php
|
||||
$article = App\Model\kb\Article::where('id', $id)->get();
|
||||
$article = $article->where('status', 1);
|
||||
$article = $article->where('type', 1);
|
||||
//dd($article);
|
||||
?>
|
||||
@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->format('l, d-m-Y')}}
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 55) ?>
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
</li>
|
||||
@endforeach
|
||||
<?php }
|
||||
?>
|
||||
@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->format('l, d-m-Y')}}
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 55) ?>
|
||||
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
</li>
|
||||
@endforeach
|
||||
<?php }
|
||||
?>
|
||||
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of page content -->
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
@@ -4,18 +4,8 @@
|
||||
class = "active"
|
||||
@stop
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
<li>Home</li>
|
||||
<li class="active">Contact Us</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('check')
|
||||
<!-- Start of Page Container -->
|
||||
|
||||
<div style="padding-top: 60px;">
|
||||
|
||||
@if($settings->address)
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('title')
|
||||
Knowledge Base -
|
||||
Knowledge Base -
|
||||
@stop
|
||||
|
||||
@section('knowledgebase')
|
||||
class = "active"
|
||||
class = "active"
|
||||
@stop
|
||||
@section('content')
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@@ -21,23 +20,12 @@
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
|
||||
<li>{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<div class="row">
|
||||
<?php $categories = App\Model\kb\Category::all();
|
||||
@@ -47,7 +35,7 @@
|
||||
<?php
|
||||
$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');
|
||||
$page = App\Model\kb\Relationship::where('category_id', '=', $category->id)->paginate('3');
|
||||
/* from whole attribute pick the article_id */
|
||||
$article_id = $page->lists('article_id');
|
||||
$count = count($article_id);
|
||||
@@ -60,41 +48,48 @@
|
||||
{{$category->name}}
|
||||
</h1>
|
||||
<ul class="fa-ul">
|
||||
<?php foreach ($article_id as $id) {
|
||||
//$format = App\Model\helpdesk\Settings\System::where('id','1')->first()->date_time_format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id','1')->first()->time_zone;
|
||||
$tz = \App\Model\helpdesk\Utility\Timezones::where('id',$tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = \Carbon\Carbon::now()->toDateTimeString();
|
||||
//dd($date);
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->where('publish_time','<',$date)->get();
|
||||
<?php
|
||||
foreach ($article_id as $id) {
|
||||
//$format = App\Model\helpdesk\Settings\System::where('id','1')->first()->date_time_format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id', '1')->first()->time_zone;
|
||||
$tz = \App\Model\helpdesk\Utility\Timezones::where('id', $tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = \Carbon\Carbon::now()->toDateTimeString();
|
||||
//dd($date);
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id);
|
||||
if (Auth::check()) {
|
||||
if (\Auth::user()->role == 'user') {
|
||||
$article = $article->where('status', '1');
|
||||
}
|
||||
} else {
|
||||
$article = $article->where('status', '1');
|
||||
}
|
||||
$article = $article->where('type', '1');
|
||||
$article = $article->get();
|
||||
?>
|
||||
@forelse($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->format('l, d-m-Y')}}</span>
|
||||
<?php $str = $arti->description;
|
||||
$len = strlen($str);
|
||||
<?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>
|
||||
$excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50);
|
||||
?>
|
||||
{!! strip_tags($excerpt) !!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</li>
|
||||
@empty
|
||||
<p>No Articles</p>
|
||||
<p>{!! Lang::get('lang.no_article') !!}</p>
|
||||
@endforelse
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
|
||||
<p class="more-link text-center"><a href="{{url('category-list/'.$category->slug)}}" class="btn btn-custom btn-xs">{!! Lang::get('lang.view_all') !!}</a></p>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
<section class="section">
|
||||
<div class="banner-wrapper banner-horizontal clearfix">
|
||||
@@ -112,11 +107,11 @@
|
||||
<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);
|
||||
?>
|
||||
<?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>
|
||||
|
||||
@@ -2,44 +2,24 @@
|
||||
@section('HeadInclude')
|
||||
<link href="{{asset("lb-faveo/css/AdminLTE.css")}}" rel="stylesheet" type="text/css" />
|
||||
@stop
|
||||
@section('breadcrumb')
|
||||
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">You are here: </li>
|
||||
|
||||
<li>Home</li>
|
||||
|
||||
<li class="active">Edit Profile</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<section class="section-title">
|
||||
<h2>
|
||||
Profile Settings </h2>
|
||||
{!! Lang::get('lang.profile_settings') !!} </h2>
|
||||
</section>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
{!! Form::model($user,['url'=>'client-profile-edit', 'method' => 'PATCH','files'=>true]) !!}
|
||||
|
||||
<div class="box box-primary">
|
||||
|
||||
<div class="content-header">
|
||||
|
||||
<h4>Profile {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h4>{!! Lang::get('lang.pofile') !!} </h4>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
@if(Session::has('success1'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Success.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success1')}}
|
||||
</div>
|
||||
@@ -48,28 +28,23 @@
|
||||
@if(Session::has('fails1'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails1')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group {{ $errors->has('firstname') ? 'has-error' : '' }}">
|
||||
<!-- first name -->
|
||||
{!! Form::label('firstname',Lang::get('lang.firstname')) !!}
|
||||
{!! $errors->first('firstname', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('firstname',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('lastname') ? 'has-error' : '' }}">
|
||||
<!-- last name -->
|
||||
{!! Form::label('lastname',Lang::get('lang.lastname')) !!}
|
||||
{!! $errors->first('lastname', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('lastname',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<!-- gender -->
|
||||
{!! Form::label('gender',Lang::get('lang.gender')) !!}
|
||||
@@ -82,9 +57,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<!-- email -->
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
@@ -92,42 +64,32 @@
|
||||
{{$user->email}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
|
||||
<!-- company -->
|
||||
{!! Form::label('company',Lang::get('lang.company')) !!}
|
||||
{!! $errors->first('company', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('company',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-3 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<!-- phone extensionn -->
|
||||
{!! Form::label('ext',Lang::get('lang.ext')) !!}
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-9 form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||
<!-- phone number -->
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<!-- mobile -->
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}" >
|
||||
<!-- profile pic -->
|
||||
<div class="btn btn-default btn-file">
|
||||
@@ -135,26 +97,21 @@
|
||||
{!! $errors->first('profile_pic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::file('profile_pic') !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::token() !!}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
{!! Form::model($user,['url'=>'client-profile-password' , 'method' => 'PATCH']) !!}
|
||||
|
||||
<div class="box box-primary">
|
||||
|
||||
<div class="content-header">
|
||||
|
||||
<h4>Change Password {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h4>{!! Lang::get('lang.change_password') !!} {!! Form::submit(Lang::get('lang.update'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
@if(Session::has('success2'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-9">
|
||||
@foreach($result as $arti)
|
||||
@forelse($result as $arti)
|
||||
<article class="format-standard type-post hentry clearfix">
|
||||
|
||||
<header class="clearfix">
|
||||
@@ -31,7 +31,9 @@
|
||||
<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
|
||||
@empty
|
||||
<p><h3><b>Sorry!</b></h3> No result has found.</p>
|
||||
@endforelse
|
||||
|
||||
</article>
|
||||
<!-- end of page content -->
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
$all = App\Model\kb\Relationship::where('article_id','=', $arti->id)->get();
|
||||
//dd($all);
|
||||
/* from whole attribute pick the article_id */
|
||||
$category_id = $all->lists('category_id');
|
||||
$category_id = $all->lists('category_id')->toArray();
|
||||
?>
|
||||
|
||||
<div class="site-hero clearfix">
|
||||
@@ -19,7 +19,10 @@ $category_id = $all->lists('category_id');
|
||||
<li class="active">{{$arti->name}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@stop
|
||||
@section('title')
|
||||
{!! $arti->name !!} -
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user