@extends('layouts.app') @section('content')

{{ $celebrity->name }}

TMDB @if($celebrity->homepage) | TMDB @endif @if($celebrity->imdb_id) | IMDB @endif
@if($celebrity->birtday) Birthday {{ $celebrity->birtday }} @if($celebrity->palce_of_birth) ({{ $celebrity->palce_of_birth }}) @endif @endif @if($celebrity->deathday) Deathday {{ $celebrity->deathday }} @endif

{{ $celebrity->biography }}

@if($celebrity->also_known_as)

Also known as: @foreach(json_decode($celebrity->also_known_as ?? "{}", true) as $alsoKnown) {{ $alsoKnown }} @if(!$loop->last), @endif @endforeach

@endif
@foreach($moviesByDepartments as $department => $movies)

{{ $department }}

@foreach($movies as $movie) @endforeach @endforeach
@foreach($showsByDepartment as $department => $shows)

{{ $department }}

@foreach($shows as $show) @endforeach @endforeach
@endsection