From fc880a9504ae3b6914e1318eac020ab12c81c758 Mon Sep 17 00:00:00 2001 From: Sakthi002 Date: Fri, 18 Dec 2020 18:18:53 +0530 Subject: [PATCH] Bootstrap4 :: Article and Category page UI updated --- resources/views/auth/login.blade.php | 2 +- .../client/kb/article-list/category.blade.php | 130 ++++++++++----- .../client/kb/article-list/show.blade.php | 152 +++++++++++------- .../default1/client/layout/client.blade.php | 4 + .../client/layout/logclient.blade.php | 4 + 5 files changed, 188 insertions(+), 104 deletions(-) diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 74285a77a..99b3a7c78 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -1,7 +1,7 @@ @extends('themes.default1.client.layout.logclient') @section('home') - class = "active" + class = "nav-item active" @stop @section('breadcrumb') diff --git a/resources/views/themes/default1/client/kb/article-list/category.blade.php b/resources/views/themes/default1/client/kb/article-list/category.blade.php index 9cdb75a03..dbf95b353 100644 --- a/resources/views/themes/default1/client/kb/article-list/category.blade.php +++ b/resources/views/themes/default1/client/kb/article-list/category.blade.php @@ -6,54 +6,70 @@ @stop @section('kb') -class = "active" +class = "nav-item active" @stop @section('content')
+
-

{!! $category->name !!}

-
- +

{!! $category->name !!}

+ +
- role == 'user') { - $article = $article->where('status', 1); - $article = $article->where('type', 1); - } - $article = $article->orderBy('publish_time', 'desc'); - $article = $article->get(); - ?> - @forelse($article as $arti) -
+ role == 'user') { + $article = $article->where('status', 1); + $article = $article->where('type', 1); + } + $article = $article->orderBy('publish_time', 'desc'); + $article = $article->get(); + ?> + @forelse($article as $arti) + + + + + + {{$arti->created_at->format('l, d-m-Y')}} + +
+ + @empty

No articles available

- @endforelse - render(); - ?> + ?>
@stop -@section('title') - @if(isset($category->name)) - {!! $category->name !!} - - @endif -@stop - @section('category') -

{!! Lang::get('lang.categories') !!}

- + @stop \ No newline at end of file diff --git a/resources/views/themes/default1/client/layout/client.blade.php b/resources/views/themes/default1/client/layout/client.blade.php index a930d68df..3bd9205ff 100644 --- a/resources/views/themes/default1/client/layout/client.blade.php +++ b/resources/views/themes/default1/client/layout/client.blade.php @@ -71,6 +71,10 @@ .alert { width: 100% !important; } .has-error .form-control { border-color : #dd4b39; } + + .help-block { color : #dd4b39; } + + .text-red { color: red; }
diff --git a/resources/views/themes/default1/client/layout/logclient.blade.php b/resources/views/themes/default1/client/layout/logclient.blade.php index 30d00c75c..b19814a91 100644 --- a/resources/views/themes/default1/client/layout/logclient.blade.php +++ b/resources/views/themes/default1/client/layout/logclient.blade.php @@ -71,6 +71,10 @@ .alert { width: 100% !important; } .has-error .form-control { border-color : #dd4b39; } + + .help-block { color : #dd4b39; } + + .text-red { color: red; }