@if (count($ArrlistingArticlespinitsponser) > 0)

{{ $ArrlistingArticlespinitsponser[0]->name }}

@foreach ($ArrlistingArticlespinitsponser as $sp) @endforeach
@endif @if (count($ArrlistingArticlespinitsponser2) > 0)

{{ $ArrlistingArticlespinitsponser2[0]->name }}

@foreach ($ArrlistingArticlespinitsponser2 as $sp2) @endforeach
@endif @php // Count total marketing initiatives from BOTH arrays $marketingCount = count($ArrlistingArticlespinitsponser) + count($ArrlistingArticlespinitsponser2); // Default values $boxHeight = '500px'; $showAd = false; // Apply conditions switch ($marketingCount) { case 0: $boxHeight = '500px'; $showAd = true; // Show banner break; case 1: $boxHeight = '660px'; break; case 2: $boxHeight = '580px'; break; case 3: $boxHeight = '460px'; break; default: // 4 or more $boxHeight = '390px'; break; } @endphp

Latest News

View All
@if (isset($ArrlistingArticlespinitstory) && !empty($ArrlistingArticlespinitstory))

{{ Str::limit($ArrlistingArticlespinitstory->title, 90, '...') }}

@endif @php $newsItems = json_decode($ArrRecentNewsMiddelbarList); @endphp @forelse ($newsItems as $index => $news) @php $publishDate = \Carbon\Carbon::parse($news->publish_date); $isOlderThanWeek = $publishDate->diffInWeeks() > 1; $formattedDate = $isOlderThanWeek ? $publishDate->format('d-F-Y') : $publishDate->diffForHumans(); @endphp {{-- FIRST BIG STORY (only if top story is empty) --}} @if (empty($ArrlistingArticlespinitstory) && $index === 0)
{{ $news->phototitle }}

@if (!empty($news->special) && $news->special != '0') {!! $news->special !!}  @endif {{ $news->title }}

@if (Carbon\Carbon::parse( $news->publish_date && $news->publish_date ? $news->publish_date . ' ' . $news->publish_time : '---')->diffInDays() > 1) {{ Carbon\Carbon::parse($news->publish_date . ' ' . $news->publish_time)->format('M j, Y g:i A') }} @else {{ Carbon\Carbon::parse($news->publish_date && $news->publish_date ? $news->publish_date . ' ' . $news->publish_time : '---')->diffForHumans() }} @endif

@continue @endif {{-- OTHER SMALL STORIES --}}
{{ $news->phototitle }}
@empty @endforelse
{{-- Show this block only if BOTH arrays are empty --}} @if ($showAd && isset($parents[6]))
@if ($parents[6]->status == 1 && $parents[6]->desktop == 1) {!! $parents[6]->bscript !!} @endif
@endif