@extends('../layout/' . $layout) @section('subhead') Blog @endsection @section('subcontent')

Blogs

Add Blog
@csrf
@if (!$searchString) @else @endif
@if ($totalRecords > 0)
@foreach ($blogs as $blog)
@if ($blog->extension == 'jpg' || $blog->extension == 'jpeg' || $blog->extension == 'gif' || $blog->extension == 'png') Blog image @else @endif
{{ $blog['author'] }}
@if ($blog['postedOn']) {{ date('d-m-Y', strtotime($blog['postedOn'])) }} @endif

{{ $blog['title'] }}

{!! $blog['description'] !!}
Views: {{ $blog['viewer'] ? $blog['viewer'] : '0' }}
@endforeach
@if ($totalRecords > 0)
Showing {{ $start }} to {{ $end }} of {{ $totalRecords }} entries
@endif
@else
noData

No Data Available

@endif @endsection @section('script') @endsection