Server IP : 66.29.132.124 / Your IP : 3.135.219.252 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/modules/News/Views/frontend/layouts/sidebars/ |
Upload File : |
<div class="sidebar-widget widget_bloglist"> <div class="sidebar-title"> <h2>{{ $item->title }}</h2> </div> <ul class="thumb-list"> @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 <li> @if($image_url = get_file_url($blog->image_id, 'thumb')) <div class="thumb"> <a href="{{ $blog->getDetailUrl(app()->getLocale()) }}"> {!! get_image_tag($blog->image_id,'thumb',['class'=>'','alt'=>$blog->title]) !!} </a> </div> @endif <div class="content"> @if(!empty($blog->getCategory->name)) <div class="cate"> <a href="{{$blog->getCategory->getDetailUrl()}}"> @php $translation_cat = $blog->getCategory->translateOrOrigin(app()->getLocale()); @endphp {{$translation_cat->name ?? ''}} </a> </div> @endif <h3 class="thumb-list-item-title"> <a href="{{ $blog->getDetailUrl(app()->getLocale()) }}">{!! clean($translation->title) !!}</a> </h3> </div> </li> @endforeach @endif </ul> </div>