{{ $data }}
@if($show == 'true')
{{ $title }}
@endif
@php parse_str($data, $module); $entId = (isset($module['entityId']) ? $module['entityId'] : false); $news = DB::connection('mysql_site_' . session('serverID')) ->table('posts') ->join('post_category', 'posts.id', '=', 'post_category.post_id') ->where('posts.site_id', '=', $siteID) ->where('post_category.category_id', '=', $entId) ->orderBy('posts.id', 'desc') ->limit($module['quantity']) ->get(); @endphp @if($news->count() == 0)
Nenhum registro encontrado
@else @foreach($news as $new)
{{ date('d/m/Y H:i',strtotime($new->created_at)) }}
{{ mb_strimwidth($new->title, 0, 125, "...") }}
@endforeach @endif