cineflex/resources/views/main/movies/index.blade.php

26 lines
769 B
PHP
Raw Normal View History

@extends('main.layout')
2022-11-23 09:32:34 +01:00
2023-01-01 20:13:11 +01:00
@push('head')
<link rel="stylesheet" href="{{asset('css/movies.css')}}">
@endpush
2022-11-23 09:32:34 +01:00
@section('content')
<section>
<h1>Now playing:</h1>
<hr/>
<div id="movies">
2023-02-02 08:17:38 +01:00
@foreach($movies as $movie)
<a class="movie" href="{{route('movie', ['id' => $movie->movie_id])}}">
<img src="{{ $movie->movie_image }}" alt="{{ $movie->movie_name }}">
<div class="details">
<h2>{{ $movie->movie_name }}</h2>
<span>{{ $movie->movie_description }}</span>
<p>{{ $movie->movie_length }} minutes</p>
</div>
</a>
@endforeach
2022-11-23 09:32:34 +01:00
</section>
@endsection