PHP Classes

File: resources/views/movies/index.blade.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP Movies App   resources/views/movies/index.blade.php   Download  
File: resources/views/movies/index.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Movies App
Implement a site about movies using TMDB API
Author: By
Last change:
Date: 8 months ago
Size: 1,015 bytes
 

Contents

Class file image Download
@extends('layouts.main') @section('title', 'Home') @section('content')
<div class="container mx-auto px-4 pt-16">
    <div class="popular-movies">
        <h2
            class="uppercase tracking-wider text-orange-500 text-lg font-semibold"
        >
            Popular Movies
        </h2>
        <div
            class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-8"
        >
            @foreach ($popularMovies as $popularMovie)
                <x-movie-card :movie="$popularMovie" />
            @endforeach
        </div>
    </div>

    <div class="now-playing py-24">
        <h2
            class="uppercase tracking-wider text-orange-500 text-lg font-semibold"
        >
            Now Playing
        </h2>
        <div
            class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-8"
        >

        @foreach ($nowPlaying as $np_movie)
            <x-movie-card :movie="$np_movie" />
        @endforeach

        </div>
    </div>
</div>
@endsection