@if ($entity->documents()->where('is_public',1)->count() > 0 || $entity->company->documents()->where('is_public',1)->count() > 0 || ($entity->expense && $entity->expense->invoice_documents) || ($entity->task && $entity->company->invoice_task_documents))
{{ ctrans('texts.attachments') }}:
@foreach ($entity->documents()->where('is_public',1)->get() as $document)