@extends('layouts.vertical-individual', ["page_title"=> "Social Feed"]) @section('content') @php $iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod"); $iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad"); @endphp
processing...
@if (session()->has('message'))
{{ session()->get('message') }}
@endif

{{$article->title}}

{{$article->description}}

@foreach($article->contents as $content)
@if($content->type == 'text') {!! $content->content !!} @elseif($content->type == 'image') @elseif($content->type == 'video') @elseif($content->type == 'pdf')

Download PDF file.

@elseif($content->type == 'youtube')
@php preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $content->content, $match); $youtube_id = $match[1]; @endphp @endif
@endforeach

If Video is not loaded, please Reload the Video using below button

@endsection @section('script') @if($content->type == 'youtube') @endif @endsection