some improvements

This commit is contained in:
2025-08-11 21:40:50 +03:00
parent e351803db2
commit 34bcdb062e
12 changed files with 198 additions and 63 deletions
@@ -0,0 +1,34 @@
<div>
@if($collection)
<div class="collection-info mb-3">
<h6 class="text-muted">Part of the {{ $collection->name }} Collection</h6>
</div>
<div class="row">
@foreach($collectionMovies as $collectionMovie)
<div class="col-md-2 mb-3">
<a href="{{ route('movie.show', $collectionMovie->slug) }}" class="text-decoration-none">
@if($collectionMovie->poster_path)
<div class="movie-poster">
<img
src="http://image.tmdb.org/t/p/w185/{{ $collectionMovie->poster_path }}"
alt="{{ $collectionMovie->title }}"
title="{{ $collectionMovie->title }} @if($collectionMovie->release_date) ({{ $collectionMovie->release_date->format('Y') }}) @endif"
class="img-fluid rounded shadow-sm"
>
<div class="movie-title text-center mt-2">
<small>{{ $collectionMovie->title }}</small>
</div>
</div>
@else
<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">
{{ $collectionMovie->title }} @if($collectionMovie->release_date) ({{ $collectionMovie->release_date->format('Y') }}) @endif
</small>
</div>
@endif
</a>
</div>
@endforeach
</div>
@endif
</div>