@extends('admin.layouts.grid') @section('section', admin_trans('Knowledge base')) @section('title', admin_trans('Articles')) @section('link', route('admin.knowledgebase.articles.create')) @section('content')
@csrf
@if ($articles->count() > 0)
@foreach ($articles as $article) @endforeach
{{ admin_trans('ID') }} {{ admin_trans('Article') }} {{ admin_trans('Categories') }} {{ admin_trans('Views') }} {{ admin_trans('Likes') }} {{ admin_trans('Dislikes') }} {{ admin_trans('Published date') }}
{{ $article->id }}
{{ shorterText($article->title, 30) }}

{{ shorterText($article->short_description, 40) }}

@if ($article->categories->count() > 0)
@foreach ($article->categories as $category) @endforeach
@else -- @endif
{{ $article->views }} {{ $article->likes }} {{ $article->dislikes }} {{ dateFormat($article->created_at) }}
@else @include('admin.partials.empty', ['size' => 180]) @endif
{{ $articles->links() }} @push('styles_libs') @endpush @push('scripts_libs') @endpush @endsection