Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @php
- $images = collect($images)->shuffle()->take(0)->toArray();
- @endphp
- @php
- shuffle($sentences);
- @endphp
- @if(!empty($sentences))
- <p>{{ @array_pop($sentences) }} {{ @array_pop($sentences) }}</p>
- @endif
- @foreach(collect($images)->shuffle()->chunk(3) as $chunked)
- @if($loop->iteration == 2)
- <div class="text-left">
- <h3>{{ @array_pop($sentences) }}</h3>
- <img src="{{ str_replace(array('https://' , 'http://') , 'https://i0.wp.com/', collect($images)->random()['url']) }}" width="34%" align="left" style="margin-right: 8px;margin-bottom: 8px;">
- @foreach(collect($sentences)->chunk(3) as $chunked_sentences)
- <p>
- @if($loop->first) <strong>{{ ucfirst($keyword) }}</strong>. @endif @foreach($chunked_sentences as $chunked_sentence){{ $chunked_sentence }} @endforeach
- </p>
- @endforeach
- </div>
- @endif
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement