{{ $item->title }}

    @php $list_blog = $model_news->with(['category','translation'])->orderBy('id','desc')->paginate(5) @endphp @if($list_blog) @foreach($list_blog as $blog) @php $translation = $blog->translate() @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->category->name))
    @php $translation_cat = $blog->category->translate(); @endphp {{$translation_cat->name ?? ''}}
    @endif

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

  • @endforeach @endif