add-show-page #1

Merged
costin merged 3 commits from add-show-page into main 2024-08-26 22:14:19 +03:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 44105afff4 - Show all commits

View file

@ -117,6 +117,7 @@ public function formatTmdbShow($data):array
$show['similar'] = $this->formatTmdbResponse($data['recommendations'], false, [], 8)['data'] ?? [];
$show['keywords'] = $data['keywords']['results'] ?? [];
$show['languages'] = self::getSpokenLanguages($data['spoken_languages']);
$show['share'] = self::getShareLinks(route('movie', ['id' => $show['id'], 'slug' => $show['slug']]), $show['title'], Str::limit($show['overview'], 100), $show['poster']);
// dd($show);
return $show;

View file

@ -98,7 +98,7 @@
<span class="caption">Genres:&nbsp</span>
<span class="value">
@foreach($show['genres'] as $genre)
<a href="{{route('movies.genre', $genre['slug'])}}">{{ $genre['name'] }}</a>@if(!$loop->last), @endif
<span>{{ $genre['name'] }}</span>@if(!$loop->last), @endif
@endforeach
</span>
</li>