@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
{{-- Breaking news icon --}}
@if ($story->breaking_status == '1')
@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
@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