- @if($it->text || $it->reply_message_id)
+ @if($it->text || $it->reply_message_id || $it->ad_employer_id > 0)
@if($it->ad_employer_id > 0)
- Отклик на вакансию "{{ \App\Models\Ad_employer::find($it->ad_employer_id)->name }}"
+ Отклик на вакансию "{{ \App\Models\Ad_employer::find($it->ad_employer_id)?->name }}"
@if($it->text)
Комментарий: {{ $it->text }}
@endif
diff --git a/resources/views/employers/list_vacancy.blade.php b/resources/views/employers/list_vacancy.blade.php
index 0850efc..cb9fe8a 100644
--- a/resources/views/employers/list_vacancy.blade.php
+++ b/resources/views/employers/list_vacancy.blade.php
@@ -122,36 +122,36 @@