TOP NEWS IN MEDIA, MARKETING AND ADVERTISING

@if (isset($ArrRecentFeatureNewsfirstList) && count($ArrRecentFeatureNewsfirstList) > 0) @foreach ($ArrRecentFeatureNewsfirstList as $index => $ArrRecentFeatureNewsfList)
@php $story = $ArrRecentFeatureNewsfList; $isVideo = $story->story_type === 'video'; $isAlbum = $story->story_type === 'album'; // URL (no webinar logic) $url = $story->url; // Image path if ($isVideo) { $imgSrc = $story->photopath; } elseif ($isAlbum) { $imgSrc = config('constants.Sitethumbnail') . config('constants.awalbumimagedir') . $story->photopath; } else { $imgSrc = config('constants.Sitethumbnail') . $story->photopath; } $blurSrc = !$isVideo && !$isAlbum ? $imgSrc . '?blur=25' : $imgSrc; @endphp {{ $story->phototitle }} {{-- Breaking news icon --}} @if ($story->breaking_status == '1') icon @endif {{-- Pinned icon --}} @if ($story->breaking_status == '2') {{-- Desktop pinned --}} @if (!empty($parents[25]) && $parents[25]->status == 1 && $parents[25]->desktop == 1) {!! $parents[25]->bscript !!} @endif {{-- Mobile pinned --}} @if (!empty($parentsPinned[0]) && $parentsPinned[0]->status == 1) {!! $parentsPinned[0]->bscript !!} @endif @endif

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

@if (\Carbon\Carbon::parse($ArrRecentFeatureNewsfList->publish_date)->diffInWeeks() > 1) {{ \Carbon\Carbon::parse($ArrRecentFeatureNewsfList->publish_date)->format('d-F-Y') }} @else {{ \Carbon\Carbon::parse($ArrRecentFeatureNewsfList->publish_date)->diffForHumans() }} @endif

@endforeach @endif
{{-- OTHER TOP SMALL STORIES --}}
@if (isset($ArrRecentFeatureNewsList) && count($ArrRecentFeatureNewsList) > 0) @foreach ($ArrRecentFeatureNewsList as $index => $ArrRecentFeatureNewsList)
@php $story = $ArrRecentFeatureNewsList; $isVideo = $story->story_type === 'video'; $isAlbum = $story->story_type === 'album'; // Image path for src and data-src if ($isVideo) { $imgSrc = $story->photopath; $dataSrc = $story->photopath; } elseif ($isAlbum) { $imgSrc = config('constants.Sitethumbnail') . config('constants.awalbumimagedir') . $story->photopath; $dataSrc = config('constants.awsbaseurl') . config('constants.awalbumimagedir') . $story->photopath; } else { $base = config('constants.Sitethumbnail'); $imgSrc = $base . $story->photopath . '?blur=25'; $dataSrc = $base . $story->photopath; } @endphp {{ $story->phototitle }}
@endforeach @endif