@extends('layouts.landing-page') @section('content') @php $bgUrl = app(\App\Services\UserServices::class)->getBgProfile($artist, 'lg'); $avatarUrl = app(\App\Services\UserServices::class)->getAvatar($artist, 'md'); $genres = app(\App\Services\UserServices::class)->getAllGenre($artist); $roleArray = $artist->getRoleNames(); $roleContent = ''; foreach ($roleArray as $role) { if ($role == 'Composer') { $roleContent = $roleContent . ' 🎵 Composer '; } if ($role == 'Artist') { $roleContent = $roleContent . ' 🎤 Artist '; } if ($role == 'Cover Creator') { $roleContent = $roleContent . ' 📹 Cover Creator '; } } @endphp
@if (isset($banner) && $banner && $banner->picture)
{{ $banner->title ?? 'Featured artist' }} @else
Featured artist default @endif
{{ $artist->name }}
@if ($artist->hasRole('Artist')) VERIFIED ARTIST @endif

{{ $artist->name }}

{{ $monthlyListeners }} monthly listeners • {{ $totalSongs }} songs
@if (auth()->check() && auth()->user()->id !== $artist->id) @php $isFollowingClass = $isFollowing ? 'following' : ''; $iconClass = $isFollowing ? 'ti-check' : 'ti-user-plus'; $buttonText = $isFollowing ? 'Following' : 'Follow'; @endphp @endif

Followings

@if ($followingList->isEmpty())

Belum Follows

@else @php $userService = app(\App\Services\UserServices::class); @endphp @foreach ($followingList as $following)
Profile picture
{{ $following->name }}
@if (auth()->check() && auth()->user()->id !== $following->id) @php $isCurrentlyFollowing = auth() ->user() ->following->contains($following->id); @endphp @endif
@endforeach @endif

About

{{-- Kontainer Biografi --}}
{{-- Gunakan ?-> untuk penanganan null yang aman --}}

{{ $artist->profile?->bio ?? 'No biography available.' }}

{{-- Kontainer Tombol Media Sosial --}}
@foreach ($socialMedia as $media) {!! $media['icon'] !!} @endforeach
{{-- Kontainer Statistik --}}
{{ $monthlyListeners }}
Monthly Listeners
{{ $totalStreams }}
Total Streams
{{ $totalAlbums }}
Albums
{{ $totalSongs }}
Songs
From
{{ $artist->region }}
Active since
{{ \Carbon\Carbon::parse($artist->created_at)->translatedFormat('Y') }}
@endsection @section('scripts') @endsection