progress
This commit is contained in:
@@ -3,12 +3,21 @@
|
||||
@foreach($recommendations as $recommendation)
|
||||
<div class="col-md-1">
|
||||
<a href="{{ route('movie.show', $recommendation->slug) }}">
|
||||
<img
|
||||
src="http://image.tmdb.org/t/p/w185/{{ $recommendation->poster_path }}"
|
||||
alt="{{ $recommendation->title }}"
|
||||
title="{{ $recommendation->title }} ({{ $recommendation->release_date->format('Y') }})"
|
||||
class="img img-fluid"
|
||||
>
|
||||
@if($recommendation->poster_path)
|
||||
<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 img-fluid"
|
||||
>
|
||||
@else
|
||||
<span
|
||||
class="no-poster"
|
||||
title="{{ $recommendation->title }} @if($recommendation->release_date) ({{ $recommendation->release_date->format('Y') }}) @endif"
|
||||
>
|
||||
{{ $recommendation->title }} @if($recommendation->release_date) ({{ $recommendation->release_date->format('Y') }}) @endif
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user