@extends($data['layout']) @section('title', $data['videos']->title) @php $url = URL::current(); use App\Helpers\General\AMP; use Illuminate\Pagination\Paginator; @endphp @push('head-area') @endpush @if(trim($data['videos']->meta_description) != null && $data['videos']->meta_description != 'NULL') @section('meta_description', $data['videos']->meta_description) {{-- @section('meta_keywords', $data['product']->meta_keywords) --}} @endif @section('meta_url', URL::Current()) @section('page_title', $data['videos']->title) @section('product_description',$data['videos']->meta_description) @php if(app()->environment() == 'dev') $site = 'dev'; else $site = 'www'; @endphp @section('image','https://'.$site.'.germedusa.com/static/assets/images/og_imag_logo.png') @section('image:width', "1200") @section('image:height', "630") @section('content') @if ($data['layout'] == 'frontend.layouts.app') @include('includes.partials.bread-crumbs') @endif

Videos

@if ($data['videos']) @foreach ($data['videos'] as $video) @php $videoData = @get_headers('https://player.vimeo.com/video/' . $video->video_id); @endphp @if ($video->source == 'Youtube')
@elseif ($video->source == 'Vimeo') {{-- @if (strpos($videoData[0], '200') > 0) --}}
{{-- @endif --}} @endif @endforeach @else

Sorry!, no videos found.

@endif
{{-- @if ($data['videos'] && $data['videos'] instanceof Illuminate\Pagination\Paginator) --}} {!! $data['videos']->appends(request()->except('page'))->links() !!} {{-- @endif --}}
@endsection