@extends('frontend.layout') @section('pageHeading') @if (!empty($pageHeading)) {{ $pageHeading->blog_page_title ?? __('Blog') }} @else {{ __('Blog') }} @endif @endsection @php $metaKeywords = !empty($seo->meta_keyword_blog) ? $seo->meta_keyword_blog : ''; $metaDescription = !empty($seo->meta_description_blog) ? $seo->meta_description_blog : ''; @endphp @section('meta-keywords', "{{ $metaKeywords }}") @section('meta-description', "$metaDescription") @section('hero-section')
@endsection @section('content')
@if (count($blogs) == 0)

{{ __('No Blog Found') . '!' }}

@else @foreach ($blogs as $blog)
{{ $blog->categoryName }}

{{ strlen($blog->title) > 30 ? mb_substr($blog->title, 0, 30, 'UTF-8') . '...' : $blog->title }}

{!! strlen(strip_tags($blog->content)) > 100 ? mb_substr(strip_tags($blog->content), 0, 100, 'UTF-8') . '...' : strip_tags($blog->content) !!}

@endforeach @endif
@if (count($blogs) > 0) {{ $blogs->appends([ 'title' => request()->input('title'), 'category' => request()->input('category'), ])->links() }} @endif
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@includeIf('frontend.journal.side-bar')
@endsection @section('script') @endsection