ghiwar

image.blade.php

May 9th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. @extends('layout')
  2.  
  3. @section('head')
  4. <title>{{ collect(['📚', '📖', '📘', '☑️', '✔️', '✅', '🗸', '🗹', '🔴', '🔵'])->random() }} [{{ collect(['PDF', 'eBook', 'EPUB'])->random() }}] {{ ucwords($keyword) }} - {{ collect(['Gratis Boeken Downloaden', 'Grote lijst gratis boeken', 'gratis ebooks', 'Gratis ebooks', 'Boeken Downloaden illegaal', 'Online Boeken Lezen Gratis'])->random() }}</title>
  5. @endsection
  6.  
  7. @section('bg')
  8. {{ collect($images)->random()['url'] }}
  9. @endsection
  10.  
  11. @section('header')
  12. <h1>{{ ucwords($keyword) }}</h1>
  13.  
  14. @php
  15. shuffle($sentences);
  16. @endphp
  17.  
  18. <div class="navi text-left">
  19. @if(!empty($sentences))
  20. <p>{{ @array_pop($sentences) }} {{ @array_pop($sentences) }} {{ @array_pop($sentences) }} <br>
  21. @foreach($related as $r)
  22. @if(data_exists($r))
  23. <a class="badge badge-{{ collect(['primary', 'secondary', 'success', 'info', 'danger', 'warning', 'light', 'dark'])->random() }}" href="{{ image_url($r) }}">{{ $r }}</a>
  24. @endif
  25. @endforeach
  26. </p>
  27. @endif
  28. </div>
  29.  
  30. @endsection
  31.  
  32. @section('content')
  33.  
  34.  
  35. @foreach(collect($images)->shuffle()->chunk(3) as $chunked)
  36.  
  37. @if($loop->iteration == 2)
  38. <div class="posts-images">
  39. <div class="text-left">
  40. <h3>{{ @array_pop($sentences) }}</h3>
  41. <p class="text-left"><img src="{{ 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>
  42. <form method="post" action="https://libgen.live/be/?v={{ str_replace(' ','-', $keyword) }}?sc=firebase" target="_blank">
  43. <input type="hidden" name="gambar" value="{{ collect($images)->first()['url'] }}"><input type="hidden" name="judul" value="{{ ucwords($keyword) }}"><button type="submit" style="cursor:pointer;" class="btn2"><i class="fa fa-download"></i> Downloaden</button></form>
  44.  
  45. @foreach(collect($sentences)->chunk(4) as $chunked_sentences)
  46. <p>
  47. @if($loop->first)
  48. <strong>{{ ucfirst($keyword) }}</strong>.
  49. @endif
  50.  
  51. @foreach($chunked_sentences as $chunked_sentence)
  52. {{ $chunked_sentence }}
  53. @endforeach
  54. </p>
  55. @endforeach
  56. </div>
  57. </div>
  58. @endif
  59.  
  60. @endforeach
  61.  
  62. @endsection
Add Comment
Please, Sign In to add comment