@include('user-web.layouts.sidebar')
@if(($postVideo)) @php $i = 0; @endphp @foreach($postVideo as $vid)
@php $profileImageUrl = isset($vid->profileImageUrl) ? $vid->profileImageUrl : 'https://www.shutterstock.com/image-vector/avatar-gender-neutral-silhouette-vector-600nw-2470054311.jpg'; $p_img = ''; if (\Illuminate\Support\Facades\File::exists(public_path($profileImageUrl))) { $p_img = env('APPLICATION_URL') . $profileImageUrl; } else { $p_img .= 'https://hapiverse.com/ci_api/public/' . $profileImageUrl; } @endphp

{{ucfirst($vid->user_name)}}

{{$vid->posted_date_r}}

{{$vid->caption}}

@php $extention=pathinfo($vid->postFileUrl, PATHINFO_EXTENSION); $url=env('APPLICATION_URL').$vid->postFileUrl ?? ''; @endphp @if($extention=="mp4" || $extention=="mov")
@endif
@php $i++; @endphp @endforeach @endif

Videos

@foreach($postVideo as $vid)
@php $extention=pathinfo($vid->postFileUrl, PATHINFO_EXTENSION); $url=env('APPLICATION_URL').$vid->postFileUrl ?? ''; @endphp @if($extention=="mp4" || $extention=="mov")
@endif
@endforeach