visibility=="PRIVATE")
href="{{env('APP_URL')}}{{$attachment->path.$attachment->name}}"
@else
href="{{env('STORAGE_URL', '/storage').$attachment->path.$attachment->name}}"
@endif
class="d-block
col-auto
me-2
@if(!in_array($attachment->extension,$voice_extensions))
btn
@endif
not-pace
@if( in_array($attachment->extension,$image_extensions) && !in_array($attachment->extension,$voice_extensions) )
thumbnail-nafezly
@endif
group_msg_attach_{{$u_id}}
"
style="color: inherit;background:var(--bg-second-bg);border-radius: 5px;margin-bottom: 5px;border:1px solid rgb(141 141 141 / 12%);max-width: 100%;padding: 5px;"
rel='group_msg_attach_{{$u_id}}'
@if(in_array($attachment->extension,$image_extensions) || in_array($attachment->extension,$voice_extensions) )
target="_blank"
download="{{$attachment->original_name}}"
{{-- onclick="event.preventDefault();" --}}
@else
@endif
>
@if(!in_array($attachment->extension,$voice_extensions))
@if( in_array($attachment->extension,$image_extensions))
@else
@endif
{{ substr($attachment->original_name,0)}}
{{ round($attachment->size/(1024*1024),1)}}M
@elseif(in_array($attachment->extension,$voice_extensions))
@endif