@foreach($News as $key => $News_res) @endforeach
Id Title Slug Description Photo status Actions
{{ $News_res->id }} {{ $News_res->title }} {{ $News_res->slug }} {{$News_res->parent_info->title ?? ''}} @php foreach($News_res->galleries(2)->get() as $gallery){ if (Storage::disk('public')->exists('uploads/gallery/' . $gallery->filename)) { @endphp @if(!empty($gallery->filename)) filename")}}" alt="Example Image" style="max-width: 100%; height: auto;"> @else avatar.png @endif @php } } @endphp {{ $News_res->status }}
{{ $News->links('vendor.pagination.custom') }}