@php $mediaTabs = [ 'tab1' => [ 'url' => 'media-tv-news.html', 'label' => 'Television', 'articles' => $ArrRecentRightPanelTelevisionAricles, ], 'tab2' => [ 'url' => 'digital-news.html', 'label' => 'Digital', 'articles' => $ArrRecentRightPanelDigitalAricles, ], 'tab3' => [ 'url' => 'out-of-home-news.html', 'label' => 'Out of Home', 'articles' => $ArrRecentRightPanelOutofHomeAricles, ], 'tab4' => [ 'url' => 'media-print-news.html', 'label' => 'Print', 'articles' => $ArrRecentRightPanelPrintAricles, ], 'tab5' => [ 'url' => 'media-radio-news.html', 'label' => 'Radio', 'articles' => $ArrRecentRightPanelRadioAricles, ], ]; @endphp
@foreach ($mediaTabs as $tabId => $tab)
@php $words = explode(' ', $tab['label'], 2); @endphp

{{ $words[0] }} {{ $words[1] ?? '' }}

View All
@if (!empty($tab['articles']) && count($tab['articles']) > 0) @php $big = $tab['articles'][0]; @endphp
{{ $big->title }}

{{ $big->title }}

{{ \Carbon\Carbon::parse($big->publish_date)->diffForHumans() }}

@if (!empty($big->summary))

{{ Str::limit($big->summary, 120) }}

@endif
@foreach ($tab['articles']->skip(1)->take(4) as $small)
@endforeach
@endif
@endforeach