@if($attachments['search_type'] == 'all')
@endif
@foreach($attachments['results']->take(runtimeSearchDisplyLimit($attachments['search_type'])) as $attachment)
-
{{ $attachment->attachment_filename }}
@if($attachment->tags->isNotEmpty() && $attachment->tags->contains('tag_title', $search_query))
@endif
@if($attachment->attachmentresource_type == 'task')
- {{ str_limit($attachment->task_title ?? '', 50) }}
@endif
@if($attachment->attachmentresource_type == 'lead')
- {{ str_limit($attachment->lead_title ?? '', 50) }}
@endif
@endforeach