@extends('news.layout') @section('content')

@if($news['page_title'] != '') {{$news['page_title']}} @else {{$news['title']}} @endif


@if($news['upload_type']=='image') @elseif($news['upload_type']=='url') @else @endif @if($news['upload_type']=='image')
@else
@endif
@if($news['upload_type']=='image')
@if($logo_position == 'left') @else @endif
@if($logo_position == 'right') @endif
@endif
@if($news['upload_type']=='image')
BREAKING NEWS
{{$news['title']}}
{{$news['introduction']}}
@endif

{!! str_limit(strip_tags(html_entity_decode($news['content'])),100,'...') !!}

{!! html_entity_decode($news['content']) !!} Read less →
@if (strlen(strip_tags(html_entity_decode($news['content']))) > 100) Read More → @endif

@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)
{{ \Carbon\Carbon::parse($item->pubDate)->formatLocalized('%a, %d %b %Y')}} {{$item->title}}
@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