@if($type == 'post') @if(getSetting('feed.show_attachments_counts_for_ppv')) {{-- Post attachments info --}}
@foreach(PostsHelper::getAttachmentsTypesCount($post->attachments) as $type => $count) @switch($type) @case('image')
@include('elements.icon',['icon'=>'images-outline','centered' => false,'variant'=>'small', 'classes' => 'mr-1']) {{$count}}
@break @case('video')
@include('elements.icon',['icon'=>'videocam-outline','centered' => false,'variant'=>'small', 'classes' => 'mr-1']) {{$count}}
@break @case('audio')
@include('elements.icon',['icon'=>'musical-notes-outline','centered' => false,'variant'=>'small', 'classes' => 'mr-1']) {{$count}}
@break @endswitch @endforeach
@endif {{-- Sub button --}}
@endif