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

18 lines
658 B
PHP
Raw Permalink Normal View History

@push('head')
<link rel="stylesheet" href="{{ asset('css/manage/movies.css') }}">
@endpush
<div id="movie-list">
@foreach($movies as $movie)
<a href="/manage/movie/{{$movie->movie_id}}">
<x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
<div class="details">
<h3>{{$movie->movie_name}}</h3><br/>
<span>{{ Str::limit($movie->movie_description, 500) }}</span><br/>
<hr/>
<span>{{$movie->movie_length}} min | {{$movie->movie_year}}</span>
</div>
</a>
@endforeach
</div>