diff --git a/app/Models/infobloks.php b/app/Models/infobloks.php index 8444041..b6689ba 100644 --- a/app/Models/infobloks.php +++ b/app/Models/infobloks.php @@ -24,6 +24,6 @@ class infobloks extends Model один-ко-многим */ public function model_dop_info() { - return $this->hasMany(dop_info::class, 'infoblok_id'); + return $this->hasMany(Dop_info::class, 'infoblok_id'); } } diff --git a/resources/views/workers/messages.blade.php b/resources/views/workers/messages.blade.php index 09c015c..7cbaa9d 100644 --- a/resources/views/workers/messages.blade.php +++ b/resources/views/workers/messages.blade.php @@ -53,7 +53,7 @@ - + @if ($type_message == 'input') @if ($it->user_from->is_worker) @if (isset($it->user_from->workers[0]->photo)) @@ -70,6 +70,7 @@ @endif @endif + @if ($type_message == 'output') @if ($it->user_from->is_worker) @if (isset($it->user_from->workers[0]->photo))