@foreach($allArticles as $key=>$articles)
@if(isset($articles['imgPaths']['data']['urls']['uploaded']['original'])) {{ $articles['title'] }} @elseif(isset($articles['imgPaths']['data']['urls']['uploaded']['thumbnail'])) {{ $articles['title'] }} @elseif(isset($articles['imgPaths']['data']['urls']['16x9']['770_433'])) {{ $articles['title'] }} @else {{ $articles['title'] }} @endif

{{ $articles['title'] }}

@include('layouts.logos.icons.share-icon', ['width' => '25px', 'height' => '15px', 'fill' => 'white'])
@if(isset($articles['updated'])) @include('layouts.logos.icons.updated',['width'=>'13px','height'=>'13px','fill'=>'gray']) {{ date('d F Y',strtotime(substr($articles['updated'],0, strpos($articles['updated'],' ')))).' | '.substr($articles['updated'],-8,-3) }} @else {{ date('d F Y',strtotime(substr($articles['fromDate'],0, strpos($articles['fromDate'],' ')))).' | '.substr($articles['fromDate'],-8,-3) }} @endif
@include('layouts.logos.icons.people', ['width' => '22px', 'height' => '18px', 'fill' => '#cdcdcd'])
{{ $articles['viewed'] }}
@include('layouts.logos.icons.comments', ['width' => '22px', 'height' => '18px', 'fill' => '#cdcdcd'])
@if(isset($articles['related']) && count($articles['related']))
    @foreach($articles['related'] as $related) @if($related['type'] == 'article')
  • {{-- --}}
    {{ mb_substr($related['data']['published_at'],11,5) }}
    {{ $related['data']['title'] }}
  • @endif @endforeach
@endif
@if($key % 3 == 0 && $key > 0) @switch(rand(1,3)) @case(1)
@break @case(2)
@break @case(3)
авточасти онлайн от chastite.com
@break @default {{-- @include('layouts.side-bar-components._vertical-banner', ['bannerURL'=>'../resources/image/temp/banner-728-'.rand(2,4).'.jpg']) --}} @endswitch @endif {{-- {{ dd(array_rand($tournaments,1)) }} --}} @if(isset($tournaments)) @if($key % 5 == 0 && $key >0) @php $id = array_rand($tournaments,1); $pickATournament = $tournaments[$id]; unset($tournaments[$id]); @endphp
@include('mobile.layouts.custom-widget-matches',['tournament' => $pickATournament])
@endif @endif @endforeach @if(gettype($allArticlesByDate->links()) != 'undefined') {{ $allArticlesByDate->links() }} @endif