@isset($main_title) {{ $main_title }} @endisset
@if(strpos($myvalue, 'ifram') !== false) @elseif ((strpos($myvalue, 'youtube') !== false)&&((strpos($myvalue, 'embed/') !== false)&&(strpos($myvalue, 'ifram') == false)&&(strpos($myvalue, 'object') == false))) @elseif ((strpos($myvalue, 'youtube') !== false)&&((strpos($myvalue, 'embed/') == false)&&(strpos($myvalue, 'ifram') == false)&&(strpos($myvalue, 'object') == false))) @elseif(strpos($myvalue, 'video') !== false) {!!$myvalue!!} @elseif(strpos($myvalue, 'object') !== false) @elseif (strpos($myvalue, 'https://') !== false) @endif
{{-- @php if ($myvalue){ $video_id = substr($myvalue, (strripos($myvalue,"/")+1) ) ; } if($src) { $video_id = substr($src, (strripos($src,"/")+1) ) ; } $url = 'https://www.googleapis.com/youtube/v3/videos?part=statistics&id='.$video_id.'&key=AIzaSyCwqEq1jgUqn1X3Mg1Ovib7ZF4kjylGmys'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); $err = curl_error($ch); //if you need curl_close ($ch); $vedio_data = json_decode($response,true); @endphp

{{ count($vedio_data['items']) ? $vedio_data['items'][0]['statistics']['viewCount'] : ''}}

{{ count($vedio_data['items']) ? $vedio_data['items'][0]['statistics']['likeCount'] : ''}}

{{ count($vedio_data['items']) ? $vedio_data['items'][0]['statistics']['favoriteCount'] : ''}}

{{ count($vedio_data['items']) ? $vedio_data['items'][0]['statistics']['commentCount'] : ''}}
--}}