This commit is contained in:
2025-08-15 19:10:52 +03:00
parent 34bcdb062e
commit 6f8fe9626c
5 changed files with 53 additions and 67 deletions
+6 -1
View File
@@ -13,7 +13,12 @@
<div class="movie-card">
<a href="{{ route('movie.show', $movie->slug) }}" title="{{ $movie->title }}">
<img
src="http://image.tmdb.org/t/p/w185/{{ $movie->poster_path }}"
src="
@if($movie->poster_path)
http://image.tmdb.org/t/p/w185/{{ $movie->poster_path }}
@else
/img/no_poster.png
@endif"
alt="{{ $movie->title }}"
title="{{ $movie->title }} @if($movie->release_date) ({{ $movie->release_date->format('Y') }}) @endif"
class="img img-fluid"