- @if($playlist->videos->count())
+
+ @if($playlist->videos_count)
@foreach($playlist->videos as $key => $video)
-
-
{{$key + 1}}
+
@if($video->user->is(Auth::user()) || $video->is_public)
- @include('videos.card-secondary', $video)
+ @include('videos.card-secondary', ['video' => $video, 'playlist_video' => true])
@else
diff --git a/resources/views/videos/card-secondary.blade.php b/resources/views/videos/card-secondary.blade.php
index 2bf12fb..b1f8873 100644
--- a/resources/views/videos/card-secondary.blade.php
+++ b/resources/views/videos/card-secondary.blade.php
@@ -1,4 +1,4 @@
-
+ !isset($playlist_video)])>