Also Known As:



Media

component->tabs('character-media', $data['media'], static function ($media, $mediaType) use ($_) { $rendered = []; foreach ($media as $id => $item) { $rendered[] = $_->component->media( array_merge([$item['title']], $item['titles']), $_->urlFromRoute("{$mediaType}.details", ['id' => $item['slug']]), $_->h->img(Kitsu::getPosterImage($item), ['width' => 220, 'loading' => 'lazy']), ); } return implode('', array_map('mb_trim', $rendered)); }, 'media-wrap content') ?>
0): ?>

Castings

$entries): ?>

$casting): ?>
$c): ?>
Cast Member Series

Voice Actors

component->tabs('character-vas', $vas, static function ($casting) use ($_) { $castings = []; foreach ($casting as $id => $c): $person = $_->component->character( $c['person']['name'], $_->urlFromRoute('person', ['slug' => $c['person']['slug']]), $_->h->img($c['person']['image']['original']['url']), ); $medias = array_map(fn ($series) => $_->component->media( array_merge([$series['title']], $series['titles']), $_->urlFromRoute('anime.details', ['id' => $series['slug']]), $_->h->img(Kitsu::getPosterImage($series)), ), $c['series']); $media = implode('', array_map('mb_trim', $medias)); $castings[] = << {$person}
{$media}
HTML; endforeach; $languages = implode('', array_map('mb_trim', $castings)); return << Cast Member Series {$languages} HTML; }, 'content') ?>