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

{{ $show->name }} @if($show->first_air_date) ({{ $show->first_air_date->format('Y') }}) @endif

@if($show->tagline)

{{ $show->tagline }}

@endif
Overview

{{ $show->overview }}

@livewire(App\Livewire\ShowPage\Tabs\Details::class, ['show' => $show])
@livewire(App\Livewire\ShowPage\Tabs\Cast::class, ['show' => $show])
@livewire(App\Livewire\ShowPage\Tabs\Crew::class, ['show' => $show])
@livewire(App\Livewire\ShowPage\Tabs\Releases::class, ['show' => $show])
@if($show->backdrops)
@foreach($show->backdrops as $image) @endforeach
@endif
{{ $currentSeason->name }}
{{ $currentSeason->name }}
@if($currentSeason->overview)
Overview

{{ $currentSeason->overview }}

@endif
Air Date: @if($currentSeason->air_date) {{ \Carbon\Carbon::parse($currentSeason->air_date)->format('M d, Y') }} @else Unknown @endif
Episodes: {{ $currentSeason->episode_count }}
Episodes
@if(count($episodes) > 0)
@foreach($episodes as $episode)
@if($episode->still_path) Episode {{ $episode->episode_number }} @else
No Image
@endif
{{ $episode->episode_number }}. {{ $episode->name }}
@if($episode->vote_average > 0) {{ $episode->vote_average }} @endif
@if($episode->air_date)

{{ \Carbon\Carbon::parse($episode->air_date)->format('M d, Y') }} @if($episode->runtime) • {{ $episode->runtime }} min @endif

@endif

{{ $episode->overview }}

@endforeach
@else
No episodes available for this season.
@endif
@if(count($seasons) > 0)
All Seasons
@foreach($seasons as $season) @endforeach
@endif
Similar Shows
@livewire(App\Livewire\ShowPage\Similar::class, ['show' => $show])
Recommended
@livewire(App\Livewire\ShowPage\Recommended::class, ['show' => $show])
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
{{ $comment->author_name }}
{{ $comment->published_at }}
@if($comment->author_rating) {{ $comment->author_rating }} @endif
{!! $comment->content !!}
@endforeach
@endsection