diff --git a/app/Models/SEO.php b/app/Models/SEO.php new file mode 100644 index 0000000..6c38696 --- /dev/null +++ b/app/Models/SEO.php @@ -0,0 +1,11 @@ +id(); $table->bigInteger('user_id')->nullable(false); $table->integer('lookin')->default(0); - $table->string('month_year', 255)->nullable(); $table->integer('message')->default(0); $table->timestamps(); }); diff --git a/database/migrations/2023_05_16_081330_create_static_ads_table.php b/database/migrations/2023_05_16_081330_create_static_ads_table.php index 567efa7..aed2843 100644 --- a/database/migrations/2023_05_16_081330_create_static_ads_table.php +++ b/database/migrations/2023_05_16_081330_create_static_ads_table.php @@ -17,7 +17,6 @@ return new class extends Migration $table->id(); $table->bigInteger('ad_employer_id')->nullable(false); $table->integer('lookin')->default(0); - $table->string('month_year', 255)->nullable(); $table->integer('message')->default(0); $table->timestamps(); }); diff --git a/database/migrations/2023_09_01_115021_alter_users_table3.php b/database/migrations/2023_09_01_115021_alter_users_table3.php new file mode 100644 index 0000000..db244dd --- /dev/null +++ b/database/migrations/2023_09_01_115021_alter_users_table3.php @@ -0,0 +1,34 @@ +timestamp('birthday')->nullable(); + $table->boolean('is_bd')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('birthday'); + $table->dropColumn('is_bd'); + }); + } +}; diff --git a/database/migrations/2023_09_01_115802_alter_employers_table2.php b/database/migrations/2023_09_01_115802_alter_employers_table2.php new file mode 100644 index 0000000..c343db5 --- /dev/null +++ b/database/migrations/2023_09_01_115802_alter_employers_table2.php @@ -0,0 +1,42 @@ +string('coord', 255)->nullable(); + $table->boolean('is_remove')->default(false); + $table->boolean('status_hidden')->default(false); + $table->boolean('oficial_status')->default(false); + $table->boolean('social_is')->default(false); + $table->boolean('sending_is')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('employers', function (Blueprint $table) { + $table->dropColumn('coord'); + $table->dropColumn('is_remove'); + $table->dropColumn('status_hidden'); + $table->dropColumn('oficial_status'); + $table->dropColumn('social_is'); + $table->dropColumn('sending_is'); + }); + } +}; diff --git a/database/migrations/2023_09_01_121152_alter_ad_employers_table.php b/database/migrations/2023_09_01_121152_alter_ad_employers_table.php new file mode 100644 index 0000000..2a82ae7 --- /dev/null +++ b/database/migrations/2023_09_01_121152_alter_ad_employers_table.php @@ -0,0 +1,34 @@ +boolean('is_remove')->default(false); + $table->boolean('active_is')->default(true); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('ad_employers', function (Blueprint $table) { + $table->dropColumn('is_remove'); + $table->dropColumn('active_is'); + }); + } +}; diff --git a/database/migrations/2023_09_01_121950_alter_workers_table.php b/database/migrations/2023_09_01_121950_alter_workers_table.php new file mode 100644 index 0000000..238b8a6 --- /dev/null +++ b/database/migrations/2023_09_01_121950_alter_workers_table.php @@ -0,0 +1,36 @@ +string('coord', 255)->nullable(); + $table->string('file', 255)->nullable(); + $table->boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('workers', function (Blueprint $table) { + $table->dropColumn('coord'); + $table->dropColumn('file'); + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_122417_alter_categories_table.php b/database/migrations/2023_09_01_122417_alter_categories_table.php new file mode 100644 index 0000000..7373183 --- /dev/null +++ b/database/migrations/2023_09_01_122417_alter_categories_table.php @@ -0,0 +1,32 @@ +boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('categories', function (Blueprint $table) { + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_123056_alter_job_titles_table.php b/database/migrations/2023_09_01_123056_alter_job_titles_table.php new file mode 100644 index 0000000..835aefe --- /dev/null +++ b/database/migrations/2023_09_01_123056_alter_job_titles_table.php @@ -0,0 +1,32 @@ +boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('job_titles', function (Blueprint $table) { + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_123338_alter_group_works_table.php b/database/migrations/2023_09_01_123338_alter_group_works_table.php new file mode 100644 index 0000000..b44878a --- /dev/null +++ b/database/migrations/2023_09_01_123338_alter_group_works_table.php @@ -0,0 +1,32 @@ +boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('group_works', function (Blueprint $table) { + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_123950_create_sertifications_table.php b/database/migrations/2023_09_01_123950_create_sertifications_table.php new file mode 100644 index 0000000..b9d6122 --- /dev/null +++ b/database/migrations/2023_09_01_123950_create_sertifications_table.php @@ -0,0 +1,34 @@ +id(); + $table->timestamp('date_begin')->nullable(); + $table->timestamp('end_begin')->nullable(); + $table->bigInteger('worker_id')->nullable(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('sertifications'); + } +}; diff --git a/database/migrations/2023_09_01_131509_alter_static_workers_table.php b/database/migrations/2023_09_01_131509_alter_static_workers_table.php new file mode 100644 index 0000000..6cb531e --- /dev/null +++ b/database/migrations/2023_09_01_131509_alter_static_workers_table.php @@ -0,0 +1,32 @@ +string('year_month', 255)->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('static_workers', function (Blueprint $table) { + $table->dropColumn('year_month'); + }); + } +}; diff --git a/database/migrations/2023_09_01_131903_alter_static_ads_table.php b/database/migrations/2023_09_01_131903_alter_static_ads_table.php new file mode 100644 index 0000000..6e55fe3 --- /dev/null +++ b/database/migrations/2023_09_01_131903_alter_static_ads_table.php @@ -0,0 +1,32 @@ +string('year_month', 255)->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('static_ads', function (Blueprint $table) { + $table->dropColumn('year_month'); + }); + } +}; diff --git a/database/migrations/2023_09_01_132059_alter_companies_table.php b/database/migrations/2023_09_01_132059_alter_companies_table.php new file mode 100644 index 0000000..c361837 --- /dev/null +++ b/database/migrations/2023_09_01_132059_alter_companies_table.php @@ -0,0 +1,34 @@ +integer('time_mess')->default(5); + $table->integer('time_resume')->default(30); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('companies', function (Blueprint $table) { + $table->dropColumn('time_mess'); + $table->dropColumn('time_resume'); + }); + } +}; diff --git a/database/migrations/2023_09_01_132618_create_ad_responses_table.php b/database/migrations/2023_09_01_132618_create_ad_responses_table.php new file mode 100644 index 0000000..5e4b975 --- /dev/null +++ b/database/migrations/2023_09_01_132618_create_ad_responses_table.php @@ -0,0 +1,35 @@ +id(); + $table->bigInteger('message_id')->nullable(false); + $table->bigInteger('ad_employer_id')->nullable(false); + $table->bigInteger('job_title_id')->nullable(false); + $table->boolean('flag')->default(true); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('ad_responses'); + } +}; diff --git a/database/migrations/2023_09_01_134821_create_reclames_table.php b/database/migrations/2023_09_01_134821_create_reclames_table.php new file mode 100644 index 0000000..919e036 --- /dev/null +++ b/database/migrations/2023_09_01_134821_create_reclames_table.php @@ -0,0 +1,39 @@ +id(); + $table->string('title', 255)->nullable(); + $table->string('image', 255)->nullable(); + $table->string('link', 255)->nullable(); + $table->text('text')->nullable(); + $table->integer('position')->default(0); + $table->boolean('is_hidden')->default(false); + $table->integer('col_vo_click')->default(0); + $table->boolean('is_remove')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('reclames'); + } +}; diff --git a/database/migrations/2023_09_01_135450_create_header_footers_table.php b/database/migrations/2023_09_01_135450_create_header_footers_table.php new file mode 100644 index 0000000..165f16e --- /dev/null +++ b/database/migrations/2023_09_01_135450_create_header_footers_table.php @@ -0,0 +1,37 @@ +id(); + $table->string('name', 255)->nullable(); + $table->string('link', 255)->nullable(); + $table->bigInteger('code_id')->nullable(false); + $table->string('category', 255)->nullable(); + $table->boolean('header')->default(true); + $table->integer('sort')->default(100); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('header_footers'); + } +}; diff --git a/database/migrations/2023_09_01_135606_create_infobloks_table.php b/database/migrations/2023_09_01_135606_create_infobloks_table.php new file mode 100644 index 0000000..f53be9a --- /dev/null +++ b/database/migrations/2023_09_01_135606_create_infobloks_table.php @@ -0,0 +1,33 @@ +id(); + $table->string('name', 255)->nullable(); + $table->boolean('is_remove')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('infobloks'); + } +}; diff --git a/database/migrations/2023_09_01_135734_create_dop_info_table.php b/database/migrations/2023_09_01_135734_create_dop_info_table.php new file mode 100644 index 0000000..5e7ebf9 --- /dev/null +++ b/database/migrations/2023_09_01_135734_create_dop_info_table.php @@ -0,0 +1,34 @@ +id(); + $table->bigInteger('worker_id')->nullable(false); + $table->bigInteger('infoblok_id')->nullable(false); + $table->text('text')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('dop_info'); + } +}; diff --git a/database/migrations/2023_09_01_135910_create_job_titles_mains_table.php b/database/migrations/2023_09_01_135910_create_job_titles_mains_table.php new file mode 100644 index 0000000..74c0116 --- /dev/null +++ b/database/migrations/2023_09_01_135910_create_job_titles_mains_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name', 255)->nullable(); + $table->bigInteger('job_title_id')->nullable(false); + $table->integer('sort')->default(100); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('job_titles_mains'); + } +}; diff --git a/database/migrations/2023_09_01_135944_create_employers_mains_table.php b/database/migrations/2023_09_01_135944_create_employers_mains_table.php new file mode 100644 index 0000000..a91ec0d --- /dev/null +++ b/database/migrations/2023_09_01_135944_create_employers_mains_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name', 255)->nullable(); + $table->bigInteger('employer_id')->nullable(false); + $table->integer('sort')->default(100); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('employers_mains'); + } +}; diff --git a/database/migrations/2023_09_01_140100_create_place_works_table.php b/database/migrations/2023_09_01_140100_create_place_works_table.php new file mode 100644 index 0000000..9abf478 --- /dev/null +++ b/database/migrations/2023_09_01_140100_create_place_works_table.php @@ -0,0 +1,40 @@ +id(); + $table->string('job_title', 255)->nullable(); + $table->boolean('tanker')->default(false); + $table->string('teplohod', 255)->nullable(); + $table->string('GWT', 255)->nullable(); + $table->string('KBT', 255)->nullable(); + $table->string('begin_work', 255)->nullable(); + $table->string('end_work', 255)->nullable(); + $table->string('name_company')->nullable(); + $table->bigInteger('worker_id')->nullable(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('place_works'); + } +}; diff --git a/database/migrations/2023_09_01_140122_create_pages_table.php b/database/migrations/2023_09_01_140122_create_pages_table.php new file mode 100644 index 0000000..e8980e0 --- /dev/null +++ b/database/migrations/2023_09_01_140122_create_pages_table.php @@ -0,0 +1,37 @@ +id(); + $table->string('name', 255)->nullable(); + $table->string('slug', 255)->nullable(false); + $table->text('text')->nullable(); + $table->text('anons')->nullable(); + $table->string('author', 255)->nullable(); + $table->string('image', 255)->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('pages'); + } +}; diff --git a/database/migrations/2023_09_04_123922_alter_job_titles2_table.php b/database/migrations/2023_09_04_123922_alter_job_titles2_table.php new file mode 100644 index 0000000..f8782bf --- /dev/null +++ b/database/migrations/2023_09_04_123922_alter_job_titles2_table.php @@ -0,0 +1,32 @@ +integer('parent_id')->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('job_titles', function (Blueprint $table) { + $table->dropColumn('parent_id'); + }); + } +}; diff --git a/database/migrations/2023_09_04_124712_create_s_e_o_s_table.php b/database/migrations/2023_09_04_124712_create_s_e_o_s_table.php new file mode 100644 index 0000000..7ccf322 --- /dev/null +++ b/database/migrations/2023_09_04_124712_create_s_e_o_s_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('url', 255)->nullable(false); + $table->string('title', 255)->nullable(); + $table->text('description')->nullable(); + $table->text('keywords')->nullable(); + $table->string('name', 255)->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('s_e_o_s'); + } +}; diff --git a/resources/views/admin/index.blade.php b/resources/views/admin/index.blade.php index ed66f4d..98578fb 100644 --- a/resources/views/admin/index.blade.php +++ b/resources/views/admin/index.blade.php @@ -214,7 +214,7 @@