@if($v['video_type'] == 'link')
@php
$youtubeId = General::embededIdFromYouTubeUrl($v['link']);
@endphp
@if($v['thumbnail'] && file_exists(public_path($v['thumbnail'])))
}})
@elseif($youtubeId)

@else
}})
@endif
@elseif($v['video_type'] == 'upload' && $v['video'] )
@if($v['thumbnail'] && file_exists(public_path($v['thumbnail'])))
}})
@else
}})
@endif
@elseif($v['video_type'] == 'drive' && $v['drive_link'] )
@php
$driveId = get_drive_id_from_url($v['drive_link']);
@endphp
@if($v['thumbnail'] && file_exists(public_path($v['thumbnail'])))
}})
@else

@endif
@elseif($v['video_type'] == 'cipher' && $v['cipher_link'] )
@if($v['thumbnail'] && file_exists(public_path($v['thumbnail'])))
}})
@else
}})
@endif
@else
}})
@endif
{{date('M d, Y',strtotime($v['created']))}}
{{-- Dec 26, 2021 --}}
@if(UserAuth::getLoginId())
@if(VideoLikes::getRow(['video_likes.user_id = '.UserAuth::getLoginId().'','video_likes.video_id = '.$v["id"].'']))
@else
@endif
@php
$videoLikes = VideoLikes::getCount(['video_likes.video_id' => $v['id']]);
@endphp
{{$videoLikes && $videoLikes->count ? $videoLikes->count : ""}}
@endif
@if( (isset($activePlanFeatures) && $activePlanFeatures && isset($activePlanFeatures['all_audios_videos']) && $activePlanFeatures['all_audios_videos'] == 1 ) && $type == 'paid' || $type == 'free' || $id == $user->id)
@else
@endif
@if(isset($activePlanFeatures) && $activePlanFeatures && $activePlanFeatures['plan_type'] == 'customize_categories' && $activePlanFeatures['categories'])
@if($v['sub_category_name'])
{{Str::limit($v['sub_category_name'],40)}}
@endif
{{Str::limit($v['title'],100)}}
@else
{{Str::limit($v['title'],40)}}
{!! Str::limit($v['description'],40) !!}
@endif