@if ($entity->documents->count() > 0 || $entity->company->documents->count() > 0 || ($entity->expense && $entity->expense->invoice_documents) || ($entity->task && $entity->company->invoice_task_documents))

{{ ctrans('texts.attachments') }}:

@foreach ($entity->documents as $document) @endforeach @foreach ($entity->company->documents as $document) @endforeach @if($entity->expense && $entity->expense->invoice_documents) @foreach ($entity->expense->documents as $document) @endforeach @endif @if($entity->task && $entity->company->invoice_task_documents) @foreach ($entity->task->documents as $document) @endforeach @endif
@endif