fix: minor fixes for templates.

This commit is contained in:
2024-05-26 06:48:58 -05:00
parent 346193983f
commit e552dbab07
3 changed files with 5 additions and 0 deletions

View File

@@ -7,7 +7,9 @@
alt="{{ $artist->name }}" /></a>
<h4 class="title"><a href="/artist/{{ $artist->slug }}">{{ $artist->name }}</a></h4>
<p class="title">{{ $artist->location ?? 'No Agenda Nation' }}</p>
@if ($artist->artworks->count())
<p class="title">Artist For {{ $artist->artworks->sortBy('created_at')->first()->created_at->diffForHumans(now(), Carbon\CarbonInterface::DIFF_ABSOLUTE) }}</p>
@endif
@if ($artist->bio)
<h4>Bio:</h4>
<p>{{ nl2br($artist->bio) }}</p>