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 +
+
+