{{__('rating')}}
{{$result[0]->m_title}}
{{__('average')}}
{{$scr}}
/
5
({{$ratings->count}} {{__('vote')}})
{{__('order')}}
{{$rankings}}, {{$ranking->count}}
{{__('view')}}
@else
Təyin olunmayıb , 0 {{__('view')}}
@endif
{{__('alternatives')}}
{{$manga_id->m_alternative}}
{{__('authors')}}
{{__('artists')}}
@php
// Handle both single ID and comma-separated list of IDs
$artistIds = is_array($manga_id->m_artist)
? $manga_id->m_artist
: (strpos($manga_id->m_artist, ',') !== false
? explode(',', $manga_id->m_artist)
: [$manga_id->m_artist]);
// Filter out empty values and convert to integers
$artistIds = array_filter(array_map(function($id) {
return trim($id);
}, $artistIds), function($id) {
return !empty($id) && is_numeric($id);
});
// Convert to integers for consistent key matching
$artistIds = array_map('intval', $artistIds);
// Fetch all artists in a single query
$artists = !empty($artistIds) ? \App\Artist::whereIn('id', $artistIds)->get()->keyBy('id') : collect();
@endphp
@foreach($artistIds as $index => $artistId)
@php
$artist = isset($artists[$artistId]) ? $artists[$artistId] : null;
@endphp
@if( $artist && isset($artist->fullname) )
{{$artist->fullname}}
@if( $index < count($artistIds) - 1 ),
@endif
@endif
@endforeach
{{-- ICiyuan dongman,Unknown--}}
{{__('categories')}}
@foreach(explode(',', $manga_id->m_category_id) as $item)
@php
$temp = \App\MangaCategory::where('id','=',$item)->first();
@endphp
@if( isset($temp->m_name) )
{{$temp->$loc}}
@if( !$loop->last and isset($temp->$loc)),
@endif
@endif
@endforeach
{{-- Drama,--}}
{{-- Josei, Manhua, Romance--}}
--}}
{{-- --}}
{{--
--}}
Type
Updating
--}}
{{--