From a9d6ce8ffd5957987134371787e872fd8731c5e1 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: Fri, 15 Mar 2024 17:23:57 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0?= =?UTF-8?q?=B8=D0=B5=20=D0=BF=D0=BE=20=D0=B4=D0=BE=D0=BF=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Employer.php | 4 ++- .../2024_03_15_035922_alter_table_employers.php | 34 ++++++++++++++++++++ resources/views/companies.blade.php | 8 +++-- resources/views/employers/cabinet45.blade.php | 26 +++++++++++++++ 4 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 database/migrations/2024_03_15_035922_alter_table_employers.php diff --git a/app/Models/Employer.php b/app/Models/Employer.php index f57e1a1..4507632 100644 --- a/app/Models/Employer.php +++ b/app/Models/Employer.php @@ -30,7 +30,9 @@ class Employer extends Model 'category', 'comment_admin', 'code', - 'status_hidden' + 'status_hidden', + 'email_2', + 'telephone_2' ]; /* diff --git a/database/migrations/2024_03_15_035922_alter_table_employers.php b/database/migrations/2024_03_15_035922_alter_table_employers.php new file mode 100644 index 0000000..07de0d8 --- /dev/null +++ b/database/migrations/2024_03_15_035922_alter_table_employers.php @@ -0,0 +1,34 @@ +string('email_2', 255)->nullable(true); + $table->string('telephone_2', 255)->nullable(true); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('employers', function (Blueprint $table) { + $table->dropColumn('email_2'); + $table->dropColumn('telephone_2'); + }); + } +}; diff --git a/resources/views/companies.blade.php b/resources/views/companies.blade.php index 751b976..9d09279 100644 --- a/resources/views/companies.blade.php +++ b/resources/views/companies.blade.php @@ -123,9 +123,13 @@
@if (!empty($emp->logo)) - {{ $emp->name_company }} + + {{ $emp->name_company }} + @else - {{ $emp->name_company }} + + {{ $emp->name_company }} + @endif {{ $emp->name_company }} diff --git a/resources/views/employers/cabinet45.blade.php b/resources/views/employers/cabinet45.blade.php index ae2d1a8..9c2190b 100644 --- a/resources/views/employers/cabinet45.blade.php +++ b/resources/views/employers/cabinet45.blade.php @@ -89,6 +89,19 @@ @enderror
+ +
+ +
+ + @error('email') + + {{ $message }} + + @enderror +
+
+
@@ -100,6 +113,19 @@ @enderror
+ +
+ +
+ + @error('telephone') + + {{ $message }} + + @enderror +
+
+
-- 1.7.10.4