@extends('layouts.app') @section('content')
@if($celebrity->profile_path) {{ $celebrity->name }} @else
No Image
@endif
@if($celebrity->homepage) Homepage @endif

{{ $celebrity->name }}

@if($celebrity->birtday)

Birthday: {{ $celebrity->birtday }} @if($celebrity->palce_of_birth) ({{ $celebrity->palce_of_birth }}) @endif

@endif @if($celebrity->deathday)

Deathday: {{ $celebrity->deathday }}

@endif
Biography

{{ $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 }}
@endforeach
@foreach($showsByDepartment as $department => $shows)
{{ $department }}
@endforeach
@endsection