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

{{ $title }}

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

{{ trans('playlist_subtitle', ['name' => $playlist->name, 'count' => $playlist->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) ?: $playlist->getFirstMedia(Constant::THUMB_COLLECTION), 'title' => $firstMusic->file_name, 'artistNames' => join(',', Arr::pluck($firstMusic->artists, 'name')), ]) @endif @endsection