25 lines
769 B
PHP
25 lines
769 B
PHP
@extends('main.layout')
|
|
|
|
@push('head')
|
|
<link rel="stylesheet" href="{{asset('css/movies.css')}}">
|
|
@endpush
|
|
|
|
@section('content')
|
|
|
|
<section>
|
|
<h1>Now playing:</h1>
|
|
<hr/>
|
|
<div id="movies">
|
|
@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
|
|
</section>
|
|
|
|
@endsection
|