@if($type == 'post')
{{-- Post attachments info --}}
@foreach(PostsHelper::getAttachmentsTypesCount($post->attachments) as $attachmenttype => $count) @switch($attachmenttype) @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
@include('elements.icon',['icon'=>'lock-closed-outline','centered' => false,'variant'=>'small', 'classes' => 'mr-1']) {{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($post->price)}}
{{-- Sub button --}}
@endif