@if($note->attachments->isNotEmpty())
@foreach($note->attachments as $attachment) @if($attachment->isPlayableAudio())
{{ Str::limit($attachment->original_name, 40) }} ({{ $attachment->humanSize() }})
@csrf @method('DELETE')
@else
@if($attachment->isImage()) @else @endif {{ Str::limit($attachment->original_name, 40) }} ({{ $attachment->humanSize() }})
@csrf @method('DELETE')
@endif @endforeach
@endif