diff --git a/resources/views/playlists/show.blade.php b/resources/views/playlists/show.blade.php index 61311ef..70ace8a 100644 --- a/resources/views/playlists/show.blade.php +++ b/resources/views/playlists/show.blade.php @@ -55,14 +55,13 @@ class="btn btn-primary btn-sm"
-
- @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)])>