@php $articles = json_decode($post->articles); $videos = collect(json_decode($post->videos)); $images = collect(json_decode($post->images)); @endphp @if (count($images) > 0)
{{ $post->keyword }}
@endif

{{ $description }}

{{ randomSentences($articles, 0, 4) }}

@if (count($videos) > 0)

@endif

{{ randomSentences($articles, 5, 9) }}

@if (count($images) > 0)
@foreach ($images as $key => $item) @if ($loop->iteration > 10) @break @endif

{{ $item->title }}

{{ $item->title }}
Image by {{ $item->domain }}
@endforeach
@endif