@extends('frontend.app') @section('content')
{!! adCode('ad_all_page_top') !!}
@if ($media = $artist->getFirstMedia(Constant::THUMB_COLLECTION))
{{ $media->img()->conversion(Constant::THUMB)->attributes(['alt' => $artist->name . ' Image', 'class' => 'card-img lazyload']) }}
@endif

{{ $title }}

@php $colors = ['#fb5607', '#ff006e', '#8338ec', '#3a86ff', '#7209b7', '#9a031e', '#8c1c13']; $ciCount = count($colors) - 1; @endphp @foreach ($playlists as $item) @php $color = $colors[rand(0, $ciCount)]; @endphp {{ $item->name }} @if (!$loop->last) , @endif @endforeach

@if ($description = $artist->description) {!! $description !!} @else

{{ trans('artist_subtitle', ['name' => $artist->name, 'count' => $artist->posts_count ?: 0]) }}

@endif
    @include('frontend.list')
@include('frontend.pagination')
@if (!isInfiniteScroll()) {!! adCode('ad_all_page_bottom') !!} @endif
@endsection @section('bottomnavigation') @if ($firstMusic = $musics->first()) @include('frontend.miniplayer', [ 'media' => $firstMusic->getFirstMedia(Constant::THUMB_COLLECTION) ?: $firstMusic->album->getFirstMedia(Constant::THUMB_COLLECTION), 'title' => $firstMusic->file_name, 'artistNames' => join(',', Arr::pluck($firstMusic->artists, 'name')), ]) @endif @endsection