@extends('layouts.usermaster') @section('content') {{lang('Knowledge')}} {{lang('Home')}} {{lang('Knowledge')}} @if ($article->isEmpty()) {{lang('This article section will be updated shortly.')}} {{lang('There are no notifications. We will notify you when the new notification arrives.')}} @else {{lang('Recent Articles')}} @foreach ($article as $articles) @if($articles->articleslug != null) @if($articles->subcategory != null) @if($articles->subcategorys) {{$articles->subcategorys->subcategoryname}} @endif @endif {{Str::limit($articles->title, '100')}} @else @if($articles->subcategory != null) @if($articles->subcategorys) {{$articles->subcategorys->subcategoryname}} @endif @endif {{Str::limit($articles->title, '100')}} @endif @endforeach {{lang('Popular Articles')}} @foreach ($populararticle as $populararticles) @if($populararticles->articleslug != null) @if($populararticles->subcategory != null) @if($populararticles->subcategorys) {{$populararticles->subcategorys->subcategoryname}} @endif @endif {{Str::limit($populararticles->title,'100')}} @else @if($populararticles->subcategory != null) @if($populararticles->subcategorys) {{$populararticles->subcategorys->subcategoryname}} @endif @endif {{Str::limit($populararticles->title,'100')}} @endif @endforeach @endif @foreach ($categorys as $category) @if ($category->articles->isNotEmpty()) {{$category->name}} {{-- @if ($category->articles()->where('status', 'Published')->simplepaginate(5) > '5') --}} @if($category->categoryslug != null) {{lang('View All')}} @else {{lang('View All')}} @endif {{-- @endif --}} @foreach ($category->articles()->where('status', 'Published')->latest()->simplepaginate(5) as $articless) @if($articless->articleslug != null) @if($articless->subcategory != null) @if($articless->subcategorys) {{$articless->subcategorys->subcategoryname}} @endif @endif {{Str::limit($articless->title,'50')}} @else @if($articless->subcategory != null) @if($articless->subcategorys) {{$articless->subcategorys->subcategoryname}} @endif @endif {{Str::limit($articless->title,'50')}} @endif @endforeach @endif @endforeach @endsection
{{lang('There are no notifications. We will notify you when the new notification arrives.')}}