cineflex/resources/views/main/genres/genre.blade.php

31 lines
887 B
PHP
Raw Normal View History

2023-01-01 20:13:11 +01:00
@extends('main.layout')
@section('content')
<section>
<h1>{{$genre->genre_name}}</h1>
<hr/>
<div id="genre">
<div class="details">
<span>{{$genre->genre_description}}</span><br/>
</div>
</div>
</section>
<section>
<h1>Movies:</h1>
<hr/>
<div id="movies">
@foreach($genre->movies as $movie)
<a href="/movie/{{$movie->movie_id}}">
2023-02-02 08:31:50 +01:00
<x-cache-image src="{{$movie->movie_image}}" alt="{{$movie->movie_name}} Poster" class="poster" width="200px"/>
2023-01-01 20:13:11 +01:00
<div class="details">
<span>{{$movie->movie_name}}</span><br/>
<span>{{$movie->movie_length}} min</span>
</div>
</a>
@endforeach
</div>
</section>
@endsection