@extends('news.feed_layout') @section('content')
@foreach($rss->channel->item as $first) @php $mediaArray = $first->xpath('media:thumbnail'); $media = end($mediaArray); $src = $media->attributes()->url; $url = str_replace('70x70', '768x432', $src); @endphp

{{$first->title}}

{{ \Carbon\Carbon::parse($first->pubDate)->formatLocalized('%a, %d %b %Y')}}

{{$first->description}}

Read more

@php break; @endphp @endforeach
@php $i=0; @endphp @foreach($rss->channel->item as $item) @php $mediaArray = $item->xpath('media:thumbnail'); $media = end($mediaArray); $src = $media->attributes()->url; $surl = str_replace('70x70', '768x432', $src); @endphp @if($i < 4)
{{$item->title}} {{ \Carbon\Carbon::parse($item->pubDate)->formatLocalized('%a, %d %b %Y')}}
@php $i++; @endphp @endif @endforeach
@foreach($rss->channel->item as $item) @php $mediaArray = $item->xpath('media:thumbnail'); $media = end($mediaArray); $src = $media->attributes()->url; $url = str_replace('70x70', '384x216', $src); @endphp @if($i > 7)

{{$item->title}}

{{ \Carbon\Carbon::parse($item->pubDate)->formatLocalized('%a, %d %b %Y')}}

{!! str_limit(strip_tags(html_entity_decode($item->description)),120,'...') !!}


@endif @php $i++; @endphp @endforeach
@endsection