localsearch.blade.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @foreach($filme as $film)
  2. @if($loop->first)
  3. <div class="sm:rounded-lg bg-coal text-yelmax mt-6 p-4">Gesehene, vorgeschlagene & abgelehnte Filme</div>
  4. <div class="flex flex-wrap">
  5. @endif
  6. <a class="my-4 px-4 w-full md:w-1/3 lg:w-1/4 xl:w-1/5 flex-grow-0 flex-shrink-0 block" href="/film/{{$film->id}}">
  7. <img src="{{ $ihelp->getUrl($film->poster, 'w92') }}" alt ="{{$film->title}}" class="rounded-lg shadow-md shadow-burnt float-left mr-2">
  8. <div class="text-yelmax font-semibold">{{ $film->name }}</div>
  9. @if(!is_null($film->seen))
  10. <div class="flex">
  11. <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2 text-green-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
  12. <path stroke-linecap="round" stroke-linejoin="round" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z" />
  13. </svg>
  14. {{ \Carbon\Carbon::parse($film->seen)->format('d.m.Y') }}
  15. </div>
  16. @elseif(!is_null($film->rejected))
  17. <div class="flex">
  18. <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2 text-red-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
  19. <path stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
  20. </svg>
  21. {{ \Carbon\Carbon::parse($film->rejected)->format('d.m.Y') }}
  22. </div>
  23. @else
  24. <div class="text-field flex my-2">
  25. <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2 text-yelmax" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
  26. <path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
  27. </svg>
  28. {{ \Carbon\Carbon::parse($film->suggested)->format('d.m.Y') }}
  29. </div>
  30. @endif
  31. <div class="text-field flex my-2"><img src="/avatar/{{$film->suggester->getAvatar() }}" class="max-h-7 rounded-lg mr-2"> {{ $film->suggester->name }}</div>
  32. </a>
  33. @if($loop->last)
  34. </div>
  35. @endif
  36. @endforeach
  37. @if($count > 12)
  38. <div class="w-full text-center italic mt-2">Es gibt weitere Suchergebnisse. Grenze die Suche ein, falls das gewünschte Ergebnis nicht gefunden wurde.</div>
  39. @endif