2025-01-29 22:33:09 +02:00
|
|
|
<div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
@foreach($recommendations as $recommendation)
|
2025-08-11 21:40:50 +03:00
|
|
|
<div class="col-md-2 mb-3">
|
|
|
|
|
<a href="{{ route('movie.show', $recommendation->slug) }}" class="text-decoration-none">
|
2025-02-16 21:11:07 +02:00
|
|
|
@if($recommendation->poster_path)
|
2025-08-11 21:40:50 +03:00
|
|
|
<div class="movie-poster">
|
|
|
|
|
<img
|
|
|
|
|
src="http://image.tmdb.org/t/p/w185/{{ $recommendation->poster_path }}"
|
|
|
|
|
alt="{{ $recommendation->title }}"
|
|
|
|
|
title="{{ $recommendation->title }} @if($recommendation->release_date) ({{ $recommendation->release_date->format('Y') }}) @endif"
|
|
|
|
|
class="img-fluid rounded shadow-sm"
|
|
|
|
|
>
|
|
|
|
|
<div class="movie-title text-center mt-2">
|
|
|
|
|
<small>{{ $recommendation->title }}</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-02-16 21:11:07 +02:00
|
|
|
@else
|
2025-08-11 21:40:50 +03:00
|
|
|
<div class="no-poster rounded shadow-sm d-flex align-items-center justify-content-center p-2" style="height: 150px; background-color: #f8f9fa;">
|
|
|
|
|
<small class="text-center">
|
|
|
|
|
{{ $recommendation->title }} @if($recommendation->release_date) ({{ $recommendation->release_date->format('Y') }}) @endif
|
|
|
|
|
</small>
|
|
|
|
|
</div>
|
2025-02-16 21:11:07 +02:00
|
|
|
@endif
|
2025-01-29 22:33:09 +02:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|