@extends('layouts.app') @section('styles') @include ('layouts.footer-style') .poster-detail { width: 100%; max-width: 350px; border-radius: 4px; } .year { color: #868e96; } .rating { color: #868e96; font-size: 0.9rem; } .movie-credits { columns: 2; column-gap: 20px; } @media (max-width: 768px) { .movie-credits { columns: 1; } .poster-detail { max-width: 200px; margin: 0 auto; } } @endsection @section('content')
@if ( ! is_null($movie) )

← All Movies

@if ( ! is_null($movie->poster_url) ) {{ $movie->primary_title }} poster @else
🎬
@endif

@if ( ! is_null($movie->wiki_article) ) {{ $movie->primary_title }} @else {{ $movie->primary_title }} @endif @if ( ! is_null($movie->original_title) && $movie->original_title != $movie->primary_title ) ({{ $movie->original_title }}) @endif

@if ( ! is_null($movie->start_year) ) {{ $movie->start_year }} @endif @if ( ! is_null($movie->runtime_minutes) ) @if ( ! is_null($movie->start_year) ) · @endif {{ $movie->runtime_minutes }} min @endif @if ( ! is_null($movie->title_type) ) @if ( ! is_null($movie->start_year) || ! is_null($movie->runtime_minutes) ) · @endif {{ $movie->title_type }} @endif
@if ( ! is_null($movie->average_rating) ) ⭐ {{ number_format($movie->average_rating, 1) }} @if ( ! is_null($movie->num_votes) ) ({{ number_format($movie->num_votes) }} votes) @endif @endif
@if ( ! empty($genres) )
@foreach( $genres as $genre ) {{ $genre }} @endforeach
@endif @if ( ! empty($movie->synopsis) )

{{ strip_tags($movie->synopsis) }}

@endif @if ( ! empty($directors) )

Directed by

@foreach( $directors as $person )
{{ $person->name }}
@endforeach
@endif @if ( ! empty($actors) )

Starring

@foreach( $actors as $person )
{{ $person->name }}
@endforeach
@endif @if ( ! is_null($movie->imdb_id) ) @endif
@else

Movie Not Found

The requested movie could not be found.

Back to Movies
@endif
@endsection @section('footer') @include ('layouts.footer') @endsection