cineflex/resources/views/components/movie-cards.blade.php

13 lines
533 B
PHP
Raw Normal View History

<div id="movie-grid">
@foreach($movies as $movie)
<a class="movie" href="{{route('movie', ['id' => $movie->movie_id])}}">
<x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
<div class="details">
<h2>{{ $movie->movie_name }}</h2>
<span>{{ Str::limit($movie->movie_description, 150) }}</span>
<p>{{ $movie->movie_length }} minutes</p>
</div>
</a>
@endforeach
</div>