Update (ui)

This commit is contained in:
2023-11-22 08:19:59 +08:00
parent c987be532d
commit 8978fb7670
2 changed files with 12 additions and 5 deletions

View File

@@ -39,7 +39,14 @@ class="font-family-roboto-condensed mb-1 pb-1 d-inline badge bg-danger border-da
<i class="bi bi-dot"></i>
@endif
<span class="d-inline text-secondary small">{{ $post->published_at->format('d M') }}</span>
<span class="d-inline text-secondary small">
@if($post->published_at->isBetween(now()->subDays(1), now()))
{{ $post->published_at->diffForHumans() }}
@else
{{ $post->published_at->format('d M') }}
@endif
</span>
<i class="bi bi-dot"></i>
<span class="d-inline text-secondary small">{{ min_read($post->bites) }}</span>
</div>