From 5f72758005a686a0ce6d0add9ac5e8fcdd596084 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: Tue, 19 Mar 2024 16:01:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=2019=20=D0=BC?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D0=B0?= 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 344cd0d..b35bfd3 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