From 2c692f9c05378b62f89151d96de9cfb9c1765273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Wed, 15 May 2024 18:48:35 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=BE=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=D0=BC,=20=D0?= =?UTF-8?q?=B1=D0=B5=D0=B7=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA=20=D0=B2=D1?= =?UTF-8?q?=80=D0=BE=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/infobloks.php | 2 +- resources/views/workers/messages.blade.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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)) -- 1.7.10.4