@extends('layouts.app') @section('content')
{{ $movie->title }}
@if($movie->watchProviders->isNotEmpty())
Available on:
@foreach($movie->watchProviders as $watchProvider) {{ $watchProvider->provider_name }} @endforeach
@endif @if($movie->trailer->first()) Watch Trailer @endif

{{ $movie->title }} @if($movie->release_date) ({{ $movie->release_date->format('Y') }}) @endif

@if($movie->tagline)

{{ $movie->tagline }}

@endif @if($movie->director->count())
Directed by @foreach($movie->director as $director) {{ $director->name }}@if(!$loop->last), @endif @endforeach
@endif
Overview

{{ $movie->overview }}

@livewire(App\Livewire\MoviePage\Tabs\Details::class, ['movie' => $movie])
@livewire(App\Livewire\MoviePage\Tabs\Videos::class, ['movie' => $movie])
@livewire(App\Livewire\MoviePage\Tabs\Cast::class, ['movie' => $movie])
@livewire(App\Livewire\MoviePage\Tabs\Crew::class, ['movie' => $movie])
@livewire(App\Livewire\MoviePage\Tabs\Releases::class, ['movie' => $movie])
@livewire(App\Livewire\MoviePage\Tabs\Images::class, ['movie' => $movie])
@if($movie->collections()->exists())
Movie Collection
@livewire(App\Livewire\MoviePage\Collection::class, ['movie' => $movie])
@endif @if($movie->similar->count())
Similar Movies
@livewire(App\Livewire\MoviePage\Similar::class, ['movie' => $movie])
@endif @if($movie->recommendations->count())
Recommended
@livewire(App\Livewire\MoviePage\Recommendations::class, ['movie' => $movie])
@endif
Reviews
@if(Auth::check())
@csrf
@error('content')
{{ $message }}
@enderror
@else
You must be logged in to write a review.
@endif
@foreach($comments as $comment)
@if($comment->author_avatar) {{ $comment->author_name }} @else
@endif
@if($comment->author_name) {{ $comment->author_name }} @else {{ $comment->author->name }} @endif
{{ \Carbon\Carbon::createFromTimeString($comment->published_at)->diffForHumans() }}
@if($comment->tmdb_id) TMDB @endif
{!! $comment->content !!}
@endforeach
@endsection