@include('includes.head')
| ID | Photo | Artist Name | Role | Tags | Art Work | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $artist->id }} |
@if($artist->profile_pic)
|
{{ $artist->artist_name }} | @php $roleText = ''; if($artist->role == 1) $roleText = 'Artist'; elseif($artist->role == 2) $roleText = 'Illustrator'; elseif($artist->role == 3) $roleText = 'Both'; else $roleText = 'Not set'; @endphp {{ $roleText }} | @php $tagNames = []; $tagIds = explode(',', $artist->tag_ids ?? ''); foreach($tagIds as $tid) { $tag = $allTags->firstWhere('id', $tid); if($tag) $tagNames[] = $tag->name_en; } echo implode(', ', $tagNames); @endphp | {{ $artist->art_work ?? 0 }} | {{ $artist->status ? 'Active' : 'Inactive' }} |