@php $interviewArticles = json_decode($ArrRecentLeftPanelInterviewAricles, true); $baseThumb = config('constants.Sitethumbnail'); @endphp @if (!empty($interviewArticles))
{{-- SECTION HEADER --}}

Interview

View All
{{-- LEFT BIG ARTICLE --}} @php $main = $interviewArticles[0]; $mainPhoto = $main['photopath'] ? $baseThumb . $main['photopath'] : $baseThumb . 'default.jpg'; $mainDate = \Carbon\Carbon::parse($main['publish_date']); @endphp {{-- RIGHT SMALL ARTICLES --}}
@foreach ($interviewArticles as $index => $item) @continue($index === 0) @php $photo = $item['photopath'] ? $baseThumb . $item['photopath'] : $baseThumb . 'default.jpg'; $publishDate = \Carbon\Carbon::parse($item['publish_date']); @endphp
@endforeach
@endif