diff --git a/resources/views/user/channel.blade.php b/resources/views/user/channel.blade.php index 57d503b..67707b2 100644 --- a/resources/views/user/channel.blade.php +++ b/resources/views/user/channel.blade.php @@ -122,7 +122,8 @@ $headerSocialMap = [
- {{ number_format($videos->count() + $shorts->count()) }} videos + @php $vidTotal = $videos->count() + $shorts->count(); @endphp + {{ number_format($vidTotal) }} {{ Str::plural('video', $vidTotal) }} · @@ -780,8 +781,8 @@ $headerSocialMap = [ @endif
- - {{ $playlist->video_count }} videos + + {{ $playlist->video_count }} {{ Str::plural('video', $playlist->video_count) }}
{{ $playlist->name }}
@@ -795,7 +796,13 @@ $headerSocialMap = [ @else Public @endif - · {{ \Illuminate\Support\Number::abbreviate($playlist->view_count, precision: 1) }} + {{-- Hide the view-count row entirely when the playlist has + never been viewed. Previously showed "· eye 0.0" because + Number::abbreviate(0, precision: 1) prints "0.0". --}} + @if($playlist->view_count > 0) + · + {{ \Illuminate\Support\Number::abbreviate($playlist->view_count, precision: 1) }} + @endif @endforeach