@if ($blogs)
@foreach ($blogs as $blog)
@php
$blog_date = $blog->event_date ? $blog->event_date : $blog->created_at;
$writers = objTags($blog->writer);
$link = '';
$attach = '';
if( $blog->type == 'news'){
$link = url('news/'. $blog->id .'/' . encodelink( $blog->subject ) );
} else if( $blog->type == 'events'){
$link = url('event/'. $blog->id .'/' . encodelink( $blog->subject ) );
} else if( $blog->type == 'blog'){
$link = url('blogs/'. $blog->id .'/' . encodelink( $blog->subject ) );
$wlink = url('blogs/writer?writer=');
$attach = $blog->attach_blogs;
} else if( $blog->type == 'blogs'){
$link = url('what-works/blogs/'. $blog->id .'/' . encodelink( $blog->subject ) );
$wlink = url('what-works/writer?writer=');
$attach = $blog->attach_blogs;
}
@endphp
@if ($writers)
@foreach ($writers as $writer)
{{ $writer->text }}
@endforeach
@endif
{{--
{{ tagsList( $blog->writer ) }} --}}
{{ date('d-m-Y', strtotime( $blog_date ) ) }}
@endforeach
@endif