@if(count($posts) > 0 && isset($ad->id22))
{{ $creative->text_photo }}
Реклама
{{ $creative->text_btn }}
{{ $creative->text }}
@endif @forelse($posts as $post) @isset($slide)
  • @endisset @if(empty($post->text) && $post->video == '[]'&& $post->photo == '[]') @php continue; @endphp @endif @if($lenta->soc == 'tg') @php $photos = json_decode($post->photo, true); $videos = json_decode($post->video, true); foreach($glist as $glistV) { if ($glistV->lid == $post->post_id) { $headerInfo = $glistV; break; } } $currentDate = Helper::rdate('d M H:i',$post->post_date); $link = Helper::postLink($lenta->soc, $post->post_id, $post->wall_id); @endphp
    {{ $headerInfo->name }}
    {{ $currentDate }}
      @if(count($photos) > 1) @foreach($photos as $photo)
    • @endforeach @elseif(count($photos) == 1)
    • @endif
    {{ $post->text }}
    @elseif($lenta->soc == 'vk') @php $photos = json_decode($post->photo, true); $videos = json_decode($post->video_link, true); if($post->text == NULL && $post->photo == '[]' && $post->video_link == '[]'){continue;} $gID = mb_substr( $post->post_id, 1); foreach($glist as $glistV) { if ($glistV->lid == $gID) { $headerInfo = $glistV; break; } } $currentDate = Helper::rdate('d M H:i',$post->post_date); $link = Helper::postLink($lenta->soc, $post->post_id, $post->wall_id); @endphp
    {{ $headerInfo->name }}
    {{ $currentDate }}
      @foreach($photos as $photo)
    • @endforeach @foreach($videos as $video) @endforeach
    {{ $post->text }}
    @else
    {{ $userInfo->name }}
    {{ Helper::rdate('d M H:i',$post->post_date) }}
    @php $medias = json_decode($post->photo, true); @endphp
    {{ $post->text }}
    @if(count($medias['photo']) > 0 || count($medias['video']) > 0)
      @foreach($medias['photo'] as $photo)
    • @endforeach @foreach($medias['video'] as $file)
    • Название
    • @endforeach
    @endif @if(count($medias['file']) > 0) @endif
    @endif @isset($slide)
  • @endisset @empty @endforelse