{{ $data }}
@if($show == 'true')
{{ $title }}
@endif @php parse_str($data, $module); $news = DB::connection('mysql_site_' . session('serverID'))->table('news_updated'); if(isset($module['source'])){ $news->where('type','=',$module['source']); } if(isset($module['entityId'])){ $news->where('category','=',$module['entityId']); } $news = $news->orderBy('id','desc')->limit((isset($module['quantity']) ? $module['quantity'] : '5'))->get(); @endphp @if($news->count() == 0)
Selecione uma categoria
@else @foreach($news as $new)
CATEGORIA
{{-- foi removido as imagens, pois estava dando problema de direitos autorais --}}
{{ mb_strimwidth(htmlspecialchars_decode($new->title), 0, 125, "...") }}
{{ date('d/m/Y',strtotime($new->created_at)) }}
@endforeach @endif