@php
$tags = @json_decode($blog->tags );
// $writers = ($blog->writer && strpos($blog->writer,']') === false) ? json_decode(jsonEncode([ ['text' => $blog->writer]])) : json_decode( $blog->writer );
$writers = objTags($blog->writer);
$blog_date = $blog->event_date ? $blog->event_date : $blog->created_at;
if( $blog->image_blogs && $blog->image_blogs->id ){
$blog_bg = $blog->image_blogs->path . $blog->image_blogs->filename;
}else{
$blog_bg = $blog->category->bg->path . $blog->category->bg->filename;
}
@endphp
@if ($writers)
@foreach ($writers as $writer)
{{ $writer->text }}
@endforeach
@endif
{{ date('d-m-Y',strtotime( $blog_date ) ) }}
@if ( $blog->attach_blogs && $blog->attach_blogs->id )
@endif
@php
$cNo = 1;
@endphp
@if( $blog->comments )
@foreach ($blog->comments as $comment)
@php
$cNo++;
@endphp
@endforeach
@endif
@if( auth()->check() )
Comment No.{{ $refNo + 0.1 }}