@if( !(!$isGallery && AttachmentHelper::getAttachmentType($attachment->type) == 'video')) @endif @if($isGallery) @if(AttachmentHelper::getAttachmentType($attachment->type) == 'image')
@elseif(AttachmentHelper::getAttachmentType($attachment->type) == 'video')
@elseif(AttachmentHelper::getAttachmentType($attachment->type) == 'audio')
@endif @else @if(AttachmentHelper::getAttachmentType($attachment->type) == 'image') @elseif(AttachmentHelper::getAttachmentType($attachment->type) == 'video')
@elseif(AttachmentHelper::getAttachmentType($attachment->type) == 'audio')
@endif @endif @if( !(!$isGallery && AttachmentHelper::getAttachmentType($attachment->type) == 'video'))
@endif