@extends('frontend.layouts.app') @section('content')
@if($featured->count()) @endif @foreach(get_ads('between_news') as $ad)
@if($ad->type==='image' && $ad->image_url)ad@else{!! $ad->code !!}@endif
@endforeach

???????

?? ?????
@foreach($latest as $n)
{{ $n->title }}
{{ $n->category?->name }}
{{ Str::limit($n->title, 60) }}

{{ Str::limit(strip_tags($n->short_description), 80) }}

{{ time_ago($n->publish_date) }} @if($n->reporter) | {{ $n->reporter->name }}@endif
@endforeach
@foreach($categories->take(4) as $cat) @if($cat->published_news_count > 0)

{{ $cat->name }}

@php $catNews = $cat->publishedNews()->with('reporter')->latest('publish_date')->take(4)->get(); @endphp
@foreach($catNews as $cn) @endforeach
@endif @endforeach
?????????
@foreach($trending->take(6) as $i => $t)
{{ $i+1 }}
{{ Str::limit($t->title, 50) }}
{{ time_ago($t->publish_date) }}
@endforeach
@foreach(get_ads('sidebar') as $ad)
@if($ad->type==='image' && $ad->image_url)ad@else{!! $ad->code !!}@endif
@endforeach @if($photos->count())
??? ????????
@foreach($photos->take(6) as $p)
{{ $p->title }}
@endforeach
@endif @if($videos->count())
?????
@foreach($videos->take(3) as $v)
{{ $v->title }}
@endforeach
@endif
@endsection