{{ $item->title }}

    @php $list_blog = $model_news->with(['getCategory','translations'])->orderBy('id','desc')->paginate(5) @endphp @if($list_blog) @foreach($list_blog as $blog) @php $translation = $blog->translateOrOrigin(app()->getLocale()) @endphp
  • @if($image_url = get_file_url($blog->image_id, 'thumb'))
    {!! get_image_tag($blog->image_id,'thumb',['class'=>'','alt'=>$blog->title]) !!}
    @endif
    @if(!empty($blog->getCategory->name))
    @php $translation_cat = $blog->getCategory->translateOrOrigin(app()->getLocale()); @endphp {{$translation_cat->name ?? ''}}
    @endif

    {!! clean($translation->title) !!}

  • @endforeach @endif