@foreach ($blog_posts as $post) @if ($location=='content')
  • @if($post->thumb != NULL)
    {{ $post->title }}
    @endif

    {{ Helper::utcToLocalDateTime($post->publish_date)}} | {{ count($post->approved_comments) }} Comments

    {{ $post->title }}

    {!! \Illuminate\Support\Str::words(strip_tags($post->description), 40) !!}

    Read More
  • @elseif($location=='home')
    {{ $post->title }}
    {{ Helper::utcToLocalDateTime($post->publish_date) }}
    {{ $post->title }}
    {!! str_limit(strip_tags($post->description), 75) !!}
    Read More
    @endif @endforeach