Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layout')
- @section('head')
- <title>{{ collect(['📚', '📖', '📘', '☑️', '✔️', '✅', '🗸', '🗹', '🔴', '🔵'])->random() }} {{ ucwords($keyword) }} - {{ collect(['Terbaru', 'Gratis', 'Lengkap'])->random() }}</title>
- @endsection
- @php
- $images = collect($images)->shuffle()->take(12)->toArray();
- @endphp
- @section('bg')
- {{ collect($images)->random()['url'] }}
- @endsection
- @section('header')
- <h1>{{ ucwords($keyword) }}</h1>
- @php
- shuffle($sentences);
- @endphp
- <div class="navi text-left">
- @if(!empty($sentences))
- <p>{{ @array_pop($sentences) }} {{ @array_pop($sentences) }} {{ @array_pop($sentences) }} <br>
- @foreach($related as $r)
- @if(data_exists($r))
- <a class="badge badge-{{ collect(['primary', 'secondary', 'success', 'info', 'danger', 'warning', 'light', 'dark'])->random() }}" href="{{ image_url($r) }}">{{ $r }}</a>
- @endif
- @endforeach
- </p>
- @endif
- </div>
- <p class="text-center"><!--ads/responsive.txt--></p>
- @endsection
- @section('content')
- @foreach(collect($images)->shuffle()->chunk(4) as $chunked)
- @if($loop->iteration == 2)
- <div class="posts-images">
- <div class="text-left">
- <h3>{{ @array_pop($sentences) }}</h3>
- <p class="text-left"><img src="{{ str_replace(array('https://' , 'http://') , 'https://i0.wp.com/', collect($images)->first()['url']) }}" width="34%" align="left" style="margin-right: 8px;margin-bottom: 8px;" onerror="this.src='https://files.libgen.live/img/pdf.jpg'"></p>
- @foreach(collect($sentences)->chunk(4) as $chunked_sentences)
- <p>
- @if($loop->first)
- <strong>{{ ucfirst($keyword) }}</strong>.
- @endif
- @foreach($chunked_sentences as $chunked_sentence)
- {{ $chunked_sentence }}
- @endforeach
- </p>
- @endforeach
- </div>
- </div>
- @endif
- @endforeach
- <p></p>
- <p class="text-center"><!--ads/responsive.txt--></p>
- @foreach(collect($images)->shuffle()->chunk(4) as $chunked)
- <div class="row mt-3">
- @foreach($chunked as $image)
- <div class="col-md-3">
- <img class="img-fluid" src="{{ str_replace(array('https://' , 'http://') , 'https://i0.wp.com/', $image['url'] )}}" style="width:100%" onerror="this.src='https://files.libgen.live/img/pdf.jpg'">
- <p class="text-center">{{ $image['title'] }}</p>
- </div>
- @endforeach
- </div>
- @endforeach
- @endsection
Add Comment
Please, Sign In to add comment