@extends('admin.layout.app') @section('content')

{{$artist->name ?? ''}}

@if($artist->hasRole('artist')) - {{$artist->address ?? ''}} @endif
@if($artist->hasRole('artist')) @endif

Profile

profile-img

{{$artist->name ?? ''}}

@if($artist->hasRole('artist'))

- {{$artist->address ?? ''}}

{{$artist->description ?? ''}}

@endif

About @if($artist->hasRole('artist'))Artist @else User @endif

Joined:

{{ $artist->created_at ? $artist->created_at->format('j/n/Y') : '' }}

@if($artist->hasRole('artist'))
Lives:

{{$artist->address ?? ''}}

@endif @if($artist->hasRole('artist'))
Social Links:
@foreach($artist->socialLinks as $link) @php // map key to icon class $icons = [ 'facebook' => 'fab fa-facebook-f', 'instagram' => 'fab fa-instagram', 'youtube' => 'fab fa-youtube', 'website' => 'fas fa-globe', 'spotify' => 'fab fa-spotify', 'tiktok' => 'fab fa-tiktok' ]; $iconClass = $icons[$link->key] ?? 'fas fa-link'; @endphp @endforeach
@endif
@if($artist->hasRole('artist'))

Activity

@forelse($artist->mediaPosts as $post)
{{-- HEADER --}}
{{ $post->title }}
@if($post->description)

{{ $post->description }}

@endif Rs {{ number_format($post->amount) }}
{{-- MAIN MEDIA --}}
@foreach($post->media as $media) @php $url = $media->getUrl(); $mime = $media->mime_type; @endphp
{{-- IMAGE --}} @if(Str::startsWith($mime,'image')) @endif {{-- VIDEO --}} @if(Str::startsWith($mime,'video')) @endif
@endforeach
{{-- REVIEW + RATING --}} @if($post->reviews)
Review:

{{ $post->reviews->review ?? 'No review' }}

Rating: ⭐ {{ $post->reviews->rating }}/5
@endif
@empty

No activity found.

@endforelse
@endif
@if($artist->hasRole('artist'))

Gallery

{{ $artist->mediaPosts->sum(fn($post) => $post->media->count()) }} items
@foreach($artist->mediaPosts as $post) @foreach($post->media as $media) @php $url = $media->getUrl(); $mime = $media->mime_type; @endphp @if(Str::startsWith($mime, 'image')) @endif @if(Str::startsWith($mime, 'video')) @endif @endforeach @endforeach
@endif
@endsection